I need to make a program that asks a user for the name of a text file and reports the number of characters in the text file, and the number of end-of-line characters in the text file. I made a text...
Type: Posts; User: U79
I need to make a program that asks a user for the name of a text file and reports the number of characters in the text file, and the number of end-of-line characters in the text file. I made a text...
Sweet, sweet working program. Thank you again so unbelievably much, everybody! This is the code that ended up working (now I just have to add coments! ;) ):
// PROJECT 10-1.CPP
#include...
It's still not working like this:
// PROJECT 10-1.CPP
#include <iostream>
#include <cstring>
using namespace std;
const int size = 500;
Happiness has become me! Thank you so much, everybody! Here is the code I am using that works!
// PROJECT 10-2.CPP
// By Josh Milewski
#include<iostream> // replaces crazy old iostream.h...
How exactly do I do that?
// PROJECT 10-1.CPP
#include <iostream>
#include <cstring>
using namespace std;
char original_string[500], reversed_string[500];
Here's what I have now:
// PROJECT 10-1.CPP
#include <iostream>
#include <cstring>
using namespace std;
char original_string, reversed_string;
I need to make a program that changes all the ASCII values of the characters in a string to one ASCII value above the ones in the string, so "ABCDEF" would become "BCDEFG" and "apple" would become...
Wah! I'm so confused! I'm just a newbie...Here is what I have so far...now...Can you explain in very simple terms and tell me what has to be changed? Like, change it and post it back here? I'm...
Yes, I know I can do it that way, which would be a lot easier, but I cannot. That is because I need to do this for a school project, and I am required to make my own function called reverse_string...
Can you tell me exactly what those are? I'm really sorry, but I don't really know the terms.
Wait, you said "Both should be a char*." But both what?
But can you help me with my simple program? What I mean is, I don't understand those other programs...
Sorry for the lack of comments, but it's not too complicated. I need to make a function that reverses a string inputed by the user. This is what I have so far, and I'm still learning C++, but I...