Free Graphics Libraries - freeprogrammingresources.com seems to have a bunch of 2d graphic libraries for c++. I've never done graphics, so that is about as much help as I can offer. Good luck
Type: Posts; User: MarlonDean
Free Graphics Libraries - freeprogrammingresources.com seems to have a bunch of 2d graphic libraries for c++. I've never done graphics, so that is about as much help as I can offer. Good luck
Hi People,
Its been awhile since I worked on C++, but I am back on the horse again.
My problem seems to be that EOF causes a loop.
Example :
I have a file with 3 lines of data, 50...
Hi
I have a paradox 7 table, CustomerDetails and I have a form with 2 radio buttons, FirstName & Surname, an Edit box and a dbgrid.
Now i want the user to select what to search for ( Firstname or...
Hi everyone,
Its been a while since I have been on the forum, but I have returned once again. These days I am using CodeGear C++ 2009 builder as my IDE of choice, but now I need your advice. I am...
Brilliant Cyberfish!!! Seems I have been high on something for the last two days... all my loops were nuts.. Thnks again
www.warebizprogramming.com/text/cpp/section6/part2.htm
Hello everybody,
I think i am having a problem with my compiler(or with my logic) since yesterday whenever I use a loop (for, while, do...while) the program gives the error:
This application...
Ok so i have to put cin.ignore() in before the while to test the input of pool... It works now, but im dont quiet understand why... why is cin.ignore() so important?
Thanks for the reply MacGyver, but that did not solve the problem... any other idea?
I have a problem using getline in a loop. The first time that I have to enter a Address, it works. but from there on it just skips the cin for the rest of the gardens..
void...
void compare(WeatherReport Report);
.
.
.
for(i=0;i<DAYS;i++)
{
WeatherReport.compare(MonthlyReport[i]);
}
.
.
Ok sorry but i'm slow today - I need to pass an array to the << operator, not just a single element... how will i do that?
istream& operator>> (ifstream& ins, WeatherReport& report[i])
or...
friend istream& operator>> (ifstream& ins, WeatherReport& report);
.
.
istream& operator>> (ifstream& ins, WeatherReport& report)
{
ins.open("InputFile.dat");
for(int i=0;i<DAYS;i++)
...
because im a total idiot
Ok forget my last post: I figured it out- its just like using a normal array (when you overload the << and >> operators
for(i=0;i<DAYS;i++)
{
in_stream1>>MonthlyReport[i];
}
...
OK - I have a any array of size 30. Each array element is a class that consists of 5 objects.
i have declared it as follow
WeatherReport MonthlyReport[DAYS];
Now I want to read input...
ok- lets say I want to write the following friend statement as a member function instead
friend Pairs operator *(const Pairs& f, const Pairs& s);
will it be something like
Ok so I use a constructor to ensure that there isnt junk values stored in a variable. rather use the constructor to initialize a variable to zero than a random value like 43535
ok... I think I follow. what is the difference between the declaration statements of a friend and of a member...
Ok, so I googled to see if I can see what the difference is between friends and members of a class, but all sites seem a little hazy....
I think a friend has all the power of a member, so why ...
What is the proper decent way to use constructors (default as well). what purpose do they serve?
I can use constructors on classes, but I am only retyping code not really sure what it means
...
Can someone please direct me to a nice, easy tutorial regarding the overloading of operators. My textbook isnt very clear and the sites i looked at seemed a bit too complex.
Thanks!
I get these errors when trying to compile this class
class CDAccount
{
public:
CDAccount(float Balance,float MatureBalance,float intrest,int term);//Constructor
CDAccount(); //default...
Ok - so without using global varibales, this is the only way? what if I dont want to pass sum to the function, but only the 2 ints? is that possible?
Ok, i am busy learning recursion. I want a function that receives two int and add everyting from int a to int b. then it must return the sum
double Function(int Start, int End)
{
int sum=0;...