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

Search:

Type: Posts; User: Cambalinho

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: [RESOLVED] how can i convert write() procedure to cout?

    you have right. thanks to all. thanks for all.. thanks
  2. Re: [RESOLVED] how can i convert write() procedure to cout?

    sorry about my english:(
    (i understand that code works... but i mean anotherthing)
    see these way that i want's:

    a.write("hello " + "world")
    like you see, i'm using the '+' operator for concat...
  3. Re: how can i convert write() procedure to cout?

    yah. but why i can't do these in my parameters list?
  4. Re: how can i convert write() procedure to cout?

    but i can convert:

    a.write("hello " + "world")

    for:

    a.write((string)"hello " + "world");

    thanks for all
  5. Re: how can i convert write() procedure to cout?

    thanks for the information
  6. Re: how can i convert write() procedure to cout?

    my objective is my function write() accept '+' for concat the literal strings\variables(directly in function). like these(without any function adicional):


    Console a;
    a.write("hello " +...
  7. Re: how can i convert write() procedure to cout?

    This line has nothig to do with your previous question. Nor has it anything to do with the std::string class!

    You are tryinf to add two pointers which is wrong. Is you want to concatenate thses...
  8. Re: how can i convert write() procedure to cout?

    ok.. i change these:

    string b=(string) argHead;
    to these:

    string b=string( argHead);
    but when i use it:


    Console b;
  9. Re: how can i convert write() procedure to cout?

    void write()
    {
    cout <<"";
    }

    template <typename A, typename ...B>
    void write(A argHead, B... argTail)
    {
    cout << argHead;
    write(argTail...);
  10. Re: how can i convert write() procedure to cout?

    sorry about that, but the normal C++ don't have it. that's why you finished these topic with 1 API function. sorry about that
  11. Re: how can i convert write() procedure to cout?

    thanks for all
  12. Re: how can i convert write() procedure to cout?

    i never notice that lol
    now i get these error:

    "First-chance exception at 0x76d0e1c8 in my classs.exe: 0xC0000005: Access violation writing location 0x00000000."
    why?
    (after press enter, if is...
  13. Re: how can i convert write() procedure to cout?

    i try these now:

    ReadConsole(GetStdHandle(STD_OUTPUT_HANDLE),NULL,NULL,NULL,NULL);

    but don't works:(
  14. Re: how can i convert write() procedure to cout?

    unless i can do it with ReadConsole(), but i don't know how:(
  15. Re: how can i convert write() procedure to cout?

    see these:

    write("hello world" , NewLine, varname1)

    to c++:

    'write(' -> 'std::cout <<';

    ',' - > '<<';
  16. Re: how can i convert write() procedure to cout?

    so instead include the Read()\Write in console class, i make them part of my own language(keywords\functions) is what you are advice me?
  17. Re: how can i convert write() procedure to cout?

    but:
    1 - how use 'Write' word instead 'cout'?;
    2 - can i add it to my class?

    (i just convert my new language to C++ and then i call the C++ compiler(it's free... well the Dev C++;))
  18. Re: how can i convert write() procedure to cout?

    i'm build these class for be more easy build my own programming language;)
    that's why i wanted 1 funtion in that way, but seems that i must use overloading functions for the number of arguments;)...
  19. Re: how can i convert write() procedure to cout?

    hey the C\C++ is the most powerfull language(i think);)
  20. Re: how can i convert write() procedure to cout?

    is there another way?
  21. Re: how can i convert write() procedure to cout?

    i'm using Visual Studio 2010;)
  22. Re: how can i convert write() procedure to cout?

    sorry, but i get more than 2 errors:
    1 - "error C2143: syntax error : missing ',' before '...' ";
    2 - "error C2061: syntax error : identifier 'B'"

    i use that library and the namespace. so what...
  23. Re: how can i convert write() procedure to cout?

    note: can i use C++11 in VS2010?

    the overloading was the best thing that i found:

    //Write
    //1 argument
    template<typename Type1>
    void Write(Type1 var1) { cout << var1; }
    //2 arguments...
  24. Re: how can i convert write() procedure to cout?

    that tutorial is limited, the 1st argument is the master and tell us, indirectly, how many arguments received:(
    i need use the write() like these:
    write(var1, var2, "hello world")
    the order i...
  25. Re: how can i convert write() procedure to cout?

    ok... but i need build that function;)
    (i'm building the console class for my new language... that's why i need 'rebuild' the cout;))
    can you advice me for correct that errors?
    but can i create...
Results 1 to 25 of 30
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)