Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
#include <iostream>
#include <conio.h>
using namespace std;
void main( void )
{
const int CharCount=80; //зададим размерность массива через константу
char arr[CharCount]; //объявление символьного массива
//Предупредим пользователя, что ввод ограничен размерностью массива
//туц туц туц тыц тыц тыц
#include <cstring>
#include <cstdio>
#include <conio.h>
using namespace std;
int main ()
{
char str[ ] ="123-234-456.789";
char * pch;
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
struct tree {
int k, n;
tree **son;
};
tree *root = NULL;
tree *node;
#include <iostream>
using namespace std;
struct CNode
{
int number; // number of node
int data; // some node data
unsigned int nChildCount; // amount of chidren
CNode* pChildren; // pointer to array of child nodes
};
#include <iostream>
#include <cmath>
using namespace std;
int ComputeFactorial(int number) {
int fact = 0;
for (int j = 1; j <= number; j++) {
fact = fact * j;
#include <stdio.h>
void main()
{
char *temp = "Paras";
int i;
i=0;
temp[3]='F';
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003131"
}
}
@catharsis96
catharsis96 / JDBC.java
Last active January 13, 2017 19:06
JDBC database connection
import java.sql.*;
import java.util.logging.*;
public class JDBCtest {
public static void main(String[] args) {
Connection connection = null;
//URL к базе состоит из протокола:подпротокола://[хоста]:[порта_СУБД]/[БД] и других_сведений
String url = "jdbc:postgresql://127.0.0.1:5432/test";
'''
This script perfoms the basic process for applying a machine learning
algorithm to a dataset using Python libraries.
The four steps are:
1. Download a dataset (using pandas)
2. Process the numeric data (using numpy)
3. Train and evaluate learners (using scikit-learn)
4. Plot and compare results (using matplotlib)