Forum: C++ Feb 2nd, 2008 |
| Replies: 5 Views: 1,059 These guys need to see your codings first; what you have done so far for the task. THEN, we could you...capiche? |
Forum: C++ Feb 2nd, 2008 |
| Replies: 3 Views: 2,221 Yup...
and you cannot use a comparison for string using '==' or '!='.
The condition for your while should be && |
Forum: C++ Dec 19th, 2007 |
| Replies: 8 Views: 965 I like the way you think :icon_twisted:
But hey, it's not going to hurt just to share. Someone might learn something too, right? |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 No sweat, dude. Glad to help |
Forum: C++ Dec 18th, 2007 |
| Replies: 6 Views: 1,772 I don't quite understand what are you trying to say....Could you make it a lil' bit more detail? |
Forum: C++ Dec 18th, 2007 |
| Replies: 10 Views: 1,164 My mistake...DMA - Dynamic Memory Allocation. |
Forum: C++ Dec 18th, 2007 |
| Replies: 8 Views: 965 wooo...dude. Is that really necessary? |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 Still, in a certain conditions, isspace() would produce more dependent ways of producing outputs. Its your program after all ;p |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 Thats it...Actually, isspace() returns either 0 or 1. In other words, it gives a false or true. Just like conditions |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 if you meant by ignoring the white spaces, you can use a struct @ while(ws != '\t') |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 Correction to WolfPack post....
for(int i = 0; i < iLength; i++){
if(isspace(strTemp.at(i)))
{
iSpace ++;
}
} |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 |
Forum: C++ Dec 18th, 2007 |
| Replies: 6 Views: 963 This is the translation (in diagram) for WaltP explanations:
- Suppose you're declaring an array named food
- The declaration of an array:
double food[the_size_of_the_array];
- ALWAYS keep... |
Forum: C++ Dec 18th, 2007 |
| Replies: 6 Views: 1,772 What I don't get it, is what is the brackets does...? Are you trying to change the output value of i so the value of i is straightly changed to the encrypted value? |
Forum: C++ Dec 18th, 2007 |
| Replies: 10 Views: 1,164 But I though DMA is for integers contain in an array only? Characters won't work for DMA....I've tried it before |
Forum: C++ Dec 18th, 2007 |
| Replies: 5 Views: 620 I don't see the main purpose of the program |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 Easy...Try to insert the characters into an array. That way, you can see what contains in it more clearly |
Forum: C++ Dec 18th, 2007 |
| Replies: 8 Views: 965 Specify your requirements more detail....whether it needs 2 dimensional array or what? Either way, it's simple....try this - Loop the array & inside the 1st loop, loop another array(a different... |
Forum: C++ Dec 18th, 2007 |
| Replies: 18 Views: 13,107 yup...looks fine to me. How about modifies it for user inputs? See if it can manipulate with users' requirements |
Forum: C++ Dec 18th, 2007 |
| Replies: 19 Views: 2,345 No problem, dude....Glad to help ;) |
Forum: C++ Dec 18th, 2007 |
| Replies: 22 Views: 8,813 Nice codings. But why use std::? That's a struct right? Please explain... |
Forum: C++ Dec 18th, 2007 |
| Replies: 4 Views: 621 no problem, dude....u just got to code & research more...hohoho...no offense |
Forum: Community Introductions Dec 18th, 2007 |
| Replies: 14 Views: 1,192 efmesch: Yup...I know they don't really mean what they say...HAH!
nav33n: I was pretty lazy + stress yesterday
I came from a decent, humble and low profile background. Sometimes, I got really... |
Forum: C++ Dec 17th, 2007 |
| Replies: 5 Views: 1,551 Yup, I can see them now....Thanks iamthwee |
Forum: C++ Dec 17th, 2007 |
| Replies: 4 Views: 621 This is how to store something into an array:
for(int i=0;i<25;i++){
string name[i];
cout<<"Enter student's name: ";
cin>>name[i];
}
for(i=0;i<25;i++)
cout<<name[i]; |
Forum: C++ Dec 17th, 2007 |
| Replies: 4 Views: 621 Ok...firstly, u really should learn about <fstream>
Declaration:
#include <fstream>
..
...
//in your main() |
Forum: Community Introductions Dec 17th, 2007 |
| Replies: 14 Views: 1,192 True, true....Besides, I hate to shake things up but some guys in here sure are 'meany'....:(
By the way, nav33n, I've done my homework....BY MYSELF....shish :@ |
Forum: C++ Dec 17th, 2007 |
| Replies: 5 Views: 1,551 Did u save the header & the implementation files in the same folder? |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,345 A quick reminder....
Try not using int as a data type when it comes to salary, price, etc. Use double instead. |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,345 Do you realize that you're using int as a data type? Try using double or float |
Forum: C++ Dec 17th, 2007 |
| Replies: 15 Views: 1,922 I don't quite understand your question....You required to break a statement, right?
E.g:
This is just a test
-After break the whole string-
This
is
just
a
test |
Forum: C++ Dec 17th, 2007 |
| Replies: 22 Views: 8,813 I was surfing around, looking for the same solutions. But few hours ago, I've managed to solve it. This is my code & please, comment my codings:
#include <iostream>
#include <string>
#include... |
Forum: Community Introductions Dec 17th, 2007 |
| Replies: 14 Views: 1,192 I'm obliged by the warm welcomes....Thank you |
Forum: Community Introductions Dec 17th, 2007 |
| Replies: 14 Views: 1,192 Yup yup....Truly sorry about that. |
Forum: Community Introductions Dec 17th, 2007 |
| Replies: 14 Views: 1,192 Sounds like the job for me :*
BTW, can u help me with these:-
"Write a program that reads text from one file and writes an edited version of the
same text to another file. The edited version... |
Forum: Community Introductions Dec 17th, 2007 |
| Replies: 14 Views: 1,192 I was hoping u could spare some motivations....but that'll do ;)
Tell me, how was it like working as a software engineer? |
Forum: Community Introductions Dec 17th, 2007 |
| Replies: 14 Views: 1,192 Aloha...
I'm |acid| from Malaysia. I'm still new to programming....have no working experience but I know a lil' thing or two. I was lurking around DaniW since last few months but only registered... |