No, I meant I renamed the prog to calendar.cpp and ran it and it worked fine.
It was named calendar.c
Type: Posts; User: Kons
No, I meant I renamed the prog to calendar.cpp and ran it and it worked fine.
It was named calendar.c
I added iostream. The file needed to be renamed to .cpp :p
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?
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?...
Thanks for your help Salem. You told me exactly what I needed to hear. :cool:
Ok here is my final product
#include <stdio.h>
int main(void)
{
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)
{
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...
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?
Thank you. :cool:
I am getting an error (C2110, cannot add two pointers) on this:
while(iNum > 0)
{ iRem = iBase % 2;
iNum = iNum/iBase;
sBits = "" + sBits + iRem;
}
Thanks guys, I figured it out with your help. :D
Edit:
I found it using search, thanks everyone. I will be needing your help later probably.
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...