Showing results 1 to 37 of 37
Search took 0.01 seconds.
Posts Made By: neosomosis
Forum: C++ Feb 2nd, 2008
Replies: 5
Views: 713
Posted By neosomosis
Re: Help me to develop this programme in C++

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: 1,147
Posted By neosomosis
Re: simple while loop

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: 784
Posted By neosomosis
Re: Program with 2 arrays

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: 4,710
Posted By neosomosis
Re: Count characters of a string.

No sweat, dude. Glad to help
Forum: C++ Dec 18th, 2007
Replies: 6
Views: 966
Posted By neosomosis
Re: encryption program

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: 869
Posted By neosomosis
Re: int * Help

My mistake...DMA - Dynamic Memory Allocation.
Forum: C++ Dec 18th, 2007
Replies: 8
Views: 784
Posted By neosomosis
Re: Program with 2 arrays

wooo...dude. Is that really necessary?
Forum: C++ Dec 18th, 2007
Replies: 18
Views: 4,710
Posted By neosomosis
Re: Count characters of a string.

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: 4,710
Posted By neosomosis
Re: Count characters of a string.

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: 4,710
Posted By neosomosis
Re: Count characters of a string.

if you meant by ignoring the white spaces, you can use a struct @ while(ws != '\t')
Forum: C++ Dec 18th, 2007
Replies: 18
Views: 4,710
Posted By neosomosis
Re: Count characters of a string.

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: 4,710
Posted By neosomosis
Re: Count characters of a string.

I was gonna post it ;(
Forum: C++ Dec 18th, 2007
Replies: 6
Views: 749
Posted By neosomosis
Re: Using arrays and menus...

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 in...
Forum: C++ Dec 18th, 2007
Replies: 6
Views: 966
Posted By neosomosis
Re: encryption program

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: 869
Posted By neosomosis
Re: int * Help

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: 458
Posted By neosomosis
Re: Program help

I don't see the main purpose of the program
Forum: C++ Dec 18th, 2007
Replies: 18
Views: 4,710
Posted By neosomosis
Re: Count characters of a string.

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: 784
Posted By neosomosis
Re: Program with 2 arrays

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: 4,710
Posted By neosomosis
Re: Count characters of a string.

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: 1,352
Posted By neosomosis
Re: Problems dividing a number

No problem, dude....Glad to help ;)
Forum: C++ Dec 18th, 2007
Replies: 22
Views: 6,312
Posted By neosomosis
Re: remove extra blank spaces in a text file

Nice codings. But why use std::? That's a struct right? Please explain...
Forum: C++ Dec 18th, 2007
Replies: 4
Views: 498
Posted By neosomosis
Re: I need help please

no problem, dude....u just got to code & research more...hohoho...no offense
Forum: Community Introductions Dec 18th, 2007
Replies: 14
Views: 842
Posted By neosomosis
Re: I come in Peace

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 soft...
Forum: C++ Dec 17th, 2007
Replies: 5
Views: 914
Posted By neosomosis
Re: Trying to get a header file to compile with source files

Yup, I can see them now....Thanks iamthwee
Forum: C++ Dec 17th, 2007
Replies: 4
Views: 498
Posted By neosomosis
Re: I need help please

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: 498
Posted By neosomosis
Re: I need help please

Ok...firstly, u really should learn about <fstream>
Declaration:

#include <fstream>

..
...

//in your main()
Forum: Community Introductions Dec 17th, 2007
Replies: 14
Views: 842
Posted By neosomosis
Re: I come in Peace

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: 914
Posted By neosomosis
Re: Trying to get a header file to compile with source files

Did u save the header & the implementation files in the same folder?
Forum: C++ Dec 17th, 2007
Replies: 19
Views: 1,352
Posted By neosomosis
Re: Problems dividing a number

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: 1,352
Posted By neosomosis
Re: Problems dividing a number

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,350
Posted By neosomosis
Re: String Input & Output

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: 6,312
Posted By neosomosis
Re: remove extra blank spaces in a text file

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: 842
Posted By neosomosis
Re: I come in Peace

I'm obliged by the warm welcomes....Thank you
Forum: Community Introductions Dec 17th, 2007
Replies: 14
Views: 842
Posted By neosomosis
Re: I come in Peace

Yup yup....Truly sorry about that.
Forum: Community Introductions Dec 17th, 2007
Replies: 14
Views: 842
Posted By neosomosis
Re: I come in Peace

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 is...
Forum: Community Introductions Dec 17th, 2007
Replies: 14
Views: 842
Posted By neosomosis
Re: I come in Peace

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: 842
Posted By neosomosis
I come in Peace

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...
Showing results 1 to 37 of 37

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:59 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC