![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2009
Posts: 3
OS: windows vista
|
helllo every body i hope so that u r in a good health.
i'm a beginner in programming. So, i want to get help about a programme that i wrot. The proble is that it doesn't work with me. which is as follw: HTML Code:
#include <stdio.h> #include <string.h> int main() { #define MAXSIXE 51 char string1 [MAXSIXE]="Hello world"; char stirng2 [MAXSIXE]="Hello world and space"; int i; i = strcmp(string1,string2); if (i<0) printf("%s is less than %s \n\n",stirng1,stirng2); else if(i==0) printf("%s is equal to%s \n\n",stirng1,stirng2); else printf("%s is greater than %s \n\n",stirng1,stirng2); printf("The lenghth of string1 is %d.\n",srtlen(stirng1)); printf("The lenghth of string2 is %d.\n",srtlen(stirng2)); return 0; } HTML Code:
#include <stdio.h> #include <string.h> int main() { #define MAXSIXE 51 char string1 [MAXSIXE]; char stirng2 [MAXSIXE]; int i; printf("Please enter the first message:"); gets(stirng1); printf("Please enter the second message:"); gets(stirng2); i = strcmp(string1,string2); if (i<0) printf("%s is less than %s \n\n",stirng1,stirng2); else if(i==0) printf("%s is equal to %s \n\n",stirng1,stirng2); else printf("%s is greater than %s \n\n",stirng1,stirng2); printf("The lenghth of string1 is %d.\n",srtlen(stirng1)); printf("The lenghth of string2 is %d.\n",srtlen(stirng2)); return 0; } |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
![]() |
| Thread Tools | |
|
|