Monday, 5 February 2018

Program in C to recognize arithmetic expression

#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<windows.h>
char* list[100];
char* listF[100];
int top=-1;
int topF=-1;
void checkKey(int f,int t,char* ss)
{

int fo=0;
for(int k=0;k<=top;k++)
{
char* pt=list[k];
fo=0;

for(int j=0;j<strlen(pt);j++)
{
if((f+j)<strlen(ss)&&ss[f+j]==pt[j]&&(f+j)<t)
{
    fo=1;
}
else
{

Program in C to recognize if else statement

#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<string.h>
char* list[100];
char* listF[100];
int top=-1;
int topF=-1;
void checkKey(int f,int t,char* ss)
{
int fo=0;
for(int k=0;k<=top;k++)
{
char* pt=list[k];
fo=0;

for(int j=0;j<strlen(pt);j++)
{
if((f+j)<strlen(ss)&&ss[f+j]==pt[j]&&(f+j)<t)
{
    fo=1;
}

Program in C to recognize spaces, words, tabs & chars and no. of lines in a input string and print input string without these words

#include<stdio.h>
#include<conio.h>
#include<string.h>

char* copyString(char s1[100],int l1,int l2)
{
char r[100]="";
int k=0;
for(int i=l1;i<l2;i++)
{
//printf("E loop %d %d\n",l1,l2);
r[k]=s1[i];
//printf("%c",r[k]);
k+=1;
}
//puts(r);
return r;

}

void main()
{
int i,cs=0,k=0,ct=0,cn=0,cw=1;
char a[100]="",b[100],c[100];
char oS[100],*nS;
clrscr();
printf("Enter your string\n");
label1:
gets(c);
if(strcmp(c,"#")!=0)
{

strcat(a,c);
cn+=1;
cw+=1;
goto label1;
 }
//puts(a);
//printf("\n%d",strlen(a));
int o=0;
for(i=0;i<strlen(a);i++)
{
if(a[i]==' ')
cs+=1;
else if(a[i]=='\t')
ct+=1;
else
{
b[k]=a[i];
k+=1;
}
if(a[i]==' '||a[i]=='\t')
{
nS= copyString(a,o,i);
  /*
printf("* * ");
printf("%s",nS);
printf("* * ");
*/if(strlen(nS)>0 &&strcmp(nS," ")!=0)
{cw+=1;

//printf("true \n");
}
o=i;
}
}
printf("\nTotal space=%d",cs);
printf("\nTotal tabs=%d",ct);
printf("\nTotal lines=%d",cn);
printf("\nTotal chars=%d",(k));
printf("\nTotal words=%d",cw);
printf("\n\n");
for(int h=0;h<k;h++)
printf("%c",b[h]);
printf("\n\n");

getch();
}



Thanks

Monday, 25 December 2017

Amazing Google Facts

Today I am going to show some interesting facts related to Google. So I'm directly coming to point. There are some interesting things about Google which you can try now-


Google Sphere- 

Open this  Google Sphere link and you will get a rotating sphere. Use your cursor to control its rotation.

Google Gravity-

  Open this  Google Gravity link and you will get gravitational effect on Google.

Friday, 25 August 2017

FolderShip Beta 1.0

 

FolderShip Beta 1.1



Introduction:

FolderShip is a free software to manage all the directories and files in a system. It is developed and designed by Shivam Saxena as a startup project. The project is basically designed for users having bulk data in their hard disk. Sometimes due to hundreds of files or folders available in a drive or in a directory we can not find desired data. Even if our drive is full then it is really a time consuming process to wipe the data. 

    So to handle all such space and data related problems I developed this software. It is in beta version. You are free to test it. If you get any bug or issue you can contact me either through E-mail or you can also leave a comment related to any feedback and suggestion. You can download this software from the link given below.

Screenshots:



Monday, 20 February 2017

Hide a partition or drive in a Windows based PC

Hi Guys, In this post we learn how we can simply hide our local disk from another users. So that our personal data will keep safe without any risk. For this purpose we will use diskpart as one of system software of Microsoft Windows to handle disk utilization. But remember the hidden drive will not be visible in File Explorer (i.e. My Computer) but can be find out easily using diskpart.


Sunday, 19 February 2017

Your connection is not private error in browsers

Hi Guys, In this post I am going to show you the best method to solve a problem which occurs when we try to connect to the internet and we get the following error on every page.




I wrote this post because last night I also had to face this thing and I really got angry. I tried to troubleshoot my network connection and also try with restarting the network connection but nothing happened. I was still getting the same error.