No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
14 Posted Topics
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"); …
Do you realize that you're using [B]int[/B] as a data type? Try using [B]double[/B] or [B]float[/B]
These guys need to see your codings first; what you have done so far for the task. THEN, we could you...capiche?
Yup... and you cannot use a comparison for string using '==' or '!='. The condition for your while should be &&
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)
yup...looks fine to me. How about modifies it for user inputs? See if it can manipulate with users' requirements
But I though DMA is for integers contain in an array only? Characters won't work for DMA....I've tried it before
I don't see the main purpose of the program
[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 …
Did u save the header & the implementation files in the same folder?
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 …
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();
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....
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]
The End.