Search Results

Showing results 1 to 26 of 26
Search took 0.01 seconds.
Search: Posts Made By: koolboy
Forum: C++ Oct 24th, 2007
Replies: 4
Views: 731
Posted By koolboy
ok, i understand! i will try my best from nowon to follow the exact rules on this site. if you are not going to help with this problem, i am perfectly fine. i once again apologize for not following...
Forum: C++ Oct 24th, 2007
Replies: 4
Views: 731
Posted By koolboy
i have written the following code. the problem is when i run (F9), i dont see my output neither do i see any error in the program. any idea why? thx in advance.

empId: an array of seven long...
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
huh?
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
#include <iostream>
using namespace std;

int main ()
{
const int size = 7;
int array[size] = { 5658845, 4520125, 7895122, 8777541,
8451277, 1302850, 7580489};
...
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
i put that, and now i have stopped getting error. but now, i dont see wages being calculated in output, any idea? :(
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
i know i have declared as a float wages[size];. so, i didnt get you when u said just add the indexing count after each use of wages in the loop.
you mean something like cin >> wages[count]; ??
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
i still don't get it...:(
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
do i need to write double wages[size]; ??
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
i kind of get it, but not entirely though
can u write the code so i know wat i need to change? thanks
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
in order to calculate wages, i have tried following

for (int count = 0; count < size; count++)
{
wages = hours[count] * payRate[count];
cout << "Employee number: " << array[count]...
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
hey vmanes,
thx for all the help. Let me show you my program which is currently working fine.

#include <iostream>
using namespace std;

int main ()
{
const int size = 7;
long...
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
ok, i get that. but i dont know how to use array function and index function to store it. can you give me an example using the command? thx for all the help
Forum: C++ Oct 22nd, 2007
Replies: 23
Views: 1,690
Posted By koolboy
hi all,

I need a little bit of help. heres my problem. if someone can help me get started, tht would be really wonderful. many thx in advance.

there are 7 different numbers are given which are...
Forum: C++ Oct 15th, 2007
Replies: 5
Views: 967
Posted By koolboy
hey pratibhan,
tht fixed my error. thx a lott. but my goal for this program is tht program should ask me to enter the sales for nE, sE, nW, and sW then it should calculate which division in a...
Forum: C++ Oct 14th, 2007
Replies: 5
Views: 967
Posted By koolboy
#include <iostream>
#include <string>
using namespace std;
float input_div(string);
void findHighest(float, float, float, float);
int main()
{
float nE, sE, nW, sW;

nE = input_div( "North...
Forum: C++ Oct 5th, 2007
Replies: 8
Views: 1,258
Posted By koolboy
hi,

my goal for this specific program is that it should ask me to enter an integer number. if i enter negative integer, i should get an error. because only positive integer allowed! once i enter...
Forum: C++ Oct 5th, 2007
Replies: 8
Views: 1,258
Posted By koolboy
int main()
{
cout << "This Program was written by Nehal Shah\n" << endl;

int num, total;
cout << "Please enter an integer number:\t\t\t";
cin >> num;
while ( num < 0 )...
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
gr8, it worked!! I am really thankful to you for all this help! Do you know by any chance how can I add a smiley face next to Congratulations in my output?
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
Ok, let me explain. The program runs fine with no error, which is great. Only part i need help with is, when two random number comes up for adding! like below

320
+ 120
______
...
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
Hey Narue,

It worked. many many thx for all the help. One last thing, any idea on how to write the two adding numbers right underneath one another? that would be gr8.. thx again
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
i have post the code. its in the first page
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
hi there,

it did worK! but, another problem. when i enter the answer, i get the message for incorrect answer too even though answer is correct. any thoughts? I also dont know how to fixed...
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
ok, i tried std code.. it worked..
but another question..
i dont want that line which says what are the sum of two numbers? i want answer to be displayed underneath the addition of two numbers
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
ok folks. i am including my code with this reply.

#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;
int main ()
{
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
yeah, i have!
Forum: C++ Oct 1st, 2007
Replies: 19
Views: 1,426
Posted By koolboy
hi all,
i need help with writing a program for adding two random numbers. my output should look something like this:

Enter a number between 1 and 1 million: 6758
Enter another number between 1...
Showing results 1 to 26 of 26

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC