So can any of the admins give us an estimated date of when the link directory will be up again?
Hi Dani, has the link directory been removed? If so, then I would have to remove the link to Daniweb on my company website....
No new features. Changes include a new navigation menu and sidebar and fluid width. Plus a few small stylistic changes, such as a larger quick reply box. All of the changes that came as a result of this thread were unexpected bug fixes that just get things working the way they were meant to in the first place.
I see.... there used to be a link directory, is it removed now?
What are the new features or addons? And is there any existing features being removed?
How about update the first post to reflect the latest status of your site revamp? Not everyone will go through all these posts...
I always feel bizarre with the fact that a lot of spam mails managed to pass through my spam killer while some legitimate mails got blocked.
I am eating a chocolate bar now. :)
If you need to perform the two bold statements, then the best way would be something like this:
1. Prompt user for his name and package choice.
2. Prompt user for the number of hours.
3. Compute the cost for ALL three packages and store them in three different variables.
4. If user choose package A, display cost and possible savings if he choose package B and C. This would be simply the subtraction between the costs of different packages.
5. Repeat step 4 for package B.
6. Repeat step 4 for package C.
I would advice threadstarter to read post #2, #3 and #5. The rest are either incorrect or referred to another question.
To adrianapatty_28, please start another thread if you have a totally different question. Its making this thread messy.
I thought there are already such product in the market? Go google "secure usb flash drive".
Hi.I want to thank in advance for all replys.
Well let's get to the problem.
I need to a C++ code that will do the following:
1.User inputs a number
2.All digits of the number inputed not divisable by 2(odd numbers) must be multiplicated. (* operation ).
3.Show multiplication result.Please give a reply till tomorrow.
We don't do homework for people here. Try it out yourself and post up your code if you encounter any problems.
Ok..
where exactly i should put the random generator?
Then, can u help me how to use recursive loop here?int random (int num) { srand (time (NULL)); num = rand(); cout << rand() << endl; int n = m; cout << n << endl; if (num != 0) return num % 10; num = num / 10;
Thanks.
1. Not all paths in your function returns an integer. You would encounter a warning if you try to compile your code.
2. What's the use of "n" and "m" ?
3. Seed your random generator once in your main function before calling the random function.
4. If what you want is to generate random number, you don't have to use loop or recursive function at all. But it's kind of unclear what you actually wants, so it's better if you can elaborate your requirements.
Hi welcome to Daniweb! Does your caps lock happen to be spoilt? :P
Hi welcome to Daniweb! What languages do u use?
Just had noodle for breakfast.... :)
Hi welcome to Daniweb! Maybe u shld post your problem on the hardware section or the relevant OS section?
thanks. and yeah i updated it with the brackets. and now cost is the problem. it says "Run-Time Check Failure #3 - The variable 'cost' is being used without being initialized." hmmmmm i guess ill do some more reading and try to correct it but if i cant hopefully i get some more help.
Well, initialized the variable "cost" then. In fact, make it a habit to initialize all your variables.
Before learning how to use those child controls like buttons, edit boxes, etc, you need to learn how to create a windows application.
You can try to go through the following tutorial:
Win32 API tutorial
Some C compiler will give you a warning when your main function does not return an integer.
In this case, do the following changes to the main function:
int main()
{
......
......
return 0;
}
Hi there is a "Pascal and Delphi" section under "Software Development". You can post your question there.
Hi Richard, welcome to Daniweb!
Hi michelle, welcome to Daniweb! Just post your queries at the relevant forum!
Apart from initializing "i" to zero in all your for loops, your final display statement should be:
printf("%d occurs %d times\n", i, counters[i]);
Just had dry dumpling noodle for breakfast. :D
Hi cynthia, welcome to Daniweb! You can post your question at the relevant section, or simply do a search for existing threads.
Seeing you have made some efforts in coding it yourself, I will take the trouble to go through your long post.
Here are the problems:
1. Initialize all your marks and counters when you declare them:
double mark=0.;
double std_aver=0.;
int total_students_counter=0;
int section_counter=0;
double studnt_section_aver=0.;
double course_aver=0.;
double master_aver=0.;
Remember, make it a habit to initialize your variables, especially those that you will be using for computation.
2. Reinitialize these two variables in the following locations:
do
{
double total_marks = 0.;
total_students_counter=0;
do
{
/// blah blah blah rest of codes...
This step will correct your section average computation.
3. Computation for course counter is wrong. Use the following instead:
master_aver = course_aver/section_counter;
Note that I replace the total_students_counter with section_counter, because your "course_aver" variable is actually a total of "section averages".
Just a simple example of calling a function:
get_start_balance();
To call a function, you just need to use the function name, and pass whatever parameters needed (in the above case the function doesn't take in any parameters).
Actually, you are already calling functions. "printf" and "scanf" are functions too.
Hi Dina, welcome to Daniweb! Feel free to contribute to the community.
Welcome to Daniweb! I would advice you to get a good vc++ book instead of getting online tutorials.
Which version of vc++ are u using? Are u familiar with C++ in the first place?
Feel free to post your question at the C++ section.
Welcome to Daniweb! It's always nice to have more girls here :)