How can I get Borland C++ to output a string to the terminal using 'cout'?
484581
I am not sure what program you tried, but here is one that should work on borlands compiler.\n\n#include <iostream>\n\nint main() {\n\n    std::cout<<"Hello, world!&#92;n";\n}\n\nI have included the 'std::' namespace in front of the cout.\n\n<Edit>\nAre you running the program from the command line, or just clicking on the exe?\nIf clicking on the exe, a command line will pop up, then disappear after displaying hello world.\nYou need to run it from the command line.
635623
I don't know C++. But You can do it by sending  the text in to prn folder. Same thig you can do it in DOS type a.txt >prn
254178
With GCC compiler (used by Dev-++) you can write:\n\nsystem("cls");
427034
While it's obvious that you can pass C++ files to the C++\ncompiler, it's also quite common to pass other files as\nwell that will be handled by another tool in the\ncompilation chain.  The compiler "driver" can may\ndifferentiate between the files by the suffix, so ".C",\n".c", ".cc", ".CC", ".cpp", and ".cxx" might be considered\nas C++ source files.\n\nIf the suffix is ".s", it might be assumed to be an\nassembly file, and therefore passed to the assembler.\n\nIf the file was ".o", then it might be assumed to be an\nobject file and passed directly to the linker.  Similarly,\n".a", ".so" and ".dll" are likely considered to be\nlibraries of one form or another, and again, passed to the\nlinker.\n\nThis error message suggests you used a some *other* suffix,\nwhich neither looked like C++ source nor the source for any\nother supported tool.
423121
are you talking about c++? i have a nice header file that i can give you.. maybe thatll help
1122186
Thats the standard Input output header file.  it must be there . you just have to set the correct path
312194
I am not sure if this is what you mean.\n\n#include <iostream>\n\nusing namespace std;\n\nvoid main() {\n\n    char ch;\n    cout << "Type in a character, then press enter.&#92;n";\n    cin >> ch;\n    cout << "&#92;nYou typed: ";\n    cout << ch;\n}\n\nThat will read one character from the keyboard for you.\nIt was intentionally made simple.\n\njack573
963901
wat does your program doese also can you state the name of the compiler you are using
1178612
Well.... That's too Hard to find... i'm poor at C++...... So can't help.. have good day! Search in Google
983919
Here you go\nhttp://www.thefreecountry.com/compilers/cpp.shtml\n///
142433
you havn't closed "void determinecost (...)" function with curly braces " } "\n\nin c++, you have to close any block of code with } that has been opened with {
635837
Maybe try to search on their site, borland.com
94728
well, you didn't specify a language so here's korn shell:\n\n#! /bin/ksh\nread c\nTEMP=1\nwhile [ $TEMP -lt $c ]; do\n  echo "**********************************" | cut -c1-$TEMP\n  let "c += 1"\ndone\n\nmy c++ is a bit rusty, but the loop would look like this:\n\nwhile ( c = 1; c <= count ; c++ )\n{\n  while ( d = 1; d <= c; d++ )\n  {\n    cout << "*";\n  }\n  cout << endl;\n}\n\nhope this helps :-)
762903
they are now giving the compiler away for free :-)\n\nenjoy
299602
Try and use an IDE if you can. Or switch to linux for programming, you wont have to use getch() or pause :)
702462
I would have to see the code.\n\nMove the fopen before the while and the fprintf before the curly braces.  Leave the fclose after the curly braces.\n\nFopen\nwhile {\n\nfprintf ;\n}\nfclose
750753
use gcc compiler. u can run cpp programs using gcc.\nwith this, u create a file with .out extension.\nThat to execeute, type, ./ filename.out\n\nat the terminal.