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 <iostream> | |
#include <conio.h> | |
using namespace std; | |
void main( void ) | |
{ | |
const int CharCount=80; //зададим размерность массива через константу | |
char arr[CharCount]; //объявление символьного массива | |
//Предупредим пользователя, что ввод ограничен размерностью массива |
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 <cstring> | |
#include <cstdio> | |
#include <conio.h> | |
using namespace std; | |
int main () | |
{ | |
char str[ ] ="123-234-456.789"; | |
char * pch; |
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 <iostream> | |
using namespace std; |
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 <iostream> | |
struct tree { | |
int k, n; | |
tree **son; | |
}; | |
tree *root = NULL; | |
tree *node; |
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 <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 | |
}; |
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 <cstdio> | |
#include <cctype> | |
using namespace std; | |
int N; // определяет арность дерева | |
struct Node | |
{ | |
int v; // значение в узле дерева | |
int 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 <iostream> | |
#include <cmath> | |
using namespace std; | |
int ComputeFactorial(int number) { | |
int fact = 0; | |
for (int j = 1; j <= number; j++) { | |
fact = fact * j; |
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> | |
void main() | |
{ | |
char *temp = "Paras"; | |
int i; | |
i=0; | |
temp[3]='F'; |
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
{ | |
"projects": [ "src", "test" ], | |
"sdk": { | |
"version": "1.0.0-preview2-003131" | |
} | |
} |
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.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"; |
OlderNewer