HI
You can first include the 1st program in ur 2nd program using # include<..> and then whatever be the output from frst it can be used in second program.
pankaj
That's what popen is good for. Read the manual.Directly:
MYPROGRAM >PRN
Indircetly:
MYPROGRAM >FILE.TXT
WRITE FILE.TXT
(File-menu/Print-command in Write)
example output of c++ calculator
int radius = 2; int output; radius = radius * 2; output = radius * Math.PI; Console.WriteLine(output);
how programs are executed? Let we take C, how a c program is executing.... A first step we have to install a particular software for a execution so here we are installing turbo c then open the bin folder after the installation ,you will find on executable file named TC.exe it will look like a command prompt that only executing your c program files and giving another executable file for your program as output. to check fisrt create any simple program and first compile it and see the bin folder you will find one file named filename.obj and then run that program and now you will find another file filename.exe,that is an output file.
No. That's a header file used for input and output.
There is no such thing as a null printer in C++. You are perhaps thinking of the null device to which output can be redirected from the command line (effectively hiding the output of a program). However this has nothing whatsoever to do with C++, it is entirely dependant upon the operating system.
example output of c++ calculator
void main() { printf("followiing"); }
int radius = 2; int output; radius = radius * 2; output = radius * Math.PI; Console.WriteLine(output);
how programs are executed? Let we take C, how a c program is executing.... A first step we have to install a particular software for a execution so here we are installing turbo c then open the bin folder after the installation ,you will find on executable file named TC.exe it will look like a command prompt that only executing your c program files and giving another executable file for your program as output. to check fisrt create any simple program and first compile it and see the bin folder you will find one file named filename.obj and then run that program and now you will find another file filename.exe,that is an output file.
It must use a function with a "return" statement. Or you could output via console. (.NET CODE(C#)) Console.WriteLine("Output.");
See sources and related links below.
This question cannot be generally answered, the output depends on the actual program.
Class hindi { public static void main() { char c; for(c=2309;c<2362;c++) { System.out.println(" "+c); } } }
No. That's a header file used for input and output.
There is no 'console' in C-language, but there is a standard input, a standard output and a standard error. They are pre-opened files (file-handles) you can use in your program without knowing what they actually are.
C does not support superclassing. Try C++.
std:cin and std:cout are the standard console input and output streams, respectively. By default, input is redirected from the console keyboard and output redirected to the console screen. However, both streams can be redirected from the command line. This not only allows input and output to be redirected from disk files but also permits the output of one program to be redirected as input to another, allowing two or more programs to be chained together (assuming the output of one program is in the exact format required as input to the next).