Search found 2 matches

by victro_hugo
Mon May 17, 2010 12:49 am
Forum: Volume 106 (10600-10699)
Topic: 10679 - I Love Strings!!
Replies: 101
Views: 69022

Re: 10679 - I love Strings!!!

Yeap is just the prefix
by victro_hugo
Mon Apr 12, 2010 5:57 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 101811

Re: 10035 - Primary Arithmetic

I don't know why I get wrong answer

#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;

int main()
{
int men, i, cont=0;
char num1[10], num2[10];
bool carry=false;
cin>>num1>>num2;
while(strcmp(num1,"0")!=0 and strcmp(num2,"0")!=0)
{
reverse(num1, num1+strlen ...

Go to advanced search