Search Results

Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: zalezog
Forum: C++ Aug 14th, 2009
Replies: 9
Views: 522
Posted By zalezog
I doubt whether this will help..:S , your read_in file remains intact, your read_out now is:

#include <iostream>
#include <string>
using namespace std;
int main()
{
string word;
//...
Forum: C Aug 2nd, 2009
Replies: 25
Views: 1,054
Posted By zalezog
hmm, let's C:twisted:

void userInput (int matrix[R_SIZE][C_SIZE], int row, int col) //gathering user input
{
/*You are using a for loop in main().This function just accepts input for a...
Forum: C Jul 29th, 2009
Replies: 5
Views: 382
Posted By zalezog
What if '15' does not exist in the array, what happens then ?
How far will index go ?

or, if there are multiple copies of '15'?
Forum: C Jul 29th, 2009
Replies: 5
Views: 444
Posted By zalezog
Instead of putting the whole thing in main(), why not make one or two different functions for computing the total salary and gross salary.

const int OVERTIME_MULTIPLE = 1.5;
const int...
Forum: C++ Jul 20th, 2009
Replies: 10
Views: 581
Posted By zalezog
Then..



I wouldn't agree.
A snippet which might help you if you can see the link.:twisted:

#include<iostream>
#include<string>
Forum: C++ Jul 19th, 2009
Replies: 10
Views: 581
Posted By zalezog
Another approach could be
1.Make another userGuess string.
2. First , fill all the characters in userGuess string
with underscores( _ ).
3.Make changes in the userGuess string.


guess();...
Forum: C++ Jul 18th, 2009
Replies: 11
Views: 935
Posted By zalezog
//Get lowest
lowest = scores[0];
//Without the for loop code works fine.
//for ( int count = 1; count < numScores; count++)
//{
//if(scores[numScores] < lowest)
// Out of bounds
//array...
Forum: C++ Jun 30th, 2009
Replies: 18
Views: 814
Posted By zalezog
cin would stop reading as soon as it encounters a space !
Use getline instead:

getline (cin , passage)




Instead ,
Forum: C Jun 1st, 2009
Replies: 9
Views: 384
Posted By zalezog
The series breaks down to::
1 - 2 / (2 *1) +3 / (3*2!) -....
i.e 1 - 1 + 1/2! - 1/3!
So the first (major) 2 terms of the series cancel out.
Now, may be you define a variable
int sign_carrier =...
Forum: C++ Mar 30th, 2009
Replies: 4
Views: 715
Posted By zalezog
that is because int the function
void printForm(char form[][6], int row, char column)
you get into the block only once

if(i == row - 1 && j == static_cast<int>(column)-65)

You don't make...
Forum: C++ Mar 4th, 2009
Replies: 18
Solved: PLS. READ
Views: 710
Posted By zalezog
This would certainly work if all the numbers are distinct,else you 'll get only the last occurrence of that number in the 'loc'
Forum: C++ Jan 13th, 2009
Replies: 9
Views: 508
Posted By zalezog
Refer http://www.daniweb.com/tutorials/tutorial71858.html
Forum: C++ Jan 13th, 2009
Replies: 9
Views: 508
Posted By zalezog
Ok,this is the else part of your loop


When you use a cin statement ,the cin stops reading the buffer after it encounters a white space or a newline.So when you read something like this:
"Civics...
Showing results 1 to 13 of 13

 


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

©2003 - 2009 DaniWeb® LLC