Public Group

Archived

This topic is now archived and is closed to further replies.

need help on a class /fuction

This topic is 5241 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

having troble with this... #include <iostream> #include <conio.h> int main(){ class Add{ public: int x; int y; exe() ;std::cin>>x; std::cin>>y; std::cout<

Share on other sites
uhh, what is that suppose to do exactly? Your class definition syntax is wrong and it shouldn''t be inside your main().

--{You fight like a dairy farmer!}

Share on other sites
quote:
Original post by MPG
having troble with this...

You''re not the only one having trouble with that code...
First use [.source][/.source] tags. This is just my best guess as to what your code is supposed to do.
#include <iostream>#include <conio.h>class Add{    public:    int x;    int y;    void exe();};void Add:exe(){    // some something here}int main(int argc, char *argv[]){    int x, y;    std::cin >> x;    std::cin >> y;    std::cout << x+y;    getch();    return 0;}

Share on other sites
im trying to make a funtion like an engine to print those wordds

Share on other sites
You keep saying that you know C++, and yet...

Share on other sites
YEP!!!!!

Guys, stop answering him. He is trying to act stupid. I have said this so many times, and no one ever beleives me.

Share on other sites
FOR ONCE CAN I GET HELP WITH OUT SOME ONE CRITIZING ME.I GAVE UP LIKE A YEAR AGO AND AM KINDA STILL LEARNING.

Sorry for the misunderstading;and if I sound suspisous

p.s. how old are you playgy.just curious.
sorry for the caps

Share on other sites
MPG - Get a book, quickly.

Share on other sites
Never mind I figuerd it out
can a mod /close topic please

• 23
• 10
• 19
• 16
• 14
×

Important Information

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!