Thread: cin cout with winapi ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    cin cout with winapi ?

    can you use cin and cout with the winapi ? such as drawtext() and the other functions ? of so how ?

    i was thinking
    Code:
        cout<<drawtext()<<endl
    something like that.

    also little trouble figureing out exactly what is going on with this ':' in the inline function

    Code:
    public:
      Rectangle(int w = 0, int h = 0)
        : wide(w), high(h) {}
    
    
    and
    
    MyType::MyType(int i) : Bar(i) { // ...
    
    MyType2::MyType2(int i) : Bar(i), m(i+1) { // ...
    so bar(i) is in the scope of mytype2 or just share the variable i ? same i or different i ? passed by ? reference or address ?

    inline inside class rectangle with var wide and high ? yes ?

    !giffcopy==idea.bad ?


    You realize why you can not do this ?

    Code:
    /* regiff.cpp */
    
    #include <string>
    #include <fstream>
    using namespace std;
    
    int main() {
      ifstream in("File.gif"); // Open for reading
      ofstream out("File2.gif"); // Open for writing
      string s;
      while(getline(in, s)) // Discards newline char
        out << s << "\n"; // ... must add it back
    }
    because it would be considered regiffing. meow.
    Last edited by kryptkat; 12-22-2009 at 09:39 AM. Reason: missinghalfofmessage

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CIN Input count question?
    By kamran in forum C++ Programming
    Replies: 5
    Last Post: 10-24-2006, 04:06 PM
  2. Binary I/O with cin and cout
    By The Urchin in forum C++ Programming
    Replies: 4
    Last Post: 10-24-2006, 12:47 PM
  3. Cin & Cout VS. Scanf & Printf
    By MatriXxX in forum C Programming
    Replies: 19
    Last Post: 08-08-2003, 11:47 AM
  4. Redirecting cout stream
    By Arrow Mk84 in forum C++ Programming
    Replies: 1
    Last Post: 10-08-2002, 04:17 PM
  5. i don't know about cin, cout, flag.
    By comwin in forum C++ Programming
    Replies: 2
    Last Post: 11-08-2001, 04:26 AM