Search:

Type: Posts; User: Homer

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Loops

    by Homer
    Replies
    5
    Views
    983

    This bit of code will accept one character. If it...

    This bit of code will accept one character. If it is a not a number, it will loop back to the start, if it is a number, it will convert it to an int (from a char) and display it.

    If you need more...
  2. Thread: just starting

    by Homer
    Replies
    8
    Views
    6,185

    MSVC++ has its own built in text editor so you...

    MSVC++ has its own built in text editor so you dont need to write your source code in notepad.

    Open MSVc++ then go to file|new.
    Click on the files tab then C++ Source file.
    Then click in the...
  3. Thread: Funny program

    by Homer
    Replies
    4
    Views
    2,390

    Thanks MrWizard, I tried that too, and that...

    Thanks MrWizard, I tried that too, and that dosn't work.

    I think I'm going to have to create a web page and get him to download it from there.

    Thanks for your replies...
  4. Thread: Funny program

    by Homer
    Replies
    4
    Views
    2,390

    Thanks Zewu, tried that already, didn't work!

    Thanks Zewu,
    tried that already, didn't work!
  5. Thread: Funny program

    by Homer
    Replies
    4
    Views
    2,390

    Funny program

    Hi all,

    I have written a funny program that takes your name and then assigns you a silly name.

    Its written for MSVS C++ but should compile on any common compiler with slight modification:
    ...
  6. Look up the use of getche() function, which is...

    Look up the use of getche() function, which is ANSI standard.
  7. Replies
    10
    Views
    1,692

    elchulo2002 The statement is not in a...

    elchulo2002


    The statement is not in a loop so it will not "keep on looping"

    The cin will wait until something is input from the kb (+return).

    The next statement is an IF statement,...
  8. Replies
    2
    Views
    2,906

    Hi Stefanie. Are you at Tameside College? ...

    Hi Stefanie.

    Are you at Tameside College?

    We have just done a very similar excersise.
  9. Thread: main()

    by Homer
    Replies
    1
    Views
    850

    NO!!!! The ANSI standard for the main function...

    NO!!!!

    The ANSI standard for the main function is:-

    int main(int argc, char *argv[])

    ie returns an integer. This is why the main function always terminates with return 0;

    a lot of...
  10. Replies
    10
    Views
    1,692

    ER, You mean 'if the variable input has...

    ER,

    You mean

    'if the variable input has the value 'q' then...
  11. Thread: compile errors

    by Homer
    Replies
    4
    Views
    1,488

    Your function prototype and definition need to...

    Your function prototype and definition need to have the same name

    float std_dev (int [], int, float); // function prototype

    float stdDev(int nums[], int numel, float av)
    {...
    };
  12. Thread: a program

    by Homer
    Replies
    2
    Views
    994

    Remove the second set of '

    Remove the second set of '<<' from the cout in line 57:-

    cout<<i;

    also, you may need to enclose the 8 in the case statement in single quotes:-

    case '8':

    This compiled to give no errors,...
  13. Replies
    5
    Views
    1,617

    To include capitals as well... if ((a >= 'a'...

    To include capitals as well...

    if ((a >= 'a' && a <= 'z')||(a >= 'A' && a <= 'Z'))

    :)
  14. Thread: debugging code

    by Homer
    Replies
    3
    Views
    1,926

    Hi DS.

    I could not even compile the code, I am using Dev c++.

    You do not have a return statement for yout main() function.
    Also your main() function should be 'int main()' (not necessary on all...
  15. Thread: Best C++ Book?

    by Homer
    Replies
    9
    Views
    2,043

    Try your local library first... It's an...

    Try your local library first...
    It's an undertapped source of knowledge.

    Then try sites like amazon.com and read the reviews.

    hth
  16. Replies
    2
    Views
    1,188

    Hey! that's my catchphrase!

    Hey! that's my catchphrase!
  17. Replies
    8
    Views
    1,612

    If kbhit has found a key, use getch() to retrieve...

    If kbhit has found a key, use getch() to retrieve it. If it is not the one you wanted, carry on with the program...
  18. Thread: getline function

    by Homer
    Replies
    11
    Views
    1,988

    wrong syntax?

    shouldn't this be "c:\\manfile.txt"; ?
  19. Thread: Goto

    by Homer
    Replies
    2
    Views
    2,269

    Goto is an absoulte jump, mainly used in BASIC. ...

    Goto is an absoulte jump, mainly used in BASIC.

    The use of goto in c++ is considered bad programming practice.
  20. Thread: Icons

    by Homer
    Replies
    3
    Views
    860

    Are they..

    Are they also known as 'avaters' or something...
  21. Replies
    7
    Views
    1,936

    The answer is here

    Zen's Code:-



    #include <iostream>

    using namespace std;

    void fn(int array[][3] )
    {
  22. Replies
    2
    Views
    1,088

    Try something like this

    This is a bubblesort that I wrote for one of my projects.
    it is written for Dev C++ so will probably need modifying.
    You will also need to modify the method of inputting your data into your arrays....
  23. Replies
    3
    Views
    1,021

    Start with this:-

    This will give you a start:-

    #include<iostream.h>

    int main()
    {
    for(int x=0;x<99;x++)
    {
    cout<<"I will not hack other people's programs!\n";
    };
  24. Replies
    5
    Views
    939

    I have been learning c++ since september 12th at...

    I have been learning c++ since september 12th at college - 1 day/week.
    Prior to that, I did City&Guilds visual basic again 1 day/week.

    Prior to that... a long time ago... I did basic and a bit of...
  25. Thread: OO programming

    by Homer
    Replies
    1
    Views
    1,326

    We already have c#. I suspect languages...

    We already have c#.

    I suspect languages designed for the internet eg Java will become more popular.
Results 1 to 25 of 30
Page 1 of 2 1 2