Search:

Type: Posts; User: Kons

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    7,418

    No, I meant I renamed the prog to calendar.cpp...

    No, I meant I renamed the prog to calendar.cpp and ran it and it worked fine.

    It was named calendar.c
  2. Replies
    9
    Views
    7,418

    I added iostream. The file needed to be renamed...

    I added iostream. The file needed to be renamed to .cpp :p
  3. Replies
    9
    Views
    7,418

    What would the solution be? I just wanted to view...

    What would the solution be? I just wanted to view the program...

    I suppose I need the header files right? Where do I get those?
  4. Replies
    9
    Views
    7,418

    Illegal operands, why the errors?

    I am a noob at this quite honestly. I am trying to run a program that I found on the board and I am getting these errors. I am using Microsoft Visual C++.

    What is the reason for these errors?...
  5. Replies
    8
    Views
    3,721

    Thanks for your help Salem. You told me exactly...

    Thanks for your help Salem. You told me exactly what I needed to hear. :cool:
  6. Replies
    8
    Views
    3,721

    Ok here is my final product #include...

    Ok here is my final product



    #include <stdio.h>

    int main(void)

    {
  7. Replies
    8
    Views
    3,721

    I just wrote up something quick based on what you...

    I just wrote up something quick based on what you helped me with... am I even headed in the right track?




    #include <stdio.h>

    int main(void)

    {
  8. Replies
    8
    Views
    3,721

    Roll three dice. Count how many times it takes to...

    Roll three dice. Count how many times it takes to get five 3-of-a-kinds.

    That is basically it. I don't have code. The only thing I have written is throwing a pair a thousand times and counting the...
  9. Replies
    8
    Views
    3,721

    Getting three of a kind

    I am wondering how to roll three of a kind out of three dice.

    Does each dice have to be random? Would I use a switch?
  10. Replies
    4
    Views
    14,301

    Thank you. :cool:

    Thank you. :cool:
  11. Replies
    4
    Views
    14,301

    Cannot add two pointers...

    I am getting an error (C2110, cannot add two pointers) on this:



    while(iNum > 0)
    { iRem = iBase % 2;
    iNum = iNum/iBase;
    sBits = "" + sBits + iRem;

    }
  12. Thanks guys, I figured it out with your help. :D

    Thanks guys, I figured it out with your help. :D
  13. Re: Suggestions

    Edit:

    I found it using search, thanks everyone. I will be needing your help later probably.
  14. I am converting this Java prog to C, need some help

    This program was originally written in Java, but I have converted everything except: 'printf(Integer.toBinaryString(iNum));'

    What would I change that to? This is an integer to binary program. I...
Results 1 to 14 of 15