Search Results

Showing results 1 to 30 of 30
Search took 0.01 seconds.
Search: Posts Made By: newgurl
Forum: C++ Jun 1st, 2006
Replies: 5
Views: 1,376
Posted By newgurl
In this section:

void readId (int& i,int& id, int MAX_SIZE, int& count)
{
id [MAX_SIZE]; ****
count = 0;
do {

cin>>id[i];
}
Forum: C++ Jun 1st, 2006
Replies: 5
Views: 1,376
Posted By newgurl
Hope people dont mind (Lerner and iamthwee), but I would like to start a new post for this assignment of mine. since I think the length of the other one is putting people off and the code is now a...
Forum: C++ May 31st, 2006
Replies: 25
Views: 5,441
Posted By newgurl
You asked if I had abandoned the idea of using parallel arrays.

I havent. I just am walking in the dark here and only getting to understand the whole concept of parallel arrays.

I hope this...
Forum: C++ May 31st, 2006
Replies: 25
Views: 5,441
Posted By newgurl
I really want to print out total for id xx is $....
Total for id YY is $....

I have amended code.
Is this looking closer to it?
I have made comments where I get errors. My declarations here and...
Forum: C++ May 30th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
So my method wont work at all? That is a shame coz it seems so nice and logical to me. I'll start making changes....
Forum: C++ May 30th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
[B]Lerner[B],
If I make changes to make station[count], then will it be ok to have code like this for that section:


void calculateTotalStation (int& MAX_SIZE, string& station, int& count,...
Forum: C++ May 30th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
By the way, as per iamthwee, I changed the station declaration to be string type. (just now). Sorry its not included above and I'll avoid resubmitting to avoid clutter.
Forum: C++ May 30th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
Geez,
thanks everyone.
I have been busy and come up with this. about 5 lines give me errors. So I have not been able to test the thing yet on the data. But I am excited about getting closer!

I...
Forum: C++ May 29th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
Can someone suggest why this for loop is not working as it should?


#include <iostream>
#include <string>
using namespace std;

int main ()
{
Forum: C++ May 29th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
Shame I cant delete old posts, because I have improved my code.

Please ignore the last 2 codes.

I will update soon.
Forum: C++ May 28th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
Forum: C++ May 28th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
I'm sorry about that. I actually dont understand it fully.
I thought I did it, but obviously not.
Do I have to put a [] around everyline then?
Forum: C++ May 28th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
OK,

This one is giving me the error:
16 "incompatible types in assignment of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >' to `std::string[100]' "

It look like it...
Forum: C++ May 28th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
OK,
I've written this small section of code, as per last suggestion:


#include <iostream>
#include <string>
using namespace std;

int main ()
{
Forum: C++ May 28th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
We havent studied classes yet. I was trying to figure out how to use substr and get.line to store strings into parallel arrays. (I know this in theory but cant find HOW to do it). So, I would like to...
Forum: C++ May 27th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
Thanks for your help. I will begin working with this.
However, as stated previously I also have problem on how to insert those string into arrays.
The above code I wrote, only enters single...
Forum: C++ May 27th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
By the way, I have used this code so far to read first line (ID, station, Nameand Address):

void readRecord (int& id, string& name, int& item, double& cost, int& qty, bool& more)
{
//int...
Forum: C++ May 27th, 2006
Replies: 25
Views: 5,441
Posted By newgurl
Hello,
I am stuck on an assignment I am working on. To be honest, the way I've structured it, it goes a bit beyond me.

Can someone kindly assist?

I have to get the following text:
...
Forum: C++ May 19th, 2006
Replies: 3
Views: 2,568
Posted By newgurl
Thanks for your time Dave.
I will comment out any "extra" stuff next time.
Forum: C++ May 19th, 2006
Replies: 3
Views: 2,568
Posted By newgurl
Hello,
I am new at this. I am trying to work with calling functions here. (Eventually I want to do some simple calcs on cost of going through a station...)but am getting an error on line marked with...
Forum: C++ May 19th, 2006
Replies: 3
Views: 3,586
Posted By newgurl
Although it wont make it bold, I just realised it still uses it. So library is called after all. Sorry to waste anyone's time.
Forum: C++ May 19th, 2006
Replies: 3
Views: 3,586
Posted By newgurl
Hello,
Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple:

#include <iostream>
#include <string.h>
using namespace std;
...
......
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
Let me know if you want me to post what I wrote in case you think I changed your stuff....
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
HEY,
just tried that.

BAD NEWS.
Order is no good:

Here is the output for 2 trials (one worked ok)

This program will ask you to enter 3 words.
It will then diplay them in order of word...
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
Hmmm, havent covered arrays yet... so basically trying to do this in really simplistic methods...
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
OK,
here are 2 examples, one is good, other not so good...
ATTEMPT1

This program will ask you to enter 3 words.
It will then diplay them in order of word length
(Shortest word first)
...
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
Hello,
thanks for reply, but no, doesnt seem to be dictionary related.
I just try dork words like wrr and wrrrrrr and wr, and just get it to compare and try to organise by length of string.
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
OK,
I am trying with this method. (you are the second person who has suggested- so I'b better try)...

But no, still weird error of putting them in varying orders....

#include <iostream>...
Forum: C++ Apr 11th, 2006
Replies: 18
Views: 3,307
Posted By newgurl
hello,
Thanks to previous help which has gotten me this far.
However, my lovely program, although looks great in theory doesnt do what its supposed to do. When I type in 3 words, it doesnt put them...
Forum: C++ Apr 8th, 2006
Replies: 2
Views: 10,068
Posted By newgurl
Hello,
I am one of those new assignment people, BUT I have tried to resolve this for a while now. Cant find much on google or other C++ sites.

I am trying to compare string lengths of 3 words and...
Showing results 1 to 30 of 30

 


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

©2003 - 2009 DaniWeb® LLC