I'm not talking about that error message. I'm talking about the compiler error messages in your IDE, not the "runtime" message.
For example the code you supplied gives the following errors in my...
Type: Posts; User: jimblumberg
I'm not talking about that error message. I'm talking about the compiler error messages in your IDE, not the "runtime" message.
For example the code you supplied gives the following errors in my...
Probably because the build failed.
Cut and paste the error messages from the IDE, the picture is pretty much unreadable.
If all else fails cut and paste the complete code, inside code tags in a...
What do you think the values should be?
Did you plug the snippet into a program and print the values?
Are you sure that you copied the code correctly?
Well I can't reproduce either of the "results", because the code you provided fails to compile.
Perhaps you left off some important code, ie. header files?
What operating system are you using?
What parameters are you using with md5sum?
What is md5sum returning?
However when I do the same with binary ones there is sth wrong as md5sum doesnt match.
Could the problem be due to different line endings?
But really you're not showing near enough content....
You should really consider using std::string instead of the error prone C-strings.
In your setName() function you should first verify that the passed C-string is small enough to fit into the name...
The problem is that the pointer is local to the function and will only be valid in that function.
Instead of "returning" a pointer it would be better to pass the pointer into the function.
...
All input should be coming from that input file.
That structure seems wrong. What about the first entry?
Please show your input file "contacts.txt".
Do you realize that your run line ("./project1 <contacts.txt") is using input redirection? Which means that the above file should contain all your input...
A couple of things.
First line 12 is incorrect (look at line 16 for a hint).
Second line 21 is invoking undefined behaviour, you're attempting to increment the same value twice without a...
Double post. Please don't post the same question in multiple sub-forums.
Also this is a C++ question not a C question.
Also posted here.
That was already suggested in the link pointed out by Salem.
By the way this topic should really be in the Windows forum, since using the Windows api is a requirement.
So how does "I'm really bad at it" relate to the problem at hand?
What exactly don't you understand?
Do you realize that in main() x and y are single doubles, not two arrays of double as your function expects?
A couple of things, first in C you shouldn't be casting the return value from malloc(), second what is "s"? Third did you look up some documentation for free, pay particular attention to what you're...
Okay, do you realize that that is what getch() should do?
Also do you know that getch() is a non-standard function only available on certain compilers?
Perhaps you should consider either...
Or maybe this one even, or this one maybe?
It is a single invalid int value.
Also note that the space between the format specifiers is not necessary, ("%d%d") is adequate.
What type of system is this LCD connected to?
It doesn't look like you're initializing the LCD properly for 4 bit operation. Re-check the data sheet for more information about proper...
It's been a while since I played with an LCD but if I remember correctly you have to repeat one of the commands twice (the first I think).
Have you tried placing your "wait" between each of the commands. When placing a LCD into four bit mode the timing is quite critical, and waiting for the LCD busy flag is not always reliable for the...
The problem is that 1. scanf() leaves the end of line character in the input buffer and 2. when using the "%c" format character leading whitespace is not skipped.
To fix the problem you can either...