- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
10 Posted Topics
may be this could help you. [CODE] char name[30]; int i; printf("Enter name (only alphabets)"); scanf("%s",name); for(i=0;name[i] != '\0' ; i++) { if( !isalpha(name[i]) ) /* checking for non alphabet */ { printf("not a proper name"); exit(0); } } printf("proper name %s",name); [/CODE] The function isalpha() returns non-zero if its …
According to your result, the exeuction has been done as follows: just check the values of x and y after each statement int x=20,y=35; x = 20 , y= 35 x=y++ + x++; post increment so no change in x and y x= 20+35 = 55, y=35 After the execution …
I dont understand your logic. But I think you are supposed to use relational operator == instead of = in if condition. if ((string[i+1][B]==[/B]string[i]+1) && (startOfNewConinuation[B]==[/B]string[i])) [QUOTE=leeba;1047271]I am trying to write a program that reads a string and shortens it if the letters are in a row. For instance abcdghigjhkhdf …
note the following: menu variable is not declared use break instead of continue after each case in case 9 use exit(0) instead of break no need of default
I think the compiled functions are available in lib files. [QUOTE=ybean4;1048037]stdio.h only includes function declarations. Where does the compiler look for the function bodies?[/QUOTE]
if the dataarray is str[100] str1 is the resultant array then I think, The following code works only if the array has characters other than '0'. [CODE]for(i=0,k=0;str[i] != '\0' ; i++) { if(str[i] != '0') { str1[k] = str[i]; k++; for (j=i; str[j] != '\0' ; j++) if(str[j] == str[i]) …
I think , you can use a simple goto statement inside the if and else.
Hi, As a part of my course work, I need to develop a website, using java technologies, having a blog,forum and wiki. I came to know some CMS based on java like OpenCMS, Magnolia, InfoGlue, MMBase, Apache Lenya, Daisy, Alfresco, AtLeap, Hippo CMS and Contelligent. I am new to these …
Hi, I am kommuru currently doing my masters in germany. Now I am going to start my thesis. In my thesis work, I need to develop a website having forum, blog, wiki etc. I found this website very useful and helpful. cheers, kommuru
Hi, I am kommuru going to develop a website having a forum,blog,wiki, calendar etc. I have some work experience in servlets and Jsp. Can anyone let me know what java technologies, I need to use for implementing the above mentioned. Thanks alot!
The End.
kommuru