This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void cipher(char* p); | |
int main() | |
{ | |
char input[100]; | |
printf("Input Your string: "); | |
fgets(input,100,stdin); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct node | |
{ | |
int data; | |
struct node* next; | |
struct node* prev; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct info | |
{ | |
char* name; | |
int bng; | |
int eng; | |
int mth; | |
float avg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct Stack | |
{ | |
char* elements; | |
int size; | |
int capasity; | |
}stack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int display(int store[], int i); | |
int main() | |
{ | |
int x,i,n,k,temp,flag; | |
i=1; | |
int store[20]; | |
for (n=0;n<20;n++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
void print(int array[], int i); | |
int main(){ | |
int i=0; | |
int array[]={1,2,3,4,5,6,7,8,9}; | |
print(array, i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int partition(int arr[], int start, int end){ | |
int pivot = arr[end]; | |
int i=end; | |
int j; | |
int tmp; | |
for (j=end;j<end-1;j++){ | |
if(arr[j]<=pivot){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Scanner; | |
public class Main { | |
// Arraylists for Input grammar, First and Follow | |
private static Scanner s = new Scanner(System.in); | |
private static ArrayList<String> lhs = new ArrayList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
private static Scanner s = new Scanner(System.in); | |
public static void main(String[] args) { | |
System.out.print("Enter Your String: "); | |
String input = s.nextLine(); | |
if (input.matches("/\\*.+\\*/")) System.out.println("This is a block comment"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Scanner; | |
public class Test { | |
private static ArrayList<String> operators = new ArrayList<>(); | |
private static ArrayList<String> keywords = new ArrayList<>(); | |
private static ArrayList<String> symbols = new ArrayList<>(); | |
private static ArrayList<String> variables = new ArrayList<>(); |
OlderNewer