Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~10.5K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

14 Posted Topics

Member Avatar for tracethepath

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: [CODE]#include <iostream> #include <string> #include <fstream> using namespace std; int main(){ int count = 0; char a; ifstream fin; fin.open("yeehaa.txt"); ofstream fout; fout.open("yeehuu.txt"); …

Member Avatar for udayasankar
0
9K
Member Avatar for C-+

Do you realize that you're using [B]int[/B] as a data type? Try using [B]double[/B] or [B]float[/B]

Member Avatar for n1337
0
149
Member Avatar for ShyamalShah

These guys need to see your codings first; what you have done so far for the task. THEN, we could you...capiche?

Member Avatar for neosomosis
0
118
Member Avatar for free2rhyme2k

Yup... and you cannot use a comparison for string using '==' or '!='. The condition for your while should be &&

Member Avatar for neosomosis
0
133
Member Avatar for evilseed187

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 declaration name of array)

Member Avatar for Salem
0
132
Member Avatar for eranga262154

yup...looks fine to me. How about modifies it for user inputs? See if it can manipulate with users' requirements

Member Avatar for eranga262154
0
171
Member Avatar for balla4eva33

But I though DMA is for integers contain in an array only? Characters won't work for DMA....I've tried it before

Member Avatar for Ancient Dragon
0
122
Member Avatar for nugget93
Member Avatar for np2100

[QUOTE=WaltP;493468] [code=cpp] #include <iostream> using namespace std; int main() { int i; for (i=32; i<126; i++) { cout << [B](char)[/B] i << " " << [B](int)[/B] i << endl; } return 1; } [/code][/QUOTE] What I don't get it, is what is the brackets does...? Are you trying to change …

Member Avatar for np2100
0
133
Member Avatar for eesti44
Member Avatar for Butterflieq

This is the translation (in diagram) for WaltP explanations: - Suppose you're declaring an array named [B]food[/B] - The declaration of an array: [CODE]double food[the_size_of_the_array];[/CODE] - ALWAYS keep in mind that, the number of an array index starts with 0. For example, you want to declare the size the array …

Member Avatar for neosomosis
0
166
Member Avatar for ahmedusa2005

Ok...firstly, u really should learn about [B]<fstream>[/B] Declaration: #include <fstream> .. ... //in your main() ofstream fout; fout.open("NEW.txt"); fout<<name; //this goes after user inputs @ after you stored students' names into -> name .. ... .. //once done, close the file fout.close();

Member Avatar for neosomosis
0
107
Member Avatar for neosomosis

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 today ;) Hope u guys could spare me some ideas.... P/S: I'm not good with introductions....

Member Avatar for neosomosis
0
127
Member Avatar for nicz888

I don't quite understand your question....You required to break a statement, right? E.g: [B]This is just a test -After break the whole string- This is just a test[/B]

Member Avatar for neosomosis
0
146

The End.