Search:

Type: Posts; User: kantze

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,429

    Well, I forgot to mention something important. :)...

    Well, I forgot to mention something important. :)
    I'm using win32 api , not MFC.
  2. Replies
    4
    Views
    1,429

    Questions about cursor functionality

    Well, hello everyone. I' m using visual studio and i'm trying to add my own cursor in my project.
    Till now, I've added a cursor resource, its ID is IDC_POINTER and in wndclass I've written this ...
  3. Thread: c# or win32 api

    by kantze
    Replies
    19
    Views
    5,237

    I can't understand what "...a less-steep...

    I can't understand what "...a less-steep learning curve" means! Does it mean that c# does the job easier but it's less powerfull? Something like basic??

    @DavidP: I'm using visual studio 2008
  4. Thread: c# or win32 api

    by kantze
    Replies
    19
    Views
    5,237

    c# or win32 api

    Hello there. Me and my friends are trying to find a good (easy and powerful enough) way to build apps with interface. Till now, I've tryed to learn win32 api using c(i find it too hard).
    But these...
  5. Replies
    4
    Views
    4,411

    OK, if I understand right you mean , sth like...

    OK, if I understand right you mean , sth like this...



    int main(int argc, char** argv);
    {
    ....
    ifstream my_file(argv[1]);
    ....
    }
  6. Replies
    4
    Views
    4,411

    problem solved but is not accepted.

    Hi there. I'm trying to solve this problem :
    http://acm.uva.es/p/v111/11172.html
    So i wrote this:

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

    int main()
    {
  7. Replies
    17
    Views
    3,382

    Yes, you're probably right! SO, instead of...

    Yes, you're probably right!

    SO, instead of running the program can we say that?

    Let the maximum number of multiplications on each iteration be max ( If we ran it , we would know it is 476).
    ...
  8. Replies
    17
    Views
    3,382

    Can anyone please tell me if the above answer is...

    Can anyone please tell me if the above answer is somehow acceptable??

    Can we then say: The input size of the problem is the the numbers between n0 and n1, so
    n = n1-n0+1 so ,and as a...
  9. Replies
    17
    Views
    3,382

    Well here is an idea: The problem says that all...

    Well here is an idea: The problem says that all the numbers will be between 1 and 1.000.000. If you run your program (which works right) and type "1 1000000", without quote,
    it prints 476.

    Note...
  10. Replies
    5
    Views
    1,419

    You're so right. I used cin.ignore() and the...

    You're so right. I used cin.ignore() and the problem is solved.
    Before you told me this I used cin.ignore(1,'\n') and didn't work. What does cin.ignore() do differently ?

    @ hk_mp5kpdw : thanks...
  11. Replies
    5
    Views
    1,419

    cin.getline : strange error

    Hello everyone. What I am simply trying to do is to read two names that can contain spaces.
    Here is my code:


    void Foo :: Cinema
    {
    ....
    ....

    char title[20], director[20];
  12. Replies
    10
    Views
    2,550

    Heh, I've no more hesitations now! @ CornedBee...

    Heh, I've no more hesitations now!

    @ CornedBee : Your laconic phrase totally convinced me! ;)
  13. Replies
    10
    Views
    2,550

    OK, thanks for your answer, one last thing to...

    OK, thanks for your answer, one last thing to clarify:

    Is it like what it is said " learn first C to understand basic stuff ( pointers etc) and the continue with c++"
    so here, learn win32 api...
  14. Replies
    10
    Views
    2,550

    wich book to start windows programming??

    Hello , I want to start learning Windows Programming.

    I heard there are 3 ways of creating windowed programs:
    1. Win32 API
    2. using MFC classes
    3. with CLI C++ or .NET or whatever it is...
  15. Replies
    15
    Views
    3,644

    Ok, i understand now why i was leaking memory...

    Ok, i understand now why i was leaking memory (you both made it clear) and I changed my code ( hope it's perfect now :D ).


    Name& Name::operator =(const Name& nm)
    {
    if(this == &nm)
    ...
  16. Replies
    15
    Views
    3,644

    You're right but when I do this , there are six...

    You're right but when I do this , there are six error messages
    "cannot convert 'this' pointer from 'const Name' to 'Name &' " for every line in the operator= body....


    Do you mean something like...
  17. Replies
    15
    Views
    3,644

    Yes , I fixed the line sname = new...

    Yes , I fixed the line
    sname = new char[strlen(sn)+1];
    but if forgot to change the
    delete name; to
    delete [] name; in the Name::Setname! Thx for the info , another bug , corrected!

    Oh ,...
  18. Replies
    15
    Views
    3,644

    I'm very happy, I think I solved my problem!!...

    I'm very happy, I think I solved my problem!! (with your great help of course ;) )

    At first, I commented the line where i explicitly deleted Obj1. I saw that the error message was not shown any...
  19. Replies
    15
    Views
    3,644

    You're right , i fixed this. You are very...

    You're right , i fixed this.

    You are very observant! I'm looking in my code a lot of time and i couldn't see the 's' missing :D:D:D

    I want to test if by deleting one object, i delete the...
  20. Replies
    15
    Views
    3,644

    Well , yes it would be very nice if I could use...

    Well , yes it would be very nice if I could use strings for this exercise.:)
    But (I forgot to say) , my teacher doesn't let us do that and (for practice reasons, i suppose) we use char* ....
  21. Replies
    15
    Views
    3,644

    copy constructor prolbem(??) in a class Name

    Hi everyone,
    I'm trying to create a Name class that holds the name and the surname of a person.
    Name.h


    #ifndef Name_h
    #define Name_h

    class Name
    {
  22. Replies
    6
    Views
    1,563

    I tried it and it worked! thanks a lot.

    I tried it and it worked! thanks a lot.
  23. Replies
    6
    Views
    1,563

    oops , I couldn't decide which function to use....

    oops , I couldn't decide which function to use. Anyway, even the line
    my_file<<"My Score is :"<<MyScore<<endl; doesn't work.
    I noticed that if I remove the main part


    // LOADING FROM FILE...
  24. Replies
    6
    Views
    1,563

    output to file (extremely simple but...)

    Hi there. I'm trying to make a program that loads a value from a file (starting from 0 ) and adds a number each time.
    i.e. I have a file "data.log" that contains 0 , after the first run I add 100...
  25. Replies
    5
    Views
    1,296

    Why don't you post some of your code to make your...

    Why don't you post some of your code to make your question clearer. Its hard to understand what you want.

    And , as I know , lvalue == left value. Which is the left part of an assignment...
Results 1 to 25 of 74
Page 1 of 3 1 2 3