Search found 2 matches

by s7mahess
Wed Jun 30, 2010 7:56 am
Forum: Challenges Solved
Topic: Lower Count
Replies: 20
Views: 1523

c++

Code: Select all

  for (int i=0;i<mystr.length();i++){
  	if (mystr.at(i) <= 122 && mystr.at(i) >=97){
      result++;
  	}
  }
by s7mahess
Wed Jun 30, 2010 7:30 am
Forum: Challenges Solved
Topic: The Powers That Be
Replies: 27
Views: 3011

Solved it in C++, was much harder than the ways above but worked #include <iostream> using namespace std; string add(string augend,string addend){ //funktioniert nur für positive ganzzahlen int i,j,k,s1,s2,sum,uber=0; string str,result=""; i=augend.length()-1; j=addend.length()-1; if (i>=j...