Search:

Type: Posts; User: Guti14

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    6,201

    Anyone got any ideas on this?

    Anyone got any ideas on this?
  2. Replies
    5
    Views
    6,201

    Thanks for your reply, but it's no exactly what...

    Thanks for your reply, but it's no exactly what I'm after.

    3 or a higher number should exit from the program immediately, I can do that. However, I want the menu to be displayed again ONLY when...
  3. Replies
    5
    Views
    6,201

    How can I repeat a menu on wrong input?

    Would anyone be able to know a way I can make the program display the menu again to the user when their input is invalid?
    Any other than copying and pasting the menu and if statements in the else.
    ...
  4. Replies
    8
    Views
    2,025

    Iv'e removed the iostream.h but I have no idea...

    Iv'e removed the iostream.h but I have no idea what your'e trying to say with your second post. Being a little bit more specific would help.
    And I forgot to mention, when it compiled under C++, it...
  5. Replies
    8
    Views
    2,025

    Program works under C++ but not under C

    This program is able to compile and run succesfully under C++, but not C. The program gives a AccessViolation error message on the first line using NULL. Is there some type of headfile I'm missing? I...
  6. Replies
    1
    Views
    1,136

    A quick question on fflush(stdin)

    Should I be using this in every program that uses scanf% - at least, I'm using scanf% in most of my programs - and then prompts the user for further input?

    Thanks,
  7. Yes, thanks, this worked, though in Borland C++...

    Yes, thanks, this worked, though in Borland C++ Builder 6, it still exceeds the margin by 5 characters.

    Another problem I have though is, when the user enters the "sentinal value"(-1), it is also...
  8. Splitting long line using two fprintf doesn't display proper output

    The program writes a number to a text file correctly if it is a prime number, but it doesn't if the number is not prime. Well, it knows that it is not prime, but it doesn't display the correct...
  9. Could anyone still help me out here? tell me if...

    Could anyone still help me out here? tell me if you know something, I'm an idiot if that's what it takes.
  10. I get call to function write_function with no...

    I get call to function write_function with no prototype, eventhough I have declared a prototype.

    The program actually does run, but when I enter in a number, then press enter, the program doesn't...
  11. My program doesn't create a txt file when I think it should

    Does anyone have any idea why this program doesn't write whether the input number is a prime or not to a txt file?



    #include <values.h>
    #include <limits.h>
    #include <stdio.h>
    #include...
  12. I'll try the same, thanks, I'm using Borland C++...

    I'll try the same, thanks, I'm using Borland C++ builder ver 6

    EDIT: same error still, to me this program makes sense, then again, I'm just a beginner.
  13. Error saying missing function prototype, though Iv'e declared it

    The program keeps telling me that I need to declare a function prototype for initialise_com_port
    But Iv'e done that, can anyone tell me what's going on?



    #include <stdio.h>
    #include...
  14. Can anyone tell me why it displays more than 1 line of the same?

    This program everytime twice displays the line for the user to enter C, D or F. Why is that?
    Also, if the user enter more than 1 letter for the first prompt, the C, D, F line is printed multiple...
  15. Replies
    4
    Views
    2,237

    Print binary numbers to disk file, problem

    Could somebody tell how I can actually write the input and output to a disk file?
    When I open the disk file, it only has the description, but not the data



    #include <stdio.h>
    #include...
  16. Replies
    4
    Views
    2,819

    Okay, Iv'e removed the semicolons from the replys...

    Okay, Iv'e removed the semicolons from the replys and I have added changed open to fopen. I also changed void main() to int main(void). But the program crashes at the line -


    fgets(content_in,...
  17. Replies
    4
    Views
    2,819

    My I/O Program crashes, I need some help

    On the first run I naturally decide to Add an item. Thing is, once Iv'e added an item the program immediately prompts me to update an item. When I enter 1 for updating an item I have to fill in all...
  18. Replies
    4
    Views
    1,915

    Library program - need some help

    Hi

    I am creating a library programme. I want to write the date issue/return, name - first & last, and title of book to a text file.
    I have done this, but I am now at some point I need help. For...
  19. What is a better alternative to writing it this...

    What is a better alternative to writing it this way? So far Iv'e been following in his footsteps by writing code like he does :(
  20. Can someone help me understand this example program

    This is a sample program that my tutor gave me. However, I have very much trouble understanding the second if statement. Would somebody plz be able to explain it to me, in not too difficult language ...
  21. Thread: Bootable floppy

    by Guti14
    Replies
    1
    Views
    1,259

    Bootable floppy

    Could anyone tell me how I would go about creating a bootable floppy suitable for formatting and installing DOS or Windows?
    And what is "ramdisk"?
  22. Replies
    2
    Views
    2,221

    Please, can somebody give me some tips on this...

    Please, can somebody give me some tips on this one??
  23. Replies
    2
    Views
    2,221

    2 questions surrounding an I/O file

    I would like to write all the data types as a whole to the disk file. Iv'e heard something about "fillers". Could someone tell me a little bit what a filler is and how to use it?

    And how can I...
  24. Replies
    8
    Views
    1,395

    But if I use just printf, the text isn't in the...

    But if I use just printf, the text isn't in the colour specified.
  25. Replies
    8
    Views
    1,395

    Question about cprint

    Would somebody be able to tell me why the line "This program accepts.... starts all the way the right side of the screen when I use cprint?



    textcolor (YELLOW);
    cprintf("\n ...
Results 1 to 25 of 72
Page 1 of 3 1 2 3