Search:

Type: Posts; User: Fizz

Search: Search took 0.00 seconds.

  1. Thread: validation entry

    by Fizz
    Replies
    5
    Views
    2,088

    thanks shouldnt I put a cin >> firstNum ; ...

    thanks

    shouldnt I put a cin >> firstNum ; somewhere?
    Like here maybe?


    void input(){
    cout << "\n\t\t\tEnter First Number: ";
    cin >> firstNum ;
    firstNum = get_double();
  2. Thread: validation entry

    by Fizz
    Replies
    5
    Views
    2,088

    thanks for the reply :) a bit complicated too...

    thanks for the reply :)

    a bit complicated too me; a few unfamiliar words.
    interesting though.
  3. Thread: validation entry

    by Fizz
    Replies
    5
    Views
    2,088

    validation entry

    hello all,
    Im having some problems doing this simple program.


    #include <iostream>
    using namespace std;

    void input();
    float result,firstNum, secondNum;
  4. Thread: just practice

    by Fizz
    Replies
    4
    Views
    1,393

    Oh, I get it... I can only use strcmp with...

    Oh, I get it... I can only use strcmp with strings, right?

    It works now, thanks. :)
  5. Thread: just practice

    by Fizz
    Replies
    4
    Views
    1,393

    When I run it, it returns two errors and I dont...

    When I run it, it returns two errors and I dont understand the debug.
    Could you be a bit more specific? thanks :)
  6. Thread: just practice

    by Fizz
    Replies
    4
    Views
    1,393

    just practice

    I dont understand why the 2 errors.


    #include <iostream>
    #include <string>
    using namespace std;

    char choice;
    void M();
    void C();
  7. Replies
    2
    Views
    858

    Beginner exercise_02

    I m trying to do an end of chapter exercise.

    I’m quite new to programming.
    First time coding with a class; in fact, not even sure if should be using a class here at all.
    Brace yourself it’s a...
  8. Replies
    8
    Views
    15,381

    Hi Hunter2, >> getch(); //You may want...

    Hi Hunter2,

    >> getch(); //You may want this to be outside the loop.
    >> return 0; //This definitely should be outside the loop.
    Oops! sorry, I overlooked that.

    >> You don't really need...
  9. Replies
    8
    Views
    15,381

    (!)Simple array exercise

    I'm doing an exercise from a book [First Course in C++].


    This is what I got so far:


    #include <iostream.h>
    #include <conio.h>
    int main()
    {
  10. Thread: Binocchi numbers

    by Fizz
    Replies
    8
    Views
    1,336

    Oh yes. :-) Sorry I missed that (its 5am here. I...

    Oh yes. :-)
    Sorry I missed that (its 5am here. I better go to sleep)
    Thanks a lot the reply

    Goodnight/morning
  11. Thread: Binocchi numbers

    by Fizz
    Replies
    8
    Views
    1,336

    swoopy: jeez! thanks for that. Thats a bit...

    swoopy:

    jeez! thanks for that.
    Thats a bit better... but still not returning "Fibonacci" numbers (?)
  12. Thread: Binocchi numbers

    by Fizz
    Replies
    8
    Views
    1,336

    >> thats "Fibonacci" and your output looks good....

    >> thats "Fibonacci" and your output looks good.

    It looks good , but it doesnt return the value.
    I run the program and I get rubbish.
  13. Thread: Binocchi numbers

    by Fizz
    Replies
    8
    Views
    1,336

    Binocchi numbers

    Hello guys,
    I’m doing a beginner course in C++.
    I was given as an exercise to display “Binocchi” (spelled right?) numbers using arrays.

    (1, 1+1=2, 1+2=3, 2+3=5, 5+3=8, 5+8=13, etc.)

    (hence:...
  14. Thread: not to sure

    by Fizz
    Replies
    16
    Views
    1,772

    Do you get 'st' on your compiler? Im using...

    Do you get 'st' on your compiler?

    Im using VisualC++... and it doesnt want to know
  15. Thread: not to sure

    by Fizz
    Replies
    16
    Views
    1,772

    #include class date { public:...

    #include <iostream.h>

    class date {

    public:
    char WeekDay[3];
    int DayOfMonth;
    int MonthOfYear;
    int Year;
    };
  16. Thread: not to sure

    by Fizz
    Replies
    16
    Views
    1,772

    Nah... It still returns "th". >>So... 17 % 10...

    Nah... It still returns "th".

    >>So... 17 % 10 == 1 = what?

    >17 % 10 is 7, so the suffix would be "th".

    Right.

    But it supposed to return "st"
  17. Thread: not to sure

    by Fizz
    Replies
    16
    Views
    1,772

    Whoops. Youre right... the switch does the job. ...

    Whoops. Youre right... the switch does the job.

    I changed the value of *TodaysDate.DayOfMonth * to 1 or 2 or 3 but it still gives me *th*.
    How do I get it to print st or nd or rd.

    Thanks
  18. Thread: not to sure

    by Fizz
    Replies
    16
    Views
    1,772

    Yes... but what I dont understand is how. ...

    Yes... but what I dont understand is how.

    *TodaysDate.DayOfMonth* is 17. Right?
    So... 17 % 10 == 1 = :confused: what?

    Also the switch statements dont do anything.

    strange.
  19. Thread: not to sure

    by Fizz
    Replies
    16
    Views
    1,772

    not to sure

    Hello all,

    I’m a newby practicing C++. I’ve copy this code from a book am reading.

    I’m not sure what the *if else* statements and the *switch* statements are used here for.

    I also don’t...
  20. Thread: Simple question

    by Fizz
    Replies
    3
    Views
    977

    Of course!! Silly me! I cannot belive it. ...

    Of course!! Silly me!
    I cannot belive it.

    Thank a lot for the reply :D
  21. Thread: Simple question

    by Fizz
    Replies
    3
    Views
    977

    Simple question

    Hello all,
    Im a beginner and I need a hint.


    // Counter controlled loop
    // Multiplication table
    #include <iostream.h>
    #include <conio.h>
    void main()
    {
Results 1 to 21 of 21