Posts
 
Reputation
Loading chart. Please wait.
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
Ranked #3K
~16.7K People Reached
Favorite Forums
Favorite Tags

13 Posted Topics

Member Avatar for Narue
Member Avatar for clutchkiller
Member Avatar for tomtetlaw

[code]int this.health = 10, this.defense = 3; char this.name = "Orc";[/code] //you can't init them here; [code] int getAttributesInfo() { attributes [] = {this.health, this.defense, this.name}; return attributes; } [/code] you declread the function as int but "return attributes" confused me, else attributes is just an address.

Member Avatar for sid78669
0
184
Member Avatar for akmed

I think there is some Error in you in/out-put stream, for :"cin>> bit"(line 21) i guess you want getting one char(0 or 1) each time , but "cin" let you keep inputing untill you enter the "enter" . wish that can help you.

Member Avatar for AHUazhu
0
127
Member Avatar for nitro

since manishady gave you the code, i just give you some advise: 1) data structrue is a very important subject, 2) you should relize every model the books says. 3) may you success.

Member Avatar for AHUazhu
1
145
Member Avatar for AHUazhu
Member Avatar for eedythh2

[code] int main() { int x,y; char opt; while(1) {std::cout<<"please input the x,y"<<endl; std:: cin>>x>>y; std::cout<<"please input the operate"<<endl; std::cin>>opt; switch (opt) case '+' : return x+y; case '-' : return x-y; . . ; } } [/code]

Member Avatar for daviddoria
0
187
Member Avatar for shadwickman
Member Avatar for mypopope
Member Avatar for AHUazhu
Member Avatar for jbennet
0
62
Member Avatar for AutoC

win socket, yes first you should creat a socket in you server and listen() the request from the client i just started learn it recently ^

Member Avatar for AHUazhu
0
286
Member Avatar for q8y_4u

I haven't seen any excutive-able code in the main( ) and you should declear when to exit the prog . i think , lucky……

Member Avatar for AHUazhu
0
205
Member Avatar for robgeek
Member Avatar for AHUazhu
0
178