473,396 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I want to write a funtion

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
2 1098
Silent1Mezzo
208 100+
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
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

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

Similar topics

3
by: Ye Liu | last post by:
Hi, Folks. If I have table create table t1(col1 number getnumber()) // getnumber is a funtion to generate default value of col1. How I can get this function string by a query on data...
6
by: | last post by:
Say we have the following code defining TMyMsgHandler and TMyClass typedef void (*TOnMsgReceive) (TMyMessage Msg); class TMyMsgHandler { public: TMyMsgHandler(); virtual ~TMyMsgHandler();...
0
by: brm6546545 | last post by:
I am trying to get some C code to work on .net C++ compiler int writeDatagram(int sock, char *buf, int length) { return write(sock, buf, length); } void killConnection(int sockd) {...
2
by: Satya | last post by:
Hi, I need to read and write Configuration Settings as shown below: <MySettings> <General> <Color>Red</Color> <.Font>TimesNewRoman</Font> <Path>C</Path> </General>
1
by: sridhard2406 | last post by:
Hi All, I am new to c++, please find my program below and my doubt as mentioned below. #include <iostream> using namespace std; class base { public:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.