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

Search:

Type: Posts; User: Xupicor

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    585

    Re: Visual c++, winapi, mfc?

    And by the way, wrong section.
  2. Replies
    6
    Views
    1,943

    Re: Reading from specific row on notepad

    Looks like your professor is going to teach you how he did tricks in the stone age. Using the same tools.

    Nobody is actually forcing you to use it at your own time. You can always compile your...
  3. Replies
    25
    Views
    3,016

    Re: struct question

    I think you should re-read the answers provided so far, and do a little research on your own. You can't demand the community to put the knowledge in your brain, that's not how it works.
  4. Replies
    10
    Views
    2,351

    Re: Building Boost for Mingw

    Also you can download Nuwen's MinGW distro which contains GCC 4.5.2 and Boost 1.45.0
    http://nuwen.net/mingw.html
    If you're having trouble building it... Feel free to ignore this comment if it's not...
  5. Replies
    15
    Views
    5,026

    Re: Help with prime number program

    Well, I don't see '2' on my keyboard, therefore there is no '2'. It's propaganda. ;)



    Yup, you're right again. That actually didn't make much sense, did it? Well, that's a sign I need less...
  6. Replies
    15
    Views
    5,026

    Re: Help with prime number program

    Yeah, how did I forget sqrt(n)? About that - you can actually generate primes (to a file, lets say, or just count'em) up to 10^18 with about 123MB RAM used if you mix your methods.
    The sieve gives...
  7. Replies
    15
    Views
    5,026

    Re: Help with prime number program

    By the way, first check if the number is dividable by 2, (if so - and it's not 2 itself, not a prime), then 5 (if so, and it's not 5 itself, not a prime). Start your loop at 3 and add 2 at every...
  8. Replies
    7
    Views
    637

    Re: Problem with beginner program

    Just nitpicking, but:
    This is common in C:
    int main(void)
    but in C++ it can be written as
    int main()

    And, this:

    cout << "You are a pirate and are walking"
    << " along in the crime filled...
  9. Replies
    25
    Views
    3,196

    Re: Self deteting EXE

    I presume most of us here would be able to get through simple application security, I mean, there's regmon/filemon, wireshark, there are debuggers and disassemblers... To start with. ;)

    With...
  10. Replies
    5
    Views
    1,130

    Re: How to develop test cases?

    Maybe I misunderstood you there, but... What about the usual stuff you do in the console every day:

    ./myapp < my.file
    myapp will get contents of my.file on standard input stream.
  11. Replies
    10
    Views
    1,304

    Re: std::vector class with functions?

    Your class' constructor could take two iterators mimicking the way std::sort, std::unique or std::vector itself does it?
  12. Re: Problem in creating resizeable array of string

    for(i; i < size; i++)
    Well what effect does "i;" exactly have that would make you think the compiler is wrong about this?

    On another note, are you really creating a resizeable array? Or maybe you...
  13. Replies
    4
    Views
    839

    Re: documenting your code

    Did you try Google? Doxygen is probably the most popular, but there are others too.

    http://www.gamedev.net/community/forums/topic.asp?topic_id=425419...
  14. Replies
    5
    Views
    971

    Re: Need help with function

    Or forget about the array length and just use std::vector
  15. Replies
    6
    Views
    755

    Re: Creating a html message using C/c++

    C++ way:
    function has a vector of strings named myData as an argument;
    let ss be an object of stringstream;
    put "<html><head>...</head><body>...<table>..." into ss using '<<' operator
    loop...
  16. Re: How to sort array of struct according to different members in struct?

    Take a good look at those two last posts. If you don't understand, look at any sorting algorithm implementation and then re-read those posts. There you go, your answer.
  17. Replies
    6
    Views
    755

    Re: Creating a html message using C/c++

    And why not to use std::vector<std::string> instead of char** while we're doing it the C++ way?

    If you'd be doing this in C, then you'd have to provide the array length to the function too. Then...
  18. Replies
    4
    Views
    3,217

    Re: Multi-level inheritance

    How exactly did you get it compiled with all those errors in the first place?
    I cleaned your code and it worked, but since it was too cluttered to show any particular concept, here, this should make...
  19. Replies
    1
    Views
    3,165

    Poll: Re: Painting program like MS Paint!!!!!!!!!!!!

    Why do you spam various help boards with this?
  20. Replies
    12
    Views
    1,547

    Re: Make a sharable EXE

    That doesn't seem "cool" at all to me, having a "viewer" program and your own/already known file format would seem better. You know, not everybody trusts ".exe" files from other people. Viruses like...
  21. Replies
    14
    Views
    1,187

    Re: Can't Access Value of Variable

    Um, it's not "linux debugger", it's "GDB: GNU Project debugger". And if you understand that as "linux only debugger", then that's not the case either, since it has Windows version for quite a long...
  22. Replies
    24
    Views
    2,614

    Re: 3D array memory allocation dimensions

    Fair enough. :)

    Happens to the best of us... In untested code that is. :) But tea? Really? Hm, you made me want to drink one instead of the usual coffee. You malicious... fellow programmer! x]
  23. Replies
    24
    Views
    2,614

    Re: 3D array memory allocation dimensions

    That is a pretty nice example, but you probably want to take the filling code and make it into a public method fill(const T& fill_value); :)

    And change
    private:
    T p_data;to
    private:
    ...
  24. Replies
    24
    Views
    2,048

    Re: array-based list question

    And what do you mean this seems to be predefined? Lists grow as you feed them (like vectors and others), you can feed it any number of strings (in this case) and it will hold them. You can then...
  25. Replies
    24
    Views
    2,048

    Re: array-based list question

    Now what do you mean, how to put things into std::list or how to write your own implementation of singly/doubly linked list?
Results 1 to 25 of 31
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)