By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

I want to write a funtion

P: 9
this is my codeeee:
Expand|Select|Wrap|Line Numbers
  1. my function:
  2.     cout << "test";
  3. }
  4.  
It doens't work. Is that correct? Plz help its really important.

thnx team!!!!!
Jun 12 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 208
this is my codeeee:
Expand|Select|Wrap|Line Numbers
  1. my function:
  2.     cout << "test";
  3. }
  4.  
It doens't work. Is that correct? Plz help its really important.

thnx team!!!!!
Article

Read that first to understand the syntax of c++ functions
Jun 12 '07 #2

P: 94
Basic c++ syntax, you got it confused with Python
Expand|Select|Wrap|Line Numbers
  1. void myFunction()
  2. {
  3.          cout << "Test" ;
  4. }
  5.  
Jun 12 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.