Ha, I totally forgot about these forums until now when I get the subscription email saying someone responded to this thread...amazing :p
Type: Posts; User: Jamsan
Ha, I totally forgot about these forums until now when I get the subscription email saying someone responded to this thread...amazing :p
i rmemeber a link on here about exactly what your asking, but cant remember it exactyl...looking around now.
edit: this is kinda what your looking for, but not the one im thinking of.
using namespace std; is your friend
or use the older header, iostream.h
#include <iostream>
using namespace std;
int main()
empty for loop is basically to have a controlled infinitive loop...
for the parts of a c++ program, how advanced is this class? by the looks of it, its pretty basic, so i'd just go with function...
what he said in a nutshell...
you can have spaces with getline, but not with cin.
I'm assuming there's some kinda database with the CC #'s or something? well....basically, just have if statements....
if (amountspent > credlimit)
cout << "They went over the limit\n";
what type of "file" are you trying to open?
summer holiday? ha...well over this summer "holiday", ive picked up a few books on php and mysql, so im gonna dable with those 2 all summer.....then back to school for some Unix :rolleyes:
codes tags!!!
and you didnt include iostream when you went to run your program king
#include <stdio.h>
#include <iostream.h>
#include <stdlib.h>
if you could post a test file, that would be great.
Just have an array the size of the highest possible numbers....and then for each cell in the array, just increment array2[array1[i]], then find the max of the 2nd array
Genious. Pure genious.
both pieces of code work there chief...dont be jealous ;)
A) use code tags like illustrated in B.
B)
#include <iostream.h>
#include <stdlib.h>
int main()
{
I got it, thanks. :D
How exactly is this used? I need to have a dialog open up and ask the user for the center point of a circle and the radius...im fine with that...im fine with setting up the area in which the circle...
that did it...thanx alot.
How would I go about displaying hover text when going over a tool item? say your in IE (or whatever browser), and you throw your mouse over the back button, and it'll hover "Back to Cboard bla...
MS VC++ 6
This is for VS 6, but it shouldn't be too different
Project ---> Settings ---> instead of Use MFC in a Shared DLL, change it to Use MFC in a Static Library
the executable will be 1 meg + tho...
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <string.h>
int first();
int main()
{
char goal[20];
int show;
maybe im just being utterly and completely naive, but i see you have file3.DAT in your code, yet your test file is file3.TXT
#include <iostream.h>
#include <stdlib.h>
int main (void)
{
cout << "Hello World" << endl;
system ("pause");
return 0;
try casting it perhaps ?
it's doing what its supposed to?