1 Answer - Sort by: Date | Rating
The C Program manages a class with a Main method controlling. If you want to run the C program on your computer the first of all install a MS.NET framework then compile this program on command prompt because it is necessary for compile a C program use this command on command prompt : Csc Virgo1.csA successful compilation will create a single output file named Virgo1.exe and after compiling enter the following command at the command prompt to run the program:
Virgo1
Then your program display the output .Like in coding you pass the string "Hello Virgo" ,so when you run this program on command prompt ,this sting display as output like:
Hello Virgo
The C++ Program manages a class with a Main method controlling same as C program. To compile this program normally it uses a tool such as MS Visual Studio. You can execute your program within MS Visual Studio. When you do, the following text will be displayed on the screen of MS Visual Studio:
Hello Virgo
You can also execute your compiled program in the command prompt same as C program.
The Java program also manages the controlling class with a main method. To compile the program on a computer, first of all you must install Java JDK, and then enter the following command at the command prompt:
Javac Virgo1.java
A successful compilation will produce a single output file named Hello1.class .To run the program, enter the following command at the command prompt in the directory containing the class file:
java Virgo1
Then you can see the output same as C and C++ Program on command prompt.
Virgo1
Then your program display the output .Like in coding you pass the string "Hello Virgo" ,so when you run this program on command prompt ,this sting display as output like:
Hello Virgo
The C++ Program manages a class with a Main method controlling same as C program. To compile this program normally it uses a tool such as MS Visual Studio. You can execute your program within MS Visual Studio. When you do, the following text will be displayed on the screen of MS Visual Studio:
Hello Virgo
You can also execute your compiled program in the command prompt same as C program.
The Java program also manages the controlling class with a main method. To compile the program on a computer, first of all you must install Java JDK, and then enter the following command at the command prompt:
Javac Virgo1.java
A successful compilation will produce a single output file named Hello1.class .To run the program, enter the following command at the command prompt in the directory containing the class file:
java Virgo1
Then you can see the output same as C and C++ Program on command prompt.
0
0
C language don't support classes. Its simply a functional programming. For C++ there are two options either use a class or use C style functional programming.
- How To Create An Application By Using Java Program?
- How To Make An Application By Using Java Program?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- How To Download Java IDE?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- How To Compile And Run Java Package?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Package In Java?
- What Is Meant By Servlet In Java?
- When Was Java Released?
- What Is Latest Technologies In Java?
- Write A Program Using Do…..while Loop To Calculate And Print The First M Fibonacci Numbers?
- What Is The Difference Between Reference &instance Variable?
- Why Java Is Slow?
- What Is The Drawback Of Ms Access?
- What Is Replaced In Place Of Pointers In Java?
- What Replaces Pointers In Java?
- How Many Types We Create Object In Java?
- How Can We Run Java Program By Using Command Prompt?
- How Can We Run Java Program By Command Prompt? Give Answer In Steps Please?
- Is There Any Way To Run A Applet Application Without Command Prompt?
- How We Can Run The Program Of C++ In Java....?
- How To Compile And Run The Java Program?
- How Do You Run A RMI Program In Java Application?
- What Is The Coding To Run The Frame Program In Java?
- Who We Run Java Program When Extends Frame?

New Comment - Comments are editable for 5 min.