Using C++ isnt a pain.
Do not talk about Java and other pseudo languages in this holy place. Now pray with me: "Never again shall I utter the name of the dark ones' way of life where the teachings...
Type: Posts; User: Dante Wingates
Using C++ isnt a pain.
Do not talk about Java and other pseudo languages in this holy place. Now pray with me: "Never again shall I utter the name of the dark ones' way of life where the teachings...
I came here to ask if its a good idea to switch (completely) to Linux.
So, since we have this thread started Im going to ask. Is it a good idea to start using Linux now, after years using and...
Agree completely with Mario R. It sounds like a lot of fun and a good learning experience, too good to pass. Unfortunately Im not very familiar with electrical engineering... Learning something new...
I meant I don't know how to program one of those microcontrollers in Assembly language since I don't know its instruction set. Sorry, doesnt it make sense? I thought you had to know its instruction...
Im basically asking if programming a PIC microcontroller is something every programmer should know. It may look like a weird question but whatever, I think you get the point. It looks interesting and...
Now that was some useful information.
It will be very useful, thank you very much.
Im experiencing some pretty strange behavior here. I have a stack class, and I was testing it, but I cant really tell whats wrong with it. Actually, the class seems to be working, but cout is...
Damn I can't believe I did that!
Sorry, I was going to start a new thread, and then posted here.
Then use cin.ignore() to ignore the nl that is bothering you
This code fragment wont work as you might expect:
#include <iostream>
int main()
{
char c;
Probably your program was already running while you was trying to run it again, then when you restarted it worked...
Was the error something like "bla bla returned with exit code -1"? It happens...
jump twice, turn 360° then close your eyes and say, "oh mighty computer, how do I know when a key has been pressed?"
Then the mighty computer will give you these links: hooking and...
int *ptr = NULL, &ref = *ptr;
do you want a reference to reference nothing? What is the point of having such a reference? Oo
If that is the case, a null pointer should be more than enough.
...
Awesome explanation, and nice links thanks. Sorry it took some time for me to answer, I havent visited the forum in a while.
That was all I wanted to know about states... I tried to simulate that,...
"To be Turing complete, it is enough to have conditional branching (an "if" and "goto" statement), and the ability to change memory." - Wikipedia
That is what I was trying to acomplish, so by...
Im trying to simulate a turing machine in C++... The problem isnt related to the language... The problem is about the virtual turing machine itself, and that is why Im posting here since I dont know...
No, Im completly aware of that. The fact that I wrote a simple function was simply because I felt like it.
Im not missing the existence of standard functions, but I often encourage people to write...
char toUpper(char *c)
{
return((*c >= 0x61 && *c <= 0x7A) ? *c &= 0xDF : *c);
}
You guys seems to be missing this...
You shouldnt give him a complete example when he was so close to what...
See for thyself
#include <iostream>
int main(int argc, char **argv)
{
std::string thyName;
std::cout << "Input thy name: ";
So this is what they mean by saying that visual basic causes brain damage...
Google is your best friend
What kind of question is that??? "I cant code for myself so I need something to aid me"? Do you want a tool which helps you in coding? IDEs serve this purpose. Do you want to know what every function...
they are the command line parameters... Im not sure how they call it in english but let me try to explain it...
When you execute a program on the command prompt, you pass some values to it... For...
As far as I know a nested loop is nothing more than a loop within another loop...
for(int i = 0; i < 10; i++)
printf("%d ", i);
this loop will print values from 0 to 9.
now a loop...
Some comments before you said "if you show C code to newbies they will think it is the only way to do it", but you're acting like there is exactly one way to do something. Do you realize you're...
Ok, ok.. This is like a loop... Is that part of the forum rules? Not showing C style code to a newbie?
We who? You're the only one complaining... I said a lot of times I do understand your...
Yes I do have C background... Anyway I still dont believe that mixing C and C++ makes the code "bad", but I have to agreed that it can make the code a little more confusing for those who arent very...