Sunday, July 12, 2009

C++ programming problems?

Hey guys just starting to get used to this site need some basic help. I need to make a function call certain string when I need then(or at least thats what i think i need.) This is what i have so far











#include %26lt;iostream%26gt;


#include %26lt;string%26gt;


using namespace std;





string french(string a)


{


a = "Alouette, gentille Alouette Alouette, jet te plumerai";


}





int main()


{


french(str);


return 0;


}








I'm trying to write a program that produces verses from a French children's song. The program should not include the same text twice. Once i have written a line of code to print text such as "Alouette, je te plumerai" or "Et le bec" I should not write another line of code that does the same thing. I need to write functions that print portions of the text, and my program should call the functions at the correct time. Obviously something is messed up i just need a little boost of help if someone doesn't mind thanks.

C++ programming problems?
string french(string a)


{


a = "Alouette, gentille Alouette Alouette, jet te plumerai";


}





int main()


{


french (a);


return 0;


}


No comments:

Post a Comment