u cant. u only can make ammy of str. not the (t)
best str bonus armor in runescape 2011: full helm: torva full helm +4 str bonus necklace: amulet of strength (t) or not your choice +10 str bonus platebody: bandos chestplate or torva platebody +4 str bonus platelegs: bandos tassets or torva platelegs +4 str bonus gloves: barrows gloves +12 str bonus boots: dragon boots +4 str bonus shield: dfs aka dragonfire shield +7 str bonus weapon:2h chaotic maul +155 str bonus/1h staff of light +72 str bonus cape: fire cape +4 str bonus
#include<stdio.h> #include<conio.h> void main() { char *t,*str[10],s[10][50]; int i,j; str[0]=s[0]; clrscr(); printf("Input ten strings\n"); for(i=0;i<10;i++) { gets(s[i]); fflush(stdin); } for(i=0;i<10;i++) { for(j=i+1;j<10;j++) { if( ( strcmp( str[i],str[j]) ) > 0) { t=str[i]; str[i]=str[j]; str[j]=t; } } } for(i=0;i<10;i++) printf("%s",str[i]); getch(); } sunnydeep09
Although Runescape itself does not have a rating, it is marked for 13+ for fantasy violence and fighting.
NO there isn"t
you can''t do it now dude
Not too sure bud..
There is World of Warcraft, but I t can end up being Pricey, unlike Runescape.
You can't make trimmed items or gold items, they can only be obtained from Treasure Trials as part of a random reward from a level 1 clue.
#include <stdio.h> #include <string.h> void main() { char a[4][25],temp[25]; int i,j; clrscr(); printf("Enter the names\n"); for (i=0;i<4;i++) gets(a[i]); for (i=0;i<3;i++) for (j=i+1;j<4;j++) { if (strcmp(a[i],a[j])>0) { strcpy(temp,a[i]); strcpy(a[i],a[j]); strcpy(a[j],temp); } } printf("Sorted strings are \n"); for (i=0;i<4;i++) puts (a[i]); getch(); }
Simple answer, no.
#include<iostream> #include<list> #include<string> #include<vector> void to_upper(std::string& str) { for(std::string::iterator it=str.begin(); it!=str.end(); ++it ) if( *it>='a' && *it<='z' ) *it-=32; } void to_lower(std::string& str) { for(std::string::iterator it=str.begin(); it!=str.end(); ++it ) if( *it>='A' && *it<='Z' ) *it+=32; } void to_ascending(std::string& str) { for(size_t i=1; i<str.size(); ++i) { char c=str[i]; int hole=i; while(hole && c<str[hole-1]) { str[hole]=str[hole-1]; --hole; } str[hole]=c; } } void to_descending(std::string& str) { for(size_t i=1; i<str.size(); ++i) { char c=str[i]; int hole=i; while( hole && c>str[hole-1] ) { str[hole]=str[hole-1]; --hole; } str[hole]=c; } } void to_reverse(std::string& str) { std::string rev; for(std::string::reverse_iterator it=str.rbegin(); it!=str.rend(); ++it ) rev+=*it; str=rev; } bool palindromes(std::string& str, std::list<std::string>& lst ) { lst.clear(); std::vector<int> v; std::string copy( str ); to_lower( copy ); size_t pos; for(pos=0; pos<copy.size(); ++pos) { char& c=copy[pos]; if((c>='a' && c<='z') (c>='A' && c<='Z')) { if(v.size()) v.push_back(-1); v.push_back(pos); } } for(pos=1; pos<v.size()-1; ++pos) { size_t left=pos-1; size_t right=pos+1; while((left<right && right<v.size()) && (v[left]==-1 copy[v[left]]==copy[v[right]])) { --left; ++right; } do { ++left; --right; } while(v[left]==-1); if(left<right) lst.push_back(str.substr(v[left], v[right]-v[left]+1)); } return(lst.size()!=0); } void process(const std::string& str) { std::cout<<"Original:\t""<<str.c_str()<<"""<<std::endl; std::string mod; mod=str; to_upper(mod); std::cout<<"to_upper:\t""<<mod.c_str()<<"""<<std::endl; mod=str; to_lower(mod); std::cout<<"to_lower:\t""<<mod.c_str()<<"""<<std::endl; mod=str; to_reverse(mod); std::cout<<"to_reverse:\t""<<mod.c_str()<<"""<<std::endl; mod=str; to_ascending(mod); std::cout<<"to_ascending:\t""<<mod.c_str()<<"""<<std::endl; mod=str; to_descending(mod); std::cout<<"to_descending:\t""<<mod.c_str()<<"""<<std::endl; mod=str; std::list<std::string> lst; if(palindromes(mod,lst)) for each(std::string str in lst) std::cout<<"Palindrome:\t""<<str.c_str()<<"""<<std::endl; else std::cout<<"No palindromes were found!\n"; std::cout<<std::endl; } int main() { std::string str; str = "The quick brown fox jumps over the lazy dog."; process(str); str = "Madam, I'm Adam."; process(str); str = "In girum imus nocte et consumimur igni."; process(str); } Output: Original: "The quick brown fox jumps over the lazy dog." to_upper: "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG." to_lower: "the quick brown fox jumps over the lazy dog." to_reverse: ".god yzal eht revo spmuj xof nworb kciuq ehT" to_ascending: " .Tabcdeeefghhijklmnoooopqrrstuuvwxyz" to_descending: "zyxwvuutsrrqpoooonmlkjihhgfeeedcbaT. " No palindromes were found! Original: "Madam, I'm Adam." to_upper: "MADAM, I'M ADAM." to_lower: "madam, i'm adam." to_reverse: ".madA m'I ,madaM" to_ascending: " ',.AIMaaaddmmm" to_descending: "mmmddaaaMIA.,' " Palindrome: "Madam" Palindrome: "Madam, I'm Adam" Palindrome: "m Adam" Original: "In girum imus nocte et consumimur igni." to_upper: "IN GIRUM IMUS NOCTE ET CONSUMIMUR IGNI." to_lower: "in girum imus nocte et consumimur igni." to_reverse: ".ingi rumimusnoc te etcon sumi murig nI" to_ascending: " .Icceeggiiiiimmmmnnnnoorrssttuuuu" to_descending: "uuuuttssrroonnnnmmmmiiiiiggeeccI. " Palindrome: "um imu" Palindrome: "In girum imus nocte et consumimur igni" Palindrome: "umimu"
Here i have declared the methods as static and passed the required variables to it. These variables can also be made implemented as data members and methods can be used to operate on them.#includeusing namespace std;class check{public:static void armgstrong(int n){int temp = n, num=0,digit;while( temp!=0){digit = temp%10;num = num*10 + digit*digit*digit;temp /= 10;}if( num == n)printf("%d is Armstrong number\n", n);elseprintf("%d is not Armstrong number\n", n);}static void palindrome( char str[]){int i=0, j=strlen(str)-1, flag = 0;for( i=0, j = strlen(str)-1; i < j && !flag; i++, j--){if( str[i] != str[j])flag = 1;}if( !flag )printf("%s is a palindrome\n", str);elseprintf("%s is not a palindrome\n", str);}};int main(){char str[40];int n;printf("Enter a number :\t");scanf("%d", &n);check::armstrong(n);//no object is need as it a static functionprintf("Enter a string :\t");scanf("%s", str);check::palindrome(str);return 0;}