function passing problem
-
ok i have a problem in my main.cpp of my client program, and i have been staring at the screen for so long i can't see what the problem is [code]c:\documents and settings\computing\desktop\client2\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters mesagesend.cpp Error executing cl.exe.[/code] [code]#include "connecting.h" #include #include "mesagesend.h" #include #include using namespace std; int main() { connecting client; mesagesend chat; client.connecttoserver(); chat.sendmessage(); client.disconnectfromserver(chat.mysocket); return 0; }[/code]
-
ok i have a problem in my main.cpp of my client program, and i have been staring at the screen for so long i can't see what the problem is [code]c:\documents and settings\computing\desktop\client2\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters mesagesend.cpp Error executing cl.exe.[/code] [code]#include "connecting.h" #include #include "mesagesend.h" #include #include using namespace std; int main() { connecting client; mesagesend chat; client.connecttoserver(); chat.sendmessage(); client.disconnectfromserver(chat.mysocket); return 0; }[/code]
The
connecttoserver
function must need one or more parameters. Look in in "connecting.h" (or post it here) to see the parameters the method takes. Mike -
ok i have a problem in my main.cpp of my client program, and i have been staring at the screen for so long i can't see what the problem is [code]c:\documents and settings\computing\desktop\client2\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters mesagesend.cpp Error executing cl.exe.[/code] [code]#include "connecting.h" #include #include "mesagesend.h" #include #include using namespace std; int main() { connecting client; mesagesend chat; client.connecttoserver(); chat.sendmessage(); client.disconnectfromserver(chat.mysocket); return 0; }[/code]
ok, i tell you what i see ...
main.cpp, line 17 :
client.connecttoserver();chris28583 wrote: c:\documents and settings\computing\desktop\client2\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters nothing to add... :->
TOXCCT >>> GEII power
[toxcct][VisualCalc]