| | |
My program is skipping some statements.
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jun 2007
Posts: 12
Reputation:
Solved Threads: 1
I have no idea why.
The lines it's skipping is the system("PAUSE");.
Not the first two but the last two.
The lines it's skipping is the system("PAUSE");.
Not the first two but the last two.
c Syntax (Toggle Plain Text)
#include <stdlib.h> #include <stdio.h> int main() { char Big, Small; Big='Z'; Small='z'; printf("Z=%d.\nz=%d.\n",Big,Small); system("PAUSE"); int X,Y; X=72; Y=104; printf("74=%c.\n104=%c.\n",X,Y); system("PAUSE"); double DblNum = 123.456; printf("f=%f.\nScientific=%e.\ntestF=%F.\n",DblNum,DblNum,DblNum); system("PAUSE"); char Newline = '\n'; printf("newline=%d.\n",Newline); system("PAUSE"); return 0; }
•
•
Join Date: Jun 2007
Posts: 12
Reputation:
Solved Threads: 1
I got the same problem in another program I made using VC++ express now.
It ignores the last system("PAUSE"); but not the first one.
I need to know what causes these problems.
Dev-C++ wasn't the only compiler with this problem.
c Syntax (Toggle Plain Text)
#include <stdlib.h> #include <stdio.h> int main() { putchar(66); putc(121,stdout); putchar(101); putchar(10); system("PAUSE"); int in = 123; int floa = 123.456; printf("%-3d\n%-6.3f\n",in,floa); system("PAUSE"); }
It ignores the last system("PAUSE"); but not the first one.
I need to know what causes these problems.
Dev-C++ wasn't the only compiler with this problem.
![]() |
Similar Threads
- tolower()'d cstrings in conditional statements (C++)
- help in c++ program (C++)
- Loops (C++)
Other Threads in the C Forum
- Previous Thread: structure
- Next Thread: guideline for C++(beginer)
| Thread Tools | Search this Thread |
#include adobe ansi api append array arrays asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc csyntax database directory dynamic execv feet fgets file fork framework frequency function getlasterror givemetehcodez global grade gtkgcurlcompiling hacking hardware highest histogram include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list lists locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue number odf opensource overwrite owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scripting segmentationfault sequential socket socketprograming standard string systemcall testing threads turboc unix user voidmain() wab windows.h windowsapi






