online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ //********************** // ้ซ˜ไบŒ้€ฒ้šŽ็จ‹ๅผ่จญ่จˆ * // ๅคงๆจ‚้€็จ‹ๅผ้–‹็™ผ * // 205-xx-XXX * // <ๅ…ญๅ€‹ๆ•ธๅญ—็š„ๆŽ’ๅบ> * //********************** #include <iostream> #include <cstdlib> #include <ctime> #include <algorithm> using namespace std; int main() { // ๅฎฃๅ‘Š้™ฃๅˆ— const int SIZE = 6; int result[SIZE]; // ้šจๆฉŸๆ•ธ็”Ÿๆˆ srand(time(NULL)); for (int i = 0; i < SIZE; i++) { result[i] = rand() % 49 + 1; } // ้กฏ็คบๆŽ’ๅบๅ‰็š„้™ฃๅˆ— cout << "ๆŽ’ๅบๅ‰: "; for (int i = 0; i < SIZE; i++) { cout << result[i] << " "; } cout << endl; // ๆŽ’ๅบ sort(result, result + SIZE); // ้กฏ็คบๆŽ’ๅบๅพŒ็š„้™ฃๅˆ— cout << "ๆŽ’ๅบๅพŒ: "; for (int i = 0; i < SIZE; i++) { cout << result[i] << " "; } cout << endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue