Search:

Type: Posts; User: C++Nerd

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,010

    Hey, you're coding it difficult than it needs to...

    Hey, you're coding it difficult than it needs to be. You don't need to use keyword 'register' to declare int variable and you don't need to use another varible like 'repeat' to mirror the variable...
  2. Replies
    5
    Views
    867

    string of women (names)

    Hi All,

    I've got a few lines of code

    - void getinfo(char &, char &, string &, string &, int);
    - int getmove(char [], string);
    - string name1, name2;

    which use <string> header, but my...
  3. Replies
    14
    Views
    2,333

    Yeh, very well said vVv...goto is also keyword of...

    Yeh, very well said vVv...goto is also keyword of c/c++ like everything else if used correctly and sparingly is fine. There are times that I find using goto help a great deal in terms of program...
  4. Thread: Tick Please

    by C++Nerd
    Replies
    2
    Views
    1,445

    Tick Please

    Hi All,

    Please help my little prog to display date and time, but I want the time to display with ticking second and it's not doing that :-( why?

    Thanks for any help. Borland C++ 3.0 compiler.
    ...
  5. Thread: Keen on Math

    by C++Nerd
    Replies
    9
    Views
    1,400

    Thank you guys for your comments. I've got it...

    Thank you guys for your comments. I've got it sorted after reading Magos' corrrection that a break, breaks out only of one loop at a time, so I only needed to add a flag in the inner loop to indicate...
  6. Thread: Keen on Math

    by C++Nerd
    Replies
    9
    Views
    1,400

    Keen on Math

    Hi please help my program listing 2 digits multiplication 10 lines on screen, pauses and ask if you want to continue or quit by pressing 'Q' it should quit but it doesn't. It could be a very simple...
  7. Replies
    1
    Views
    11,853

    Loan calculation formula

    Hello all,

    I wrote this program to work out monthly payment for personal loan. Say, you borrow 15000 (principal) at 7.50% APR for 4 years?
    So my formula is (maybe wrong):-
    1. months = 4 * 12;...
  8. Thread: Diamond

    by C++Nerd
    Replies
    1
    Views
    1,782

    Diamond

    Hi there!

    I wrote this program as my self teaching exercise, to print a diamond pattern. It works fine, but I've got a feeling that there must be a better way to do this, and to optimise the code....
Results 1 to 8 of 9