Search:

Type: Posts; User: Elite

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,567

    How do you pause a program?

    Hi, could someone please tell me what function pauses a console program to stop it from dissapearing at the end.
    Is it readln() or something like that?
    Thanks :)
  2. Thread: No strings in c?

    by Elite
    Replies
    4
    Views
    1,131

    this is what i have so far int main() { ...

    this is what i have so far



    int main()
    {
    char mean[] = "nothing";

    if(a < b)
    {
  3. Thread: No strings in c?

    by Elite
    Replies
    4
    Views
    1,131

    No strings in c?

    Hi, I just found out there are no strings in c.
    I need a place to store a word that changes often. Unfortunatley the 3 words that will be stored are of different length.
    What should I use to...
  4. Replies
    5
    Views
    7,746

    woops :o Thanks!!

    woops :o
    Thanks!!
  5. Replies
    5
    Views
    7,746

    How do you use double with scanf?

    Hi, I am having trouble using doubles with scanf.

    Here is the code i'm using



    #include <stdio.h>

    int main()
    {
  6. Replies
    14
    Views
    27,952

    Thanks itsme, I found a different solution...

    Thanks itsme,

    I found a different solution before you post that seems to work

    int speed = -1000;

    printf("Please enter a speed: ");
    scanf("%d", &speed);

    if(speed == -1000)
  7. Replies
    14
    Views
    27,952

    How do you check for valid input?

    Hi, I am trying to make a program that asks a user to enter a speed. The speed shoud be a positive int. How do I make it if a user enters say xyz, a message will say invalid input?

    eg
    int speed =...
  8. Replies
    2
    Views
    1,193

    Thanks bithub That is handy Cheers :)

    Thanks bithub
    That is handy
    Cheers :)
  9. Replies
    2
    Views
    1,193

    Can't quit my program

    Hi, I have a problem that involve global variables. Basicaly, i start in a while loop when a value is true but i cant make that value false when in another function.
    I have 2 source files and one...
  10. Replies
    8
    Views
    37,871

    input from scanf into structure, how?

    Hi, I am making a simple program that asks the user to input 2d points and the program will perform various functions.
    This is what I have so far



    #include <stdio.h>

    struct point2D
    {...
  11. Replies
    8
    Views
    1,393

    Thanks guys, I had #include in a...

    Thanks guys, I had #include <iostream> in a header file.
    I didn't know about std::
    Is that new?
    I thought namespaces were just a part of managed code like c#
    Is there any books about c++ using...
  12. Replies
    8
    Views
    1,393

    Need help compiling hello world

    Hi, I am trying to learn c++ from a book called c++ primer. I am using vs .net 7.1
    This will sound like a silly question but has c++ changed heaps in this compiler?
    When i start a new win32...
  13. Replies
    2
    Views
    1,637

    Thanks for such a complete answer Salem. Great...

    Thanks for such a complete answer Salem. Great help :)
  14. Replies
    2
    Views
    1,637

    Do most people store numbers in char?

    Hi, I am still new to c so this might sound like a basic question. Up till now i have been using scanf to store user inputted numbers into int and float ect. I am reading a book called Practical c...
  15. Replies
    5
    Views
    997

    Noob constructor question

    Hi, I am having a little trouble understanding constructiors and member functions. I am reading 2 books on c++, sams teach yourself c++ in 21 days and c++ interactive course. I am up to the chapter...
  16. Replies
    7
    Views
    1,552

    I C, I think i'm getting it now, i'll have to...

    I C, I think i'm getting it now, i'll have to write a few programs with them to get comfotable:)
    Thanks for you help
  17. Replies
    7
    Views
    1,552

    Hmmm.....something just occured to me, when i get...

    Hmmm.....something just occured to me, when i get this program running, how is the switch code going to know if i press a,b or c?
    Its got case 1; case 2; ect, shouldn't it be case a; case b; or...
  18. Replies
    7
    Views
    1,552

    Thanks Blackrat, its starting to make sense now,...

    Thanks Blackrat, its starting to make sense now, i did a quick google on constructors/deconstructors and i still need to learn about them then it should be clear. Is it because when i create a shop...
  19. Replies
    7
    Views
    1,552

    How do you call member functions

    Hi, I am still reasonably new at this and i've come up against yet another problem. So far i haven't had trouble creating classes and objects and using member functions of specific objects in main,...
  20. Replies
    9
    Views
    1,443

    Thanks for the tip DougDbug you guys rule:)

    Thanks for the tip DougDbug

    you guys rule:)
  21. Replies
    9
    Views
    1,443

    Ahhh, it all makes sense now, sorry i dont know...

    Ahhh, it all makes sense now, sorry i dont know how i missed salems post
    Well thanks heaps for that :)
  22. Replies
    9
    Views
    1,443

    Well its starting to make sense now but its just...

    Well its starting to make sense now but its just not compiling and when it does the program doesnt work

    The book i'm using is called c++ interactive course which was recomended by lots of ppl at...
  23. Replies
    9
    Views
    1,443

    Thanks ... , but that doest seem to work ...

    Thanks ... , but that doest seem to work

    example


    #include <iostream>

    int half(int letter);

    int main()
  24. Replies
    9
    Views
    1,443

    I dont get functions

    Hi, I've been trying to get a simple fuction to work for ages, i understand what functions are and what they do i just dont know how to make the give and return values. I've read the chapter on...
  25. Thread: First program

    by Elite
    Replies
    9
    Views
    1,295

    Thanks for the tip bennyandthejets:)

    Thanks for the tip bennyandthejets:)
Results 1 to 25 of 51
Page 1 of 3 1 2 3