Skip to main content
Code Review

Return to Revisions

2 of 4
Fixed grammar and reworded the question.

Hello World Program-Please take a look at my coding style.

I am new to c++. Please take a look at my program and let me know how I can improve it. Thank you.

/*
" To Print A Line On The Display Screen"
 Date:5th January 2011
 Programmer:Fahad
*/
#include <iostream>
using namespace std;
class Print
{
 public:
 void print_();
};
int main()
{
 Print Obj;
 Obj.print_();
 system( "pause" );
 return 0;
}
void Print::print_()
{
 cout << "I am in print function and the program runs fine." << endl;
}
user1211
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /