Sei sulla pagina 1di 2

=================================================================

\n newline
\r carriage return
\t tab
\v vertical tab
\b backspace
\f form feed (page feed)
\a alert (beep)
\' single quote (')
\" double quote (")
\? question mark (?)
\\ backslash (\)
=================================================================
DEBUGGING
Meaning Visual C++ 6.0 iSeries WebSphere
--------------------------------------------------------------------------------
----
Start F10 (F11) STRDBG <FILENAME.PGM> Run/Debug
Step Over F10 F10 F6
Break Point F9 F6 Double Click
Run to Cursor Ctrl + F10 F12 F7
Step Into F11 Shift + F10 F5
Stop Shilf + F5 ENDDBG Run/Temi
nate
Run Ctrl + F5 CALL PGM<FILENAME> Run/...
Note:
- Visual C++:
+ Go (F5): Run to the next cursor.
+ Restart (Ctrl+Shilf+F5): Restart debugging.
+ Step Out (Shilf+F11).
- iSeries:
- WebSphere:
+ F8 (Resume): Run to the next cursor.
=================================================================
DATA TYPES
Data Type Type Name Declaration Memory Values
Char char char 1 byte -128 ... 127
unsigned char uchar 1 byte 0 ... 255
Integer Number int int 4 byte -2^31 ... 2^31 -
1
unsigned int uint 4 byte 0 ... 2^31 - 1
short short 2 byte -32768 ... 32767
long long 4 byte -2^31 ... 2^31 -
1
Float Number float float 4 byte +/-10^-37 ... +/
-10^38
double double 8 byte +/-10^-307 ... +
/-10^308
=================================================================
FIX PROBLEM
Problem: "Cannot access the ClassView information file...".
Solve : Close your Visual Studio (VC) and delete the .ncb, .aps, and .clw file
s. Reopen the project and those files will be recreated when needed.
=================================================================
RANDOM
rand() vs random()
srand(time(NULL)); randomize();
rand(); random(num);

Potrebbero piacerti anche