This file contains hidden or 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<iostream> | |
using namespace std; | |
class Dog{ | |
public : | |
string name; | |
int age; | |
float weight; | |
}; | |
int main(){ |
This file contains hidden or 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> | |
int main(){ | |
FILE *fptr; | |
if((fptr=fopen("clients.txt","w"))==NULL){ | |
puts("File could not be opened"); | |
} | |
else{ |
This file contains hidden or 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> | |
int main() { | |
FILE *fptr; | |
int account=101; | |
char name[]="WinHtut"; | |
double balance=10.1; | |
fptr = fopen("1hello.txt", "w"); | |
if(fptr==NULL){ | |
printf("Somethings wrong with this process"); |
This file contains hidden or 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 main(){ | |
int i=0; | |
int *ptr; | |
int sum=0; | |
ptr=calloc(6 , sizeof(int)); |
This file contains hidden or 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> | |
struct student{ | |
int age; | |
int roll; | |
float marks; | |
}; | |
struct student stu={18,20,100}; | |
int main(){ | |
printf(" printing data from Structure %d\n",stu.age); |
This file contains hidden or 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> | |
int main() | |
{ | |
int arr[5]={10,30,20,50,60}; | |
int *ptr1=&arr[0];// *ptr=arr; | |
int *ptr2= ptr1+3; | |
printf(" address of ptr1= %d\n",ptr1); | |
//pointer address = p + x*sizeof(*p); |
This file contains hidden or 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<iostream> | |
#include<conio.h> | |
#include<stdio.h> | |
using namespace std; | |
void fun(int kkk[]) | |
{ | |
int i; | |
int* f_ptr = &kkk[0]; | |
int* final_ptr = &kkk[3]; |
This file contains hidden or 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 secrets | |
import sys | |
secureNumber=secrets.SystemRandom() | |
while True: | |
print('___Welcome to our Game___') | |
press1=int(input('Press 1 to Read Rule or Press 2 To Play Game:>')) | |
if press1==1: | |
print('>Age must be more than 18:') | |
print('>Show money more than 5000') |
This file contains hidden or 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 <ESP8266WiFi.h> | |
const char* ssid = "****"; | |
const char* password = "****"; | |
int ledPin = 13; | |
WiFiServer server(80); | |
void setup() { | |
This file contains hidden or 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
#!/usr/bin/python | |
import picamera | |
import picamera.array | |
import subprocess | |
import io | |
import os | |
import numpy as np | |
from pushbullet import Pushbullet | |
from time import sleep | |
from push import NotificationHandler |