Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
.menu {
float: left;
<?php
$db_hostname = '127.0.0.1';
$db_database = ' ';
$db_username = 'root';
$db_password = ' ';
?>
<?php
require_once 'login.php';
$db_server = mysql_connect($db_hostname, $db_username, $db_password);
if (!$db_server) die ("Error: connect ". mysql_error());
mysql_select_db($db_database)
or die("Error: database". mysql_error());
$query= "CREATE TABLE cats(
id SMALLINT NOT NULL AUTO_INCREMENT,
family VARCHAR (32) NOT NULL,
name VARCHAR (32) NOT NULL,
#include <iostream>
#include <cmath>
#include <conio.h>
using namespace std;
void main()
{
float x, n, res, form;
int i;
cout<<"Enter x,n: ";
@Levik
Levik / gist:892154
Created March 29, 2011 10:49
lab4
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdlib>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#define N 100
#include<iostream>
#include<cmath>
#include<stdio.h>
#include<conio.h>
using namespace std;
void main()
{
double x,y;
cout<<"Enter x,y: ";
@Levik
Levik / gist:857193
Created March 6, 2011 10:39
lab1.2
#include <stdio.h>
#include <iostream>
#include <conio.h>
#include <cmath>
using namespace std;
void main()
{
double n,res;
cout<<"Enter n: ";
@Levik
Levik / gist:857191
Created March 6, 2011 10:38
lab1.1
#include <stdio.h>
#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
int n;
cout<<"Enter n: ";
cin>>n;
@Levik
Levik / gist:636053
Created October 20, 2010 08:48
ifelse
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
void main()
{
int a[10], b, d;
char c[3];