Discussions Q&R
if i download the programs for c++ on my pc ( codebuilds and the compiler ) and i want to write a program in my package ( workspace ) i create a new file and write smthing beginning
#include <iostream>
using namespace std;
int main ()
{
...
}
and i want to run it, it always runs this first program : Hello World. and not my written program how can i run just my written program ?
have i maybe to write anything else as
int main () {} ?
0 Vote
16 RéponsesThe code shown below in the description runs here when I try it, but when I wrote it on code blocks it gave me 5 errors..
1. expected imitializer before '<' token. (line 19).
2. reference to 'pair' is ambiguous. (line 26).
3. expected primary-expression before double. (line 26).
4. expected ';' before 'double'. (line 26).
5. 'obj' was not declared in this scope. (line 27).
Any help please?
0 Vote
5 Réponses