Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #44.2K
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for akvilio

Hi, I have a little problem. I need to write a function that will be given a number (with unknown number of digits) and it will search the number for similar neighboring digits. I must say that I'm not allowed to use arrays (unfortunately). I thought of disassembling the number …

Member Avatar for akvilio
0
118
Member Avatar for Cpp_Addict

Hey guys. In C++, if I wanted to read strings into an array I would do this: [code]std::string theWord = ""; for ( int i = 0; i <= SIZE; i++ ) { std::getline ( std::cin, stringArray[ i ] ); }[/code] In C, I am having trouble comming up with …

Member Avatar for urjapandya
0
2K
Member Avatar for kymarscheng

I have made a program to test if the string entered is a palindrome or not. Here's the source code: [code=c]#include <stdio.h> #include <ctype.h> #include <string.h> void clrsp(char *); void rev(const char *,char *); int main() { char str1[80],str2[80]; printf("Enter a string: "); fgets(str1,80,stdin); str1[strlen(str1)-1]='\0'; //eliminate newline clrsp(str1); //clear spaces …

Member Avatar for urjapandya
0
148