User Profile

Collapse

Profile Sidebar

Collapse
19831030
19831030
Last Activity: Jul 17 '07, 11:49 AM
Joined: Jul 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 19831030
    started a topic goto problem
    in C

    goto problem

    Here I have send my code .Actually I wanna delete this goto,because I heard goto is not good statement to use for experiance programmer.I wanna alternative for goto according to my code.It printf("test") is optional statement.I wanna after printf("i = %d, j-1 = %d\n", i, j - 1); goto the for loop in "i"
    Code:
    #include <stdio.h>
    #include <string.h>
    int main(int argc, char *argv[])
    {
    ...
    See more | Go to post
    Last edited by 19831030; Jul 17 '07, 10:13 AM. Reason: forget to put the code

  • 19831030
    started a topic String array
    in C

    String array

    I wanna put string into array ,but I also wanna compare whole string using strcmp.So using 2 dim char array I can't do that,because if I use it I have to compare 2 strings by using char by char.But I wanna to compare whole string by using strcmp.Also I wanna to store a string.
    First time I use argv for store string.But I wanna some selected string store again with full fill above condition.(ie I wanna store array as whole.not char by char)....
    See more | Go to post

  • 19831030
    started a topic delete array
    in C

    delete array

    Can you pls send me a sample code for delete array in C language.delete key word is not in C language.Isn't it?
    See more | Go to post

  • 19831030
    replied to argc argv errors
    in C
    thank you very much ur information...
    See more | Go to post

    Leave a comment:


  • 19831030
    started a topic argc argv errors
    in C

    argc argv errors

    I have send my code,It print some no without ending.but i cant found the fault point can u help me
    Code:
    #include <stdio.h>
    #include <string.h>
    //#include <stdlib.h>	
    int main(int argc, char *argv[])
      {
    	int i;
    	int j;
    	int k;
    	int m;
    	int ptr;
    k=0;
    printf("0");
    putchar('\n');
    	for(i=2;i<argc;i++)
       {
    	for (j=1;j<i;j++)
    ...
    See more | Go to post
    Last edited by 19831030; Jul 16 '07, 05:44 AM. Reason: error of code

  • 19831030
    replied to didnt terminate
    in C
    Hi!
    I enter arguments at the run time (./a.out {aa,bb,aa,cc,de ,dg,cc,cc,jhe}) like this.I use this code for numbered those string and if there are 2 or more string in same I wanna put a same index for that.So required o/p for above set is (0,1,0,2,3,4,2, 2,5) like this.Your help is highly appreciate & pls help me to solve this,bcos still I couldnt solve this.
    Thanks...
    See more | Go to post

    Leave a comment:


  • 19831030
    started a topic didnt terminate
    in C

    didnt terminate

    I have send my code,It print some no without ending.but i cant found the fault point can u help me


    Code:
    #include <stdio.h>
    #include <string.h>
    	
    int main(int argc, char *argv[])
      {
    	int i;
    	int j;
    	int k;
    	int m;
    	int ptr;	
    k=0;
    printf("0");
    putchar('\n');
    	for(i=2;i<argc;i++)
       {
    	for (j=1;j<i;j++)
    ...
    See more | Go to post
    Last edited by 19831030; Jul 12 '07, 08:23 AM. Reason: word missing

  • 19831030
    replied to string problem
    in C
    By using char array I cant take string as one.I use C lang & char array read word one by one.I wanna use strcmp method without usung argv & directly entering word.I use any other type....
    See more | Go to post

    Leave a comment:


  • 19831030
    started a topic string problem
    in C

    string problem

    I wanna know about function that can be taken a string as one other than "argv".That means I didnt wanna read string char by char.i need to take whole string in one.
    See more | Go to post
No activity results to display
Show More
Working...