Tags » Programming

That Good Ol' Coding Mindset

People much smarter than I am say that coding requires a particular mindset. As someone who once didn’t have anything near the required mindset, I concur. 1,067 more words

Coding

Back in Development

After a long break from making video games I have decided to get back into it again. This time though it is going to be a little bit different: instead of using Stency I want to use Unity.  208 more words

Dutchlee Productions

April 20th: Little Pictures

Not too bad! You can see all of the image previews there listed alongside a breakdown of the path and file name, and the image previews are actually pretty efficient, freeing and reserving the image resource based on what’s on screen. 125 more words

Daily Update

A Quicksort Implementation in JavaScript

Quicksort is an algorithm for quickly sorting large data sets. The sort operates around a chosen value, called a pivot, and uses recursion to separate the data into values less than and values greater than the pivot, repeatedly dividing the set until the values are in order, then reassembling the entire set. 386 more words

JavaScript

C Program to check if a String Palindrome or not

C Program to check if a String Palindrome or not . Compiled in Dev C++

#include<stdio.h>
#include<string.h>
#include<conio.h>
void reverse_string(char [],char []);
int compare_string(char * , char *);
main()
{
        char a,b;
        int isPalindrome;
        printf("\n Program to Find if a String Palindrome or not Using Pointer\n");
        printf("\n-----------------------------------------------------------------\n\n\n");
        printf("Enter Text : ");
        gets(a);
        strlwr(a);
        reverse_string(a,b);

        isPalindrome=compare_string(a,b);

        if(isPalindrom==1)
        printf("\nString is Palindrome");
        else
        printf("\nString is not Palindrome");

        getch();
        }

 int compare_string(char *first , char *second)
     {
       while(*first!='\0')
       {
           if(*first==*second)
              {
                  first++;
                  second++;
               }
                else
              {
               return 0;
              }

       }

       return 1;

     }

 void reverse_string(char a[],char b[])

     {
          int i,length,n,k=0;
          char *j;
          n=strlen(a);
          for(i=n-1;i>=0;i--)
          {
             j=&a[i];

             b[k]=*j;

             k++;

          }

          b[k]='\0';   

     }

Output

WBUT Assignment

C program to Copy String using Pointer

C program to Copy String using Pointer . compiled in DEV C++


#include<stdio.h>
#include<string.h>
#include<conio.h>
void copy_string(char [],char []);
main()
{
        char a,b;
        int result;
        printf("\n Program to Copy String Using Pointer\n");
        printf("\n--------------------------------------------------------\n\n\n");
        printf("Enter Text : ");                                                   
        gets(a);
        
        copy_string(a,b);
        
        printf("\nSource String %s",a);
        printf("\n\nCopied String %s",b);
       
        getch();
        }
        
        
        
        
   void copy_string(char a[],char b[])
     {
       int i,k=0;
       char *p;
       for(i=0;i<strlen(a);i++)
       {
              p=&a[i];
              b[i]=*p;
             
               
       }
         b[i]='\0'; 
      } 


Output

WBUT Assignment