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

Search:

Type: Posts; User: parikshit6321

Search: Search took 0.08 seconds.

  1. Replies
    18
    Views
    16,776

    Re: Linear search using recursive function

    Also I suggest that you do a bit more research on recursion. The more you study about it, the more you understand how easy it is ( equivalent to writing a simple formula ). The reason I'm saying this...
  2. Re: [NOOB QUESTION] Really large numbers in C++

    Apart from all the rest mentioned above....to end the program you could use getch() function.

    P.S. You will have to include the conio.h header file.

    Hope I could help...:)
  3. Replies
    3
    Views
    10,641

    Re: "Invalid conversion from int to *int"

    A pointer can only store the address of the partilcular variable location.
    It cannot store the content.

    Hope i could help...:)
  4. Replies
    7
    Views
    2,120

    Re: Return int

    Actually casting is done by adding the data type in paranthesis before the variable you want to type cast such as (float)var.

    What you are doing (15.0f/2) is again a float but according to the...
  5. Replies
    4
    Views
    1,609

    Re: Loop Trouble with For Loop

    Also, you might consider using the lines :

    if(option <= 10 && option >= 1)
    cout<<"The score is "<<judge<<endl;
    else
    cout<<"Invalid Entry.";
    instead of the entire switch...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured