Archived

This topic is now archived and is closed to further replies.

aqzman

compiler

Recommended Posts

aqzman    122
i need a compiler but i can not relly aford one because i am only 13 i downloaded one lastnight and when i compled it. it wored fine but it would not run. so were can i get a ½ good free compiler? edit:it is for c/c++ Edited by - aqzman on January 31, 2002 5:14:40 AM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
http://www.borland.com/bcppbuilder/freecompiler/

bloody good free compiler.

Share this post


Link to post
Share on other sites
aqzman    122
i downloaded the bloddshed one it is pretty good but when i enter this code

#include <iostream.h>

int main()
{
cout << "Hello World!\n";
return 0;
}

it says there is no probs but when a run it nothing happens here is the tutrioul i got that code from http://members.tripod.com/~firstpod/cpp21/ch01.htm thanks if u can help me

Share this post


Link to post
Share on other sites
Null and Void    1088
It is doing something, it''s just doing it so fast you don''t see it. Try this (written in modern C++):
  
#include <iostream>
#include <cstdio>

int main(void) {
std::cout << "Hello world!" << std::endl;
getchar();
return 0;
}

It will force the console to stay open until you hit a key. Alternatively, just run the program from a console to see the results.

Share this post


Link to post
Share on other sites
baumep    375
What are you trying to open, and with which tool? I hope not your exe file. Just open your sourcecode file and insert the code with the corrections suggested by Null and void and then recompile it. It should create a new exe (replace the old) which will stop execution until you press a key.
If you know that already, excuse me please but your question are very vague...
Hope that helps

Share this post


Link to post
Share on other sites