Hey, Thanks everyone for the help. I still don't have it working although it's not from lack of trying and I'm off to Toronto on a 6:00 a.m. flight until Monday so I'll give it thought all week-end....
Type: Posts; User: bluenoser
Hey, Thanks everyone for the help. I still don't have it working although it's not from lack of trying and I'm off to Toronto on a 6:00 a.m. flight until Monday so I'll give it thought all week-end....
Just an update folks, I've tried a few different takes on your suggestions and now the least I get is 10 errors. Was I missing any tags? When would a ',' preceed a ';'. That is one of the errors that...
Hello all! I am in a beginner c++ class and have been struggling with this problem. I get a lot of error warnings but don't know what to do to fix it. I tried everything that I can think of and am...
I've written a couple of functions that print out lines in a square or stars to make a circle. I want to write another function that prints out both functions as a series of square and circle...
Thanks greatly All! I Completely understand now.
That subject line just rolls right over the tongue eh! Greetings!
I would just like to know if I can use a "for" in an "if" statement. If yes then what is the correct method. What also about a...
Hey thanks!
I should have thought of that !!!
Hi all !
I have two questions really.
(1). I need to determine if a number resulting from scanf is neg or pos. If neg it will do one thing and if pos another but i don't know the protocol for " if...
I got my prog to work alright with just a for and print statement.
for(a=1; a <= num_a; a++)
fprintf(outfile, "*",a);
Value of num_a determined prior of course. Now on to the next...
Thanks citizens! I think I need to give this some more thought.
Hello all!
It's a brand new day and a brand new query. I would like to use an operator as a variable (in particular '*'). I want to print out a number of '*' horizontally that reflect the...
Thanks guys!
I finally got it. You were both right about the 8x7 not being 8*7 of course and all your help was useful and appreciated. I am on to another set of exersizes now so I may have to...
Hmmm! I don't think I understand what you mean. The previous calculation was 4-2 with the result being 2 then when the loop repeats it should read 8*7 with result being 15. I am trying to make...
Thanks ......... I'm starting to get pretty blurry on this file now. I should have known about the braces but that still does not allow my program to execute. I keep going over it in the debugger but...
Good Morning! (at least it is here)
I have changed the code yet again and while it certainly is looking good it won't even give a result now (just the error message). I don't know much yet about...
Thanks for all the help. I am learning much by this problem and I know it helps with the future ones. I'll try your suggestions and see what it does .......thks agin!
Well I included the fclose's and moved the (y == 0) to the top. I actually got a result this time and half of it is what I want but the other half isn't so it's still fair to say that progress is...
Thanks for the advice but I had just realized myself about the mistake with the (y == '0') line. I've rewritten it and while I think I understand the do while statement I must be missing something....
Greetings!
I wish that it was the infile because I could solve that, but when I take out the if else statements it reads the file OK. I don't however get the results that I want. I am using the...
Thanks fellas,
the prog still doesn't work without a windows error and a crash so I guess there is more wrong than I thought. The .in file is with the other files all in the same directory. I...
I've changed the code but still get windows error messages and then the file crashs. Any more suggestions about why? Thanks all in advance !!
#include <stdio.h>
int main()
{
FILE* infile;...
Thanks for the really quick response but while we have covered the break and continue commands in class I am not familiar with switch and case so I had better stay with what is being taught. It's...
Hello all! Just started taking an evening course in C (brand new to programming)and am enjoying it immensely. I am however having a couple of problems with understanding what I know are pretty basic...