14 Reputation Points
Ranked #2K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
~586 People Reached
Favorite Forums
Favorite Tags
Re:
How can we convert a string to int without a standard lib the string termination can be '/r' |
|
Re:
Hey, guy I'm having some trouble with my function see below: bool tryAgain() { char answer; cout << "Do you want to enter another number? (Y/N): "; cin >> answer; answer = toupper(answer); while(answer != 'Y' || answer != 'N') { cin.clear(); cin.ignore(10, '\n'); cout << "Input invalid." << endl; … |
|
Re:
Hi I am new in C programming language... I am writing a simple FTP Server-Client program, and I want to print out the client IP address for each successful login. Here's the code that I encountered warning: `struct sockaddr_in ser_addr;` `printf("IP: (%s); Port: (%d)\n",` `inet_ntoa(ser_addr.sin_addr), ntohs(ser_addr.sin_port));` When I compile the … |