CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: lio_cs

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    1,316

    Re: Need to add pause to existing C++ program

    Well, why do you think that this loop will be executed for exactly 10 seconds? :confused: :rolleyes:[

    And how exactly has OP to *increase* this magic 128000 number to get exactly 10 seconds on any...
  2. Replies
    9
    Views
    9,184

    Re: Simple programming doubt

    Yes your right that's what your code is doing
  3. Replies
    9
    Views
    9,184

    Re: Simple programming doubt

    sorry about that
  4. Replies
    9
    Views
    9,184

    Re: Simple programming doubt

    #include<iostream>
    #include <stdlib.h>
    using namespace std;

    int main()
    {
    int sal;
    system("cls");

    cout<<"Enter the salary of employee:";
  5. Replies
    7
    Views
    1,316

    Re: Need to add pause to existing C++ program

    Or you can send your app to a loop for 10 sec

    for(int i = 0; i < 1000000; i++) // A basic for loop

    or :

    #define DELAY 128000 // increase the delay value if you wish

    void...
  6. Thread: Caesar cipher

    by lio_cs
    Replies
    10
    Views
    9,096

    Re: Caesar cipher

    maybe this site will help you for file access (read / write )

    http://www.cplusplus.com/doc/tutorial/files/
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured