Thanks guys that what I was looking for. I have been offline for a bit, and am trying to get myself back up to speed with C. I was reading a book that was talking about ref and val (reference and...
Type: Posts; User: DocDroopy
Thanks guys that what I was looking for. I have been offline for a bit, and am trying to get myself back up to speed with C. I was reading a book that was talking about ref and val (reference and...
Can someone explain the difference between ref and val? I think I am getting them mixed up when I am trying to use them, and was hoping someone might be able to clear this up for me. Any help is...
I am trying to expand my reference library for C, and was currious if I could get some input from those you who are actually good at this, as to what you feel are some of the better reference books I...
Well that explains why it was not working...If it wont work that way, then I will never get it to work, will I.
Thanks guys. To me it seemed like such a simple way to check the input (of course...
I am trying to check to ensure the user entered a number instead of a character for this program. I was thinking of using isalpha and saying if that isalpha is true then tell user and end. But I have...
Thanks moi, I have added an if, and corrected the problem with if defaulting to that isalpha option. I also thought I set the is option to run if it is true by adding !=0 after each variable in the...
OK I have my first bit of error checking working, I can ensure users are no entering numbers that are to high for a clock. But I am trying to also ensure they do not enter data that is a letter. I...
I swear I would forget my head if I did not keep it attached most days. Well this is why I keep practicing, so perhaps I will get to a point to remember this kind of stuff.
Thanks guys I...
Well my current code is:
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
typedef struct
I am wondering is it possable to check what the values of a structure are with if statements? I have a strcuture that has three different values in it, and I would like to check each one individually...
Never meant for you to fix my syntax errors such as the semicolon, that was entirely my fault while editing the code before posting I got a little delete happy (sorry about that). Sorry if I did not...
LOL in th eprocess of typing I get more help, thanks guys, I will look this over.
As always I do greatly appreciate the help.
DD
Actually I get a lot less compile errors:
they are
C:\test.c(17) : error C2065: 'totTime' : undeclared identifier
C:\test.c(37) : error C2146: syntax error : missing ';' before identifier...
OK, each time I think I am starting to get it, I add something new, and get even more lost then before. I am trying to write a small program call a function that allows the user to enter a start time...
Thanks again.
I was doing it one way changed my mind and changed the variable. Can't believe I did not catch that. Somedays I am sure that the light I see ahead is a train rushing towards me. :) ...
Hammer, thanks for the guidance. For some reason I just did not think the copy would work like that.
Anyway, I am almost there. I am getting my file to be read, and the data is being writen to...
Greetings all,
I am trying to figure out a way to open file1 read the data from it, then write that data to file2, but I need the data in a different format when written to file2 (this is why I...
Got it finally. I typoed somewhere along the line, so just had to sit there and walk though each line about five times before I saw the typo. Learning is a slow and painful process, but at least I...
OK makes sense. And thanks for pointing out that I missed writting to large the first time, I had not noticed that. Opps.
But Even by making corrections and trying either way you suggested, I am...
Makes sense, by adding (i) I am able to take into account the other part of the table. But when I print Large, I am getting the bad data (I think the address and not the actual number). If I try to...
I am trying to search an array that the user inputs to determine the largest number entered. The Array is entered no problem, but I am having problems with my search.
What I have is a table...
Thanks guys that got me on the right track for now at least :) And I think I see some light up ahead, I just hope it is not an oncomming train ;)
As always I appreciate the help, guidance and...
I have a menu program but want to change it from using numbers to using Characters. I think I understand most of what I need to change. But and confused on the error checking and exactly what I would...
Thanks for pointing me in the right direction. I have got it working like I need to now. But I do have another question.
Dog- You used
srand((unsigned)time(NULL));
is this a better seed...
How would you fill an array with random numbers? Then just to complicate it a little, how would you make any of those numbers that are divisable by nine to be negative? Any help in getting me moving...