I was able to get rid of the recurring letter already chosen, it was a pretty simple mistake. I replaced my scanf with getchar and a while statement so it would read the letter and not the return,...
Type: Posts; User: tigrfire
I was able to get rid of the recurring letter already chosen, it was a pretty simple mistake. I replaced my scanf with getchar and a while statement so it would read the letter and not the return,...
I tried to use your idea using the malloc(255) definition of *correctString since I don't know how to do it with an array (I tried something and it didn't work out ver well :P )
Anyways, now my...
So, after finding a way better example of how to do this in a C++ format, I sort of converted it into C. The problem is, that when I run the program, I get a segmentation fault error. Trying to debug...
I've worked a bit more on the program since a week ago, and I think
I've made some significant progress, but there're still a few things I
either don't understand how to do, or am doing wrong. With...
Don't really understand pointers and I don't want to use them in this situation unless they're a last resort, any other advice on what I could do?
I used #define to set characters to 30, so the msg array has a maximum size of 30, but if its less, I need the function to return the size of the array. As it is now, the function takes a string of...
I need the following code to return a string of character stored in
array and also return the size of the array. I want to do it without
using pointers and so far have the character storing working...
I dont know if you intended for me to edit other parts of the program, but pointers are something we really haven't covered yet, so not only do I not understand them, I think it'd be better if I had...
I got a little bit of help from a guy on another forum and have re-written my program, but am still having some difficulty. I've
re-written most of the program as the following code shows (read...
I've only been programming about a week, so a lot of this is really new to me. I have pretty much zero past programming experience, so not being able to use global variables after just learning them...
I've modified my code as follows but still have a few problems that need help. The first problem is that balance never changes, I know why this is, but I really don't know how to fix it.
The...
I'm having extremely difficult problems with getting used to not using global variables. I'm trying to write this craps game so that it only uses local variables, but I am having difficult getting...