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

Search:

Type: Posts; User: bhuvaneshnick

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    1,359

    uses of pointers

    i am reading jumping to C++ book.where now i am going through pointers chapter.
    there i seen pointer are used as reffernce variable to pass into the function,like so.but what are the other uses of...
  2. Replies
    2
    Views
    573

    returning struct

    #include <iostream>
    #include <cstdlib>
    using namespace std;
    struct name
    {
    int first;
    int second;


    };
  3. Replies
    7
    Views
    1,399

    Re: passing array to function

    ok sir.i tried to rate you.but it showing u have to spread reputation.how can i do that
  4. Replies
    7
    Views
    1,399

    Re: passing array to function

    thanks understood.And what is mean passing entire array element and passing element by element.answer with example are appreciated Thank you in advance
  5. Replies
    7
    Views
    1,399

    Re: passing array to function

    #include <iostream>
    #include <time.h>
    #include <stdlib.h>
    using namespace std;
    void func(int x[0])//my doubt is here
    {
    cout<<x[2]<<x[3];


    }
  6. Replies
    7
    Views
    1,399

    passing array to function

    i am learning arrays i want to whats the following effect of cods while passing array to the following function

    void fun(array[])
    void fun(array[4])
    void fun(array[],4)
    void fun(array[5],4)
    ...
  7. Replies
    5
    Views
    2,440

    Re: random value at random time

    now it works as silk and smooth as before.but when i try to run srand ().why a new program is being opened.whats the reason
  8. Replies
    5
    Views
    2,440

    Re: random value at random time

    this is the exact program i am using.but still i am getting error.my compiler is gnn gcu with code::block ide and windows 8.1 os
    this is my errror
  9. Replies
    5
    Views
    2,440

    random value at random time

    my motive is to get random variable at every start of program.so it does not show same sequence when it run again and again


    int main()

    {
    srand( time ( NULL ) );
    cout<<rand();
    }
  10. Replies
    4
    Views
    735

    problem in array

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


    int main()
    {


    int a[3]={0,1,2};
  11. Replies
    2
    Views
    750

    array from string

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


    int main()
    {
    string s="Last Assignment/n";
  12. Replies
    4
    Views
    917

    Re: problem with function

    thank you 2kaud really good explaination
  13. Replies
    4
    Views
    917

    problem with function

    int print(void);

    int main(void)
    {
    cout << "The Lucky " << print() << endl; //This line
    return 0;
    }

    int print(void)
    {
  14. Replies
    6
    Views
    1,105

    Re: global variable

    i am using code::block(ide).i found the debugging option but still lot there like watches and more.soon i learn they are really mean.thanks sir.one last question i am new to forums.what do u get if i...
  15. Replies
    6
    Views
    1,105

    Re: global variable

    next time i correct that.i am new to c.all are saying run it through.but i actually don't know what it mean.debugger .please detail me
  16. Replies
    6
    Views
    1,105

    global variable

    expeceted output:20 but what i got is:22.why

    while calling sub function it should take the
    global variable am i right

    #include <iostream>

    using namespace std;
    int a=0;
  17. Replies
    7
    Views
    1,364

    Re: bad side of global variable

    i understand sir thanks for forwarding.will you say what are the other evil sides of decalring global variable
  18. Replies
    7
    Views
    1,364

    Re: bad side of global variable

    i am beginer to c++ till now i am not crossed datastructures and classes.you are above example comes in that category.please sir will say this without struct and classes.i know its baby question.even...
  19. Replies
    7
    Views
    1,364

    bad side of global variable

    here board id global variable
    Take the game board example from earlier—you might decide to create a function to display the board and have that function access a global variable. But what happens...
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured