Im doing "Sams Teach Yourself C in 24 Hours".
Which can be found here.
I'm at hour 6 right now.
I most likely will run into several problems while trying to solve his excercises.
I don't want to make a new thread everytime I run into a problem.
So I thought since all the small programs (excersises) comes from his tutorial they could all be puttin into one thread.
If I get another problem later I'd reply to this thread with the new problem.
Anyone else who have problems from his tutorial can post in this thread too.
I have 2 problems right now.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,y;
x=1;
y=3;
printf("1+=3 is: 4 ?: %d.\n1+=-3 is: 0? ?: %d.\n1-=3 is: -2 ?: %d.\n1-=-3 is: -4 ?: %d.\n1*=3 is: 3 ?: %d.\n1*=-3 is: -3? ?: %d.\n",x+=y,x+=-y,x-=-y,x*=y,x*=-y);
system("PAUSE");
}
The "is: X" is what I guessed the expression would become.
I really doubt this is working correct because if you run this program everything equals '-6' except the last line which equals 41 million.
It just can't be right.
OR if it actually would be correct it would just be nice to have that confirmed because it's weird how all expressions could end up with those results.
second problem is with VC++ express.
When I click on debug I get a message box with the title "No Debugging Information" and the message "Debugging information for 'hour 6.exe' cannot be found or does not match. Binary was not built with debug information.
Do you want to continue debugging?"
I don't know what that means exacly and don't know how to fix that.