2 Reputation Points
Ranked #4K
- 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
0 Endorsements
Ranked #44.2K
I'm learning C and can someone tell me if I'm doing file input right? I know file and user input can be insecure because of buffer overflows. [code=C] #include<stdio.h> int main(int argc,char *argv[]) { FILE *file; char c; int lines = 1; if(argc == 2) { file = fopen(argv[1],"r"); if(file … | |
Hello I'm trying to make a simple function to Rot13 strings and it's not working.I ran it through my debugger and it works until it get to the top of the loop again???Then some of the chars are rot13ed and some stay the same. [code=c++] void Rot13(std::string &buffer) { int … |