Search found 2 matches

by doitnow
Thu Jan 28, 2010 5:18 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 48608

490 - Rotating Sentences ????????????

how can i get through the judge ?? pls help me work this out.



#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;

int main()
{
vector<string> buffer;
vector<string>::iterator itor ;
string str;
int count = 0;
while(getline(cin, str ...
by doitnow
Thu Jan 28, 2010 5:08 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 65009

488 Triangle Wave ??????????????

pls help me, what's wrong with this code ?????????????

#include <iostream>

using namespace std;



void printWave(int amplitude, int frequency)

{

for (int i = 0; i < frequency; i++)

{

for (int j = 0; j <= amplitude; j++)

{

for (int k = 0; k < j; k++)

cout << j;

cout << endl ...

Go to advanced search