Search:

Type: Posts; User: vaibhav

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,219

    This is not a school assignment but questions...

    This is not a school assignment but questions from recruitment papers
  2. Replies
    5
    Views
    3,219

    thanx

    thanx
  3. Replies
    5
    Views
    3,219

    operator overloaded but not inherited

    Which is the only operator in C++ which can be overloaded but NOT inherited
  4. Replies
    16
    Views
    3,518

    Pointer dangling or not

    This is an excerpt from an e-book


    char *someFun()
    {
    char *temp = “string constant";
    return temp;
    }
    int main()
    {
  5. Replies
    2
    Views
    1,569

    Volatile in dos application

    I have searched the forum and found that volatile keyword is used so that other programs are allowed to modify it.

    Then why is it provided in dos programming which does not support...
  6. Replies
    4
    Views
    2,113

    But why this is illegal int gr8;...

    But why this is illegal


    int gr8;
    cout<<gr##8;
  7. Replies
    2
    Views
    964

    hetrogenous linked list

    I have found from an ebook that we can maintain links between hetrogenous elements by void pointer.But then how we will be able to derefrence it since, derefrencing void pointer is illegal and also...
  8. Replies
    4
    Views
    2,113

    Thanks grumpy

    Thanks grumpy
  9. Replies
    4
    Views
    2,113

    Output question#define f(g,g2) g##g2

    I read this output question from a site

    #include<iostream>
    #include<conio.h>
    #define f(g,g2) g##g2

    using namespace std;
    int main()
    {
    int var12=100;
  10. Replies
    13
    Views
    3,924

    Can We write something to beginning of a file?

    Can We write something to beginning of a file?
  11. Replies
    13
    Views
    3,924

    Best way to Reverse a file

    How to reverse a text file character by character that is last character of file must be first character of output file.

    Though I did it by taking the text of whole file in character array and...
  12. Replies
    1
    Views
    1,548

    Wow! There is no reply.Ok I have found it myself...

    Wow! There is no reply.Ok I have found it myself


    cmd = New OleDbCommand("select * from titles where title_id=('@a') ", con);


    The real culprit is single quotes in '@a'.Instead of...
  13. Replies
    1
    Views
    1,548

    Table not showing data

    I just want user to select something from combobox and then whole row corresponding to that value should get displayed in datagrid. I am getting table but not getting any data in it.



    cmd =...
  14. Replies
    14
    Views
    9,639

    If you want to do this by char pointer then...

    If you want to do this by char pointer then allocate the required memory through new operator.



    char *a=new char[20];
    cin>>a;
    cout<<a;


    But be sure you don't enter more than 19 word...
  15. Replies
    10
    Views
    6,622

    You can't do it on Dev C++.Turbo C++ provides a...

    You can't do it on Dev C++.Turbo C++ provides a very nice graphics.h header for this
  16. Replies
    9
    Views
    2,343

    Posted by Mario.F Which means they are both 4...

    Posted by Mario.F
    Which means they are both 4 bytes long
    or 32 Bits (1 byte equals 8 bits), also known as word


    No,one word is equal to 2 bytes
  17. Thread: C++ and memory

    by vaibhav
    Replies
    9
    Views
    1,148

    Why Dos is called 16 bit Perhaps because it has...

    Why Dos is called 16 bit
    Perhaps because it has 16 bit(2 bytes) pointers.

    Then Win XP should have 64 bit (8 bytes) pointers
  18. Replies
    14
    Views
    1,653

    Oh! Now I have realised that vector...

    Oh! Now I have realised that


    vector<int> a[10];

    is actually a array of pointer pointing to 10 vectors of size 0.

    Here is proof
  19. Replies
    14
    Views
    1,653

    vector arr[3], is an array of 3 vectors...

    vector<int> arr[3], is an array of 3 vectors (vectors of integers)


    Array of 3 vector?
    Can you elaborate on this
  20. Replies
    14
    Views
    1,653

    if vector a[10]; is an array then...

    if


    vector<int> a[10];

    is an array then why I am not able to use it like


    a[2]=10;
  21. Replies
    14
    Views
    1,653

    Wow now,that's work But what's the difference...

    Wow now,that's work
    But what's the difference between



    vector<int> a[10]; //Even other functions like size and push_back does not seem to work
    //and
    vector<int> a(10);
  22. Replies
    14
    Views
    1,653

    Why vector a[10];...

    Why




    vector<int> a[10];
    cout<<a[2];//Valid
    cin>>a[2];//Invalide
  23. Replies
    14
    Views
    1,653

    Array v/s Vector

    I have recently learnt vectors. Where one should use array and where vector. Is it possible to have 2D,3D...,ND vectors. What is vector equivalent of apart from using iterators.



    int a[10];...
  24. Replies
    12
    Views
    20,470

    Ok,It was just my luck that I got garbage value...

    Ok,It was just my luck that I got garbage value as 0. I have tried several times but you will not always get it as zero.
  25. Replies
    12
    Views
    20,470

    Do you know any compiler which does not do so???

    Do you know any compiler which does not do so???
Results 1 to 25 of 118
Page 1 of 5 1 2 3 4