No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
So i've been working on this for while and i keep getting error after error, after i posted here last i cleaned it up but here is my latest debug error. I feel like that my code and algorithms are all there but im messing up in one of my … | |
So all i have to do is clean it up but cant find the source to the actual error. Heres my code: [code] #include <iostream> #include <fstream> #include <string> using namespace std; bool isVowel(char ch); string rotate(string pStr); string pigLatinString(string pStr); int main() { ifstream infile; string newstr; int length; … | |
Im getting this error while im working on my pig latin code and have no idea what it is referring too. so here is the error and my code. ill specify the piece of code that is erroring. [code] #include <iostream> #include <fstream> #include <string> using namespace std; bool isVowel(char … | |
Here is my problem: Write a program that reads in a text file and converts it to pig Latin. i.e. if the first letter is a consonant, move it to the end and add “ay” to the end, if it is a vowel add “way” to the end. Here’s an … | |
/*I have to write code for the Game of Life. I wrote nearly all the code for it but for some reason when I run my second generation it just displays the same one as before. Here is my code any idea on why this is happening would be greatly … | |
here is the question: Write a program that reads names and gpa’s from a text file. The file looks like: James 3.9 Margaret 3.5 Charles 1.2 Jennifer 4.0 Your program sorts the students ascending by gpa, and prints the sorted list including names. To keep the names with the numbers … | |
So i need help doing this project and heres what i have to do for the program i left some comments on what my code does etc, please help. Write a program to compute the square root of a number. DO NOT USE any math libraries in this program. You … | |
For some reason i cant get my GCD function to return anything in my main function someone help? [code] #include<iostream> using namespace std; int firstanswer; int secondanswer; int a; int b; int gcd (int a,int b) { int t; while ( b != 0); { t = b; b = … | |
So, i got this much done so far but im stuck and i cant get my third case statement to work, also for some reason it prints off the calendar like days 8 9 10, etc, if you copy and paste and run it you will see it doesnt line … | |
My problem is that my program doesn't print out the first number in the sequence. Like if i ask it to print out 10 numbers it will only print out 9 numbers and skip the first number that it should start with. example of the output is at the bottom … |
The End.