|
-
April 30th, 2007, 09:40 AM
#1
Learning C sharp
Hey everyone! I recently moved from c++ to C# because i loved making windows applications. But i am having some problems (of course).
i made this thread to ask questions about problems i might have. My first one is about fucntions (at least its called functions in c++)
in c++ i could write a big block of code. f.eks.
void error() {
if(chances == 0) {
cout<<"You have no more chances.";
system("pause");
close();
}
else{
cout<<"The password is incorrect, please try again.";
chances --;
}
}
Now how would i create functions in C#?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|