i want to write a program in c++ which prints 'all' of its code on screen exactly? (using only basic features)
550757
I have heard this question so many times that I decided to look it up on the net and I found a very good site that explains it very well, step by step.\nSo I will simply link that one here. This is the C equivalent, you can modify it for c++!\n\nhttp://www.iwebthereforeiam.com/programming/selfWrite.asp\n\nEnjoy!
444754
This sounds like school work, its a fairly simple program. you will probably want to use the cout and cin function which needs you to include iostream.h \n\nsimply use cout to print to screen, ask for input etc. then take the input using cin and store it to a int variable.\n\na good way to do it would be to ask the user what they wish to do, eg subtract, divide and take that operator first, a symbol or a number to show choice. then the next line asks for the numbers to be input.\n\neg:\n\n---------\n\nHello. what do you wish to do:\n1 - subtract\n2 - divide\n3 - etc etc\n\n>\n\n-------------\n\nthen use an if function or maybe a switch to check what their input was and do the artithmatic.\n\nso a very basic prgram may look like this:\nit may have errors i havant checked it.\n\n-----------------\n\n#include <iostream>\n\nint main() \n{\nint number;\n\n    cout << "Hello, input a number" << endl;\n    cin >>number;\n    return 0;\n}\n\n------\n\nEDIT; i re read the req, you might find inputting the selection to a char better, then check the char to see what symbol is stored in it, eg + / -. and maybe use a char array for the number input. simple take the char array, check for the space. split the numbers into 2 and caste then to an int. sounds complicated but it isnt to hard.\n\nsorry about spelling mistakes.
109430
I use notepad++ its a free program that you can search for and download. once you have it you can put it in c++ mode and start writng. once your finished compile it
346423
check out http://www.planet-source-code.com - I don't do C++, but I use that site all the time, and it has great examples in source code form.
728764
Kindly go to www.allexperts.com\nChoose computing category. then Programming--Basic--Visual Basic\nYou can post your query there with one of the experts.\nThey will reply you free of charge
270512
Would be something roughly like this:\n\n#include <cstdlib>\n#include <iostream>\n#include <fstream>\n#include <string>\n\nusing namespace std;\n\n\n\nint main(void)\n{\n    string  T;\n    ifstream inf;\n    ofstream outf;\n    inf.open("myfile.txt", ios::in);\n    outf.open("YourFile.txt", ios::out);\n    while(!inf.eof()){\n        getline(inf, T, '&#92;n');\n        outf << T << "&#92;n";\n        }\n    inf.close(); \n    outf.close();\n    system("PAUSE");\n    return EXIT_SUCCESS;\n}\n\nI think.
496785
Go to Microsoft"s home page.  They have a free C++ and a Visual basic compliler under free software.
221245
How about using Visual Basic Express or Visual C# Express.  They're "lite" versions of VB.NET and C#.NET.  You could mockup your screens without any associated code.  The advantage is that if you ever wanted to put functionality behind them, you could just start coding.
253406
All you need to program in C++ is a compiler and notepage.\n\none of the more popular is located here: \n  http://www.delorie.com/djgpp/\n\nAs for examples there's TONS on the Net, a simple Google Search for 'C++ examples'  returned over 32,000 hits.
344651
Hey, email me, LBphan@gmail.com, i might be able to help you out a bit, ive got some stuff for c++ and c# if youre curious, and ill give you whatever youre looking for free of charge.  my name is andy, by the way.
316428
For turbo C++ follow the first link.\nYou can also use GUI(Graphic User Interface) compilres like DEV C++ form (bloodshed.net) for free
943372
u have to ponit it or use\n\nthese are the 2 way's:\n\n#include <iostream>\nusing namespcae std;\nint main()\n{\nint num[8];\nint index;\n\nnum[0] = 42;\nnum[1] = 2001;\nnum[2] = 7;\nnum[3] = 180;\nnum[4] = 99;\nnum[5] = 1993;\n\nfor(index = 0; index <= 5; index++)\n{\nstd::cout<< index[num] << endl;\n}\n system("pause");\nreturn 0;\n}\n\nor\n\n#include <iostream>\n#define MAX 20\nusing namespcae std;\n\nint main()\n{\n\nint a[MAX] = {23,43,4,5,34,343,12,14};\nint b;\n\ncout.setf(ios::right);\n\nfor(b = 0; b < MAX; b++){\n\ncout << endl << endl;\n\ncout << "The Elemnt in ";\n\ncout.width(2);\n\ncout << (b +1) << " is ";\n\ncout.width(2);\n\nstd::cout << b[a];\n}\nreturn 0;\n}
423121
are you talking about c++? i have a nice header file that i can give you.. maybe thatll help
1126544
If you mean in C++\nJust compile your program and build and run it.. you'll find the .exe file in the Debug folder..
1161264
The above answerer is slightly wrong.  C++ holds a subset of C, it is not the complete C language.\n\nApart from that, You should be able to get a program that executes in C, not in C++.\n\n/* hello.c -- The most famous program of them all ..\n */\n\n#include <stdio.h>\n\nint main(void) {\n  printf("Hello World!&#92;n");\n}\n\nGot from http://www.cis.temple.edu/~ingargio/cis71/code/hello.c
967338
If you are fine with any c compiler, you can get visual c++ 2005 express from microsoft site.  It's very good and it's free.\n\nTurbo c++ is quite old and may not support many new c++ features.
894034
while (<>)\n{\n  ($n++, $uniq{$_}++, print("$_&#92;n")) foreach /&#92;+d-&#92;d+)/g;\n}\nprint STDERR "Total numbers: $n&#92;n";\nprint STDERR "Unique numbers: scalar(%uniq)&#92;n";\nprint STDERR "Individual number counts:&#92;n";\nprint STDERR "$number: $coutn&#92;n" while ($number, $count) = each %uniq;\n\nIt reads the original text from stdin, and prints the numbers to stdout, and the statitstics to stderr.\nrun it like this:\ncat original_file.txt | perl thisprogram.pl > number_only.txt\n\nThe numbers will end up in numbers_only.txt, and the statistics will show up on your screen.\nYou can also give it the original file as argument instead of that cat thing if you prefer