about gets

Discussion in 'C++' started by mary8shtr, Feb 11, 2014.

  1. mary8shtr

    mary8shtr Guest

    hi.I am writing a program.while i define some variable but program say this variable undefined.
    mary8shtr, Feb 11, 2014
    1. Advertisements

  2. Victor Bazarov, Feb 11, 2014
    1. Advertisements

  3. mary8shtr

    Stefan Ram Guest

    I think this can be done as follows.

    #include <iostream>
    #include <ostream>
    int main(){ int n; ::std::cout << "The variable \"n\" is undefined.\n"; }
    Stefan Ram, Feb 11, 2014
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.