Search:

Type: Posts; User: vikernes

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,155

    Thanks for that quick response.

    Thanks for that quick response.
  2. Replies
    4
    Views
    1,155

    Command line arguments (need quick help)

    I've never really used this so I don't know how to do it, but anyway...

    I want to be able to do this:

    call the app like this -> C:\foo.exe 9

    And be able to use that int in the program.
    ...
  3. Thread: itoa()

    by vikernes
    Replies
    4
    Views
    1,911

    itoa()

    I'm trying to count how many times a number appears in an array. Basically you have something like this:



    int array[3][3] ={ {'23', '31', '2349'},
    {'7567', '1', '84'},
    {'355',...
  4. Replies
    6
    Views
    3,025

    Lol. Thanks man!

    Lol. Thanks man!
  5. Replies
    6
    Views
    3,025

    Just a quick question. Why is this crashing at...

    Just a quick question.

    Why is this crashing at last printout?



    struct node
    {
    int data;
    node *next;
  6. Replies
    6
    Views
    3,025

    I don't quite follow you. Why would you need a...

    I don't quite follow you. Why would you need a doubly linked list for a stack? Shouldn't a singly linked list work?
  7. Replies
    6
    Views
    3,025

    Dynamic stack?

    I have an assignment to do and I don't know what the term dynamic stack means. All I was given was the header and the rest is up to me.



    class Stack
    {
    public:
    Stack();
    Stack(const Stack...
  8. Replies
    3
    Views
    1,854

    Ah, thanks. Could you also tell me what would...

    Ah, thanks.

    Could you also tell me what would be the best way to set a timer of some sort to trigger an alarm at certain point? I've tried using the CreateWaitableTimer function but it locks up...
  9. Replies
    3
    Views
    1,854

    How to read from date and time picker?

    Hi,

    How can I read from the date and time picker control? My DT picker is set to only show the time with the spin control. I need seperate data for the hour and minutes selected.
    I've read...
  10. Thread: Dialog

    by vikernes
    Replies
    11
    Views
    1,547

    Thanks everyone. I'm still learning and I need to...

    Thanks everyone. I'm still learning and I need to get this done fast for school :)
    Althought, Dante, your solution did work, I think the problem was that I used a common control, so I had to include...
  11. Thread: Dialog

    by vikernes
    Replies
    11
    Views
    1,547

    Yeah, sorry about that. I forgot to write that...

    Yeah, sorry about that. I forgot to write that you should try compiling it the way it is and run it. Then try adding an edit control, recompile it and see if it runs.
  12. Thread: Dialog

    by vikernes
    Replies
    11
    Views
    1,547

    Yes I did that, but the problem was still there....

    Yes I did that, but the problem was still there. After some fiddling around I found out the problem was with the text editor control. I don't know why or what but whenever I add a control to the...
  13. Thread: Dialog

    by vikernes
    Replies
    11
    Views
    1,547

    Thanks about that, but I'm having a problem. I...

    Thanks about that, but I'm having a problem.

    I did exactly like written in that tutorial and it worked OK. Then I opened the resource file to edit some code and renamed IDD_DIALOG1 to IDD_DLG...
  14. Thread: Dialog

    by vikernes
    Replies
    11
    Views
    1,547

    Dialog

    Hi,

    I need help in writing a simple Windows application. I'm just starting out with Win32 so I'm having a lot of problems with this.

    I want an application that would only have one dialog box -...
  15. Replies
    5
    Views
    1,033

    Yes michaels that's what I wanted to do, but...

    Yes michaels that's what I wanted to do, but isn't || the OR operator? Meaning if i is divisible with 3 or 5 or 7, skip it?
  16. Replies
    5
    Views
    1,033

    multiple if cond.

    Hi,

    Sorry about this noob question, but I'm obviously retarded or too tired to know why this isn't working:


    for(int i = 0; i < 20; i++)
    {
    if(i%3 || i%5 || i%7)
    cout << i << endl;
  17. Replies
    6
    Views
    3,421

    Thanks a bunch hk_mp5kpdw, that settled it. But...

    Thanks a bunch hk_mp5kpdw, that settled it. But I'm getting some strange behavior in my code. Below is my entire code for this procedure:



    #include <iostream>
    #include <fstream>
    #include...
  18. Replies
    6
    Views
    3,421

    Print file in binary mode

    I'm trying to write a program that would read any file (in binary mode) and print, or write as a text file, the bits of the program.

    Is there a function in STD that would do something like that?
    ...
Results 1 to 18 of 18