Search:

Type: Posts; User: kevndale79

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    4,753

    new code new error

    well this is what i got and the code compiles but and gives me the current time and then gives me an error and boots out.


    {
    time_t t1;
    struct tm *tptr;...
  2. Replies
    16
    Views
    4,753

    that works

    thanks now it works and im trying to figure how to carry over 30 minutes to the next hour
    for example 18:45 30 minutes later it says 18:75 and i want it to read 19:15.

    if statement? not sure...
  3. Replies
    16
    Views
    4,753

    Coding Problems

    here is the code



    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int main( void )
    {
  4. Replies
    16
    Views
    4,753

    question

    It also doesnt seem to really matter what other code I program into it because all my program ends up doing is compiling and then when it is run it tells you the current time and allows input for a...
  5. Replies
    16
    Views
    4,753

    looking at the link

    thanks for the link although I think it might be written a little over my head..
  6. Replies
    16
    Views
    4,753

    little confused

    okay so the while statement starts the countdown? how would i get the program to display that the timer was set when the program was run and will go off at time 11:00pm (if program is run at 10:30)
    ...
  7. Replies
    16
    Views
    4,753

    Compile

    It does not compile. It did until I tried to put the thirty statement in there and then kind of got stuck.
  8. Replies
    16
    Views
    4,753

    Printing System time and 30 minute alarm

    I am trying to figure out how to get C to set an alarm for 30 minutes ahead of whatever the displayed time is. I got the rough draft of displaying the system time (although it does prompt me to input...
  9. Replies
    7
    Views
    1,340

    Gets and getting it to work

    Is fgets an appropriate substitute? My textbook constantly uses gets but everyone on this website seems to despise it.

    Here is my new rough draft. It won't compile due to the toupper line so not...
  10. Replies
    7
    Views
    1,340

    Opening File

    My assignment is to have the user input a filename and then change that filename to all capital letters. I have no clue how to do this. Any help would be greatly appreciated. I will post the code I...
  11. This is my attempt at inputting an additional var.

    This is my first try at getting the 6th value inputted. Compiles but crashes after the first 5 values are inputted and displayed.





    #include <stdio.h>
    struct Oomba
    {
    int value;
  12. Got it working

    So now my function and structure work with the input of the 5 values. The assignment me asks us to have the user input 5 values then print the results and then input one more value. I am trying to...
  13. Thanks finally got that working

    That part is working now THANKS! Now I am trying to create the function to print out the list of the linked list and it compiles and runs up until the point it sends the input to the function. Here...
  14. Back on track

    This is what I got, I think I am getting the idea but now I am getting an error C2059 with Microsoft visual basic that says syntax error 'type' for the lines that scanf. I didnt write the display...
  15. Linked List/ Array

    I was hoping to gain some understanding of what i was doing and hoping by getting an array to work that would help me figure out my multiple problems with the linked list. The linked list is what I...
  16. new and improved but still not working

    Thanks for the sample program. I changed the structure to a different format (array) hoping that might alleviate some of my many problems. This program does compile but will not run.


    #include...
  17. Revised Program No Luck

    Still working out the kinks. This gives me lots of errors, especially the storage of the values not reflecting the proper struct union type. I only wish my book was a little more helpful.

    Thanks,...
  18. Structure and Linked List User Input Question

    Okay my assignment is to create a program that accepts a user input for 5 values and stores them in a structure and then prints those 5 values back and allows for one more value to be inputted. I...
  19. And if I dont treat month as an array

    What are my options if I would rather not have month as an array??

    Thanks
  20. how do I fix

    I am extremely limited in my knowledge and trying to learn the best I can but what is wrong with the use of my gets statement and how do I fix the single character limit for the month variable....
  21. This code seems to be working with the exception...

    This code seems to be working with the exception of my output being only the first letter of the input month. For example Jun 10 comes out via printf as J, 10. I believe the problem is in sscanf...
  22. Code tags fgets

    Made the recommended changes now it says fgets has too few arguments to call and won't compile. Thanks for your help here is the updated code.



    #include <stdio.h>
    void seperate(char[]);
    char...
  23. Using SSCANF input string output two variables

    Needed some help getting this program to work correctly. The object of the program is to have a user input a string for a date and then call a function to extract that date into two variables (month,...
Results 1 to 23 of 23