Thread: Some minds

  1. #1
    Registered User
    Join Date
    Jan 2017
    Posts
    23

    Some minds

    Some minds-helloworld-jpg

    helloworld111.c
    Code:
    #include<stdio.h>
    #include<stdlib.h>
    #include<malloc.h>
    #include<string.h>
    int main(int argc, char *argv[])
    {
      char * temp1;
      char * temp2;
      char * temp4;
      temp1=(char *)malloc(7);
      temp1[0]='H';  temp1[1]='e';  temp1[2]='l';  temp1[3]='l';  temp1[4]='o';  temp1[5]=' ';  temp1[6]=0;
      temp2=(char *)malloc(7);
      temp2[0]='w';  temp2[1]='o';  temp2[2]='r';  temp2[3]='l';  temp2[4]='d';  temp2[5]='.';  temp2[6]=0;
      temp4=(char *)malloc(2);
      temp4[0]='\r';  temp4[1]='\n';
      printf("%s",temp1);
      free(temp1);
      printf("%s",temp2);
      free(temp2);
      printf("%s",temp4);
      free(temp4);
      return 0;
    }
    helloworld222.c
    Code:
    #include<stdio.h>
    #include<stdlib.h>
    #include<malloc.h>
    #include<string.h>
    int main(int argc, char *argv[])
    {
      char * temp1;
      char * temp2;
      char * temp3;
      char * temp4;
      temp1=(char *)malloc(7);
      temp1[0]='H';  temp1[1]='e';  temp1[2]='l';  temp1[3]='l';  temp1[4]='o';  temp1[5]=' ';  temp1[6]=0;
      temp2=(char *)malloc(7);
      temp2[0]='w';  temp2[1]='o';  temp2[2]='r';  temp2[3]='l';  temp2[4]='d';  temp2[5]='.';  temp2[6]=0;
      temp4=(char *)malloc(2);
      temp4[0]='\r';  temp4[1]='\n';
      printf("%s",temp1);
      temp3=temp4;
      temp4=temp1;
      free(temp4);
      temp1=temp2;
      temp2=temp3;
      printf("%s",temp1);
      temp3=temp2;
      temp2=temp1;
      free(temp2);
      temp1=temp3;
      printf("%s",temp1);
      free(temp1);
      return 0;
    }
    helloworld333.c
    Code:
    #include<stdio.h>
    #include<stdlib.h>
    #include<malloc.h>
    #include<string.h>
    int main(int argc, char *argv[])
    {
     OnlyMnemonicTolabeltemp0:;
      int  tempreturn;
      char * temp1;
      char * temp2;
      char * temp3;
      char * temp4;
      tempreturn=0;
      temp1=(char *)malloc(7);
      if(temp1==NULL)
        {
          printf("Malloc error.\r\n");
          tempreturn=-1;
          goto labeltemp0;
        }
      else
        {
        }
      OnlyMnemonicTolabeltemp1:
      temp1[0]='H';  temp1[1]='e';  temp1[2]='l';  temp1[3]='l';  temp1[4]='o';  temp1[5]=' ';  temp1[6]=0;
      temp2=(char *)malloc(7);
      if(temp2==NULL)
        {
          printf("Malloc error.\r\n");
          tempreturn=-1;
          goto labeltemp1;
        }
      else
        {
        }
      OnlyMnemonicTolabeltemp2:
      temp2[0]='w';  temp2[1]='o';  temp2[2]='r';  temp2[3]='l';  temp2[4]='d';  temp2[5]='.';  temp2[6]=0;
      temp4=(char *)malloc(2);
      if(temp4==NULL)
        {
          printf("Malloc error.\r\n");
          tempreturn=-1;
          goto labeltemp2;
        }
      else
        {
        }
      OnlyMnemonicTolabeltemp4:
      temp4[0]='\r';  temp4[1]='\n';
      if( printf("%s",temp1)<0 )
        {
          tempreturn=-1;
          goto labeltemp4;
        }
      else 
        {
        }
      labeltemp4:
      temp3=temp4;
      temp4=temp1;
      free(temp4);
      temp1=temp2;
      temp2=temp3;
      if(tempreturn==-1)
        {
          goto labeltemp2;
        }
      else
        {
        }
      if( printf("%s",temp1)<0 )
        {
          tempreturn=-1;
          goto labeltemp2;
        }
      else 
        {
        }
     labeltemp2:
      temp3=temp2;
      temp2=temp1;
      free(temp2);
      temp1=temp3;
      if(tempreturn==-1)
        {
          goto labeltemp1;
        }
      else
        {
        }
      if( printf("%s",temp1)<0 )
        {
          tempreturn=-1;
          goto labeltemp1;
        }
      else 
        {
        }
     labeltemp1:
      free(temp1);
     labeltemp0:;
      return tempreturn;
    }
    Rough mind about string searching algorithm.

    Some minds-stringsearch-jpg

    another post

    A mind for program look clear and resource quickly release and easy error process

    some minds

    GitHub - progsourcemy/some-minds: about program algorithm and so on minds ,let program look clear and resource quickly release and easy error process, process overflow.

  2. #2
    Registered User
    Join Date
    Jun 2015
    Posts
    1,640
    As this person is either a troll or a mental case, I suggest that we just ignore this. If you need further proof, look at his previous posts.
    Explode the sunlight here, gentlemen, and you explode the entire universe. - Plan 9 from Outer Space

  3. #3
    Registered User
    Join Date
    Jan 2017
    Posts
    23
    many languages make many jobs,but perhaps waste,

  4. #4
    Registered User
    Join Date
    Jan 2017
    Posts
    23
    one "balance" method perhaps is a very very not bad way,

  5. #5
    Registered User
    Join Date
    Jan 2017
    Posts
    23
    algorithm analysis method example,

    rough mind about volume of pyramid,

    Some minds-zhuititiji-jpg

  6. #6
    Registered User
    Join Date
    Jan 2017
    Posts
    23
    analysis method example,
    rough mind about kinetic energy,

    Some minds-dnfx2-jpg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help writing code! My minds blanking out!
    By to4st3r in forum C Programming
    Replies: 6
    Last Post: 10-28-2009, 09:00 PM
  2. How long before they change their minds...
    By Fordy in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-12-2006, 06:06 PM
  3. Creative Minds Click Here
    By GrNxxDaY in forum Game Programming
    Replies: 13
    Last Post: 07-29-2002, 08:32 AM
  4. Narrow Minds
    By CoderBob in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 03-31-2002, 01:27 PM

Tags for this Thread