It should be:
for(int i=0, j=0;i<5;i++,j++){}
It should be:
for(int i=0, j=0;i<5;i++,j++){}
okay i got 1. updated but im still lost in question 2. about the percent.
ohhh and i know at the end i havent called out all the variables i know how to do that its just that im soo stuck in the input.
The total admin charges is calculated as follows:
cout << percentticket/100. * ticketstotal << endl;
Remember to put a decimal point behind the 100 so that the resultant value becomes a floating point instead of an integer.
Welcome Sarah, enjoy your stay here!
Hi welcome to Daniweb! Jessica Alba is hot!
Hi cynthia welcome to Daniweb!
You can use the function strtod() to convert string to double.
You may wanna look into OpenGL. You can download the library from the net.
The following are the same:
char name[]
char* name
Hi thanks for your comments on my blog but I didn't let it through because it's unrelated to my blog's theme. Hope you understand. :)
Anyway, from your description of what you would like to code, I would recommend C/C++ to you.
Hi welcome to Daniweb! I wasn't that familiar with basic (used it around 15 years ago), but there's a Visual basic sub section here.
what should i change it to??
Switch the position of the two lines stated, as in:
#include <iostream>
#include <cstring>
using namespace std;
#include "SkipCard.h"
im using Dev C++.. the code at main file has no problem.. i try without using header file..
The program can work..So the problem is i dont know how to change it to using header file
Please see my solution above.
There's a few problems to your codes.
Basically, to solve your error, you just have to interchange the below two lines:
#include "SkipCard.h"
using namespace std;
However, I believe the below line will give u an error:
if (input=="skip")
You should use the compare method of string instead.
Finally, it is not a good practice to do your function definition in header file. You should do function declaration in header file and put the function definition in source file instead.
Well, most of the times people come to forums to look for solutions to their programming problems, to find help to solve bugs, etc.
UML is used during the requirement analysis and software design stage, where no coding is done yet and the problem/solution domain is still very abstract. Thus, most programming forums do not have UML / software design section, or have a section but not much traffic.
It would be better if you also list down the languages supported by each of these sites.
Anyway, thanks for the list!
Is there any restriction in location? Else I would be happy to help you with the interview via email (provided it is not a long one).
Hi welcome to Daniweb, hope u find what u want here!
yes you can. But remember to deallocate the memory when it is no longer needed to prevent memory leak.
Normally I would do something like this for dynamic allocation:
Contestant* C = NULL;
C = new Contestant;
if(C) // test valid allocation
{
// do whatever you want here
// Memory deallocation
delete C;
C = NULL;
}
That's a long list of requirements. From what I just browsed through, the real difficulty isn't the programming, but the kind of domain knowledge needed to make a well-designed software like that.
Just wondering, how much is your budget?
Welcome to Daniweb, hope u find what u need here!
You can use any loop, be it for-loop, or while loop, or do-while loop. For the latter two, you just need to increment the counter within the loop and check for it at the condition place.
I also started my programming using basic, but it was on an IBM XT machine with 256Kb RAM and no harddisk. Those days they have basic interpreter on their ROM BIOS.
I don't know where had you been for the 20++ years but programming and software development as a whole evolved a lot. Since then I had moved over to QBasic, then to Pascal, with some dBase and Clipper, and then to C, and then C++, and then to Visual C++ and Java and PHP with mySQL which I am still using now.
Technology evolves. We need to evolve too.
Welcome to the forum! Hope u find what u needed here.
Its better for you to post your query in the relevant forum. Anyway, welcome to Daniweb!
Welcome to the forum! Please post your question to the correct section.