Why does the program take a second to react (making the total time more than it should)
Type: Posts; User: marcusbankuti
Why does the program take a second to react (making the total time more than it should)
Doesn't work either. "name lookup of 'i' changed for new ANSI scoping"
"Using obsolete binding at 'i'"
What's wrong with this code? I can't find a parse error (according to my compiler the parse error is before if)
#include <stdlib.h>
#include <iostream.h>
#include <time.h>
#include <string.h>...
How would a program using that look?
I was wondering what method I would use to count upwards in seconds instead of near instantly.
Ohhhh, function with the system clock. How do I make it function absolutely at random?
Thanks, now different nums come up, but why are they all in the same range? (example when %500, it is 426, 438, 416, etc.)
Thanks alot.
compiler error.
"implicit declaration of function 'int randomize(...)"
3 compiler errors:
case label `(num == 1)' does not reduce to an interger constant
case label `(num == 2)' does not reduce to an interger constant
warning: unreachable code at beginning of...
Where? Can't find.
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
int main()
{
int a;
a==rand(5);
cout << a << "\n";
c++ is c++ isn't it? Is there different variations for windows and dos?
Well, I have the code to make a window
#include <windows.h>
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global...
#include <iostream.h>
#include <stdlib.h>
#include <conio.h>
int main()
{
double num2;
int num;
cout << "Please input the starting number: ";
cin >> num2;
cout << "1. Positive 2....
Thanks. Works now. I am just adding a choice to do negative, etc., so I might need more help.
Ya, the equation is not exactly accurate. Thanks.
Didn't help.
Changing from double to long double did not help.
#include <iostream.h>
#include <stdlib.h>
#include <conio.h>
int main()
{
int num2;
cin >> num2;
{
for(int num2;num2<9999999;num2++)
{
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <iomanip.h>
int main()
{
int a;
cout << setprecision(250);
Still only 4 digits.
Right now my programs run in msdos prompt. How do I make them run in Windows?
Same outcome. only 4 digits after .
I have pi declared because I forgot to get rid of it while trying to rid it of a bug. I want the program to display infinite digits it PI.