Skip to content

Instantly share code, notes, and snippets.

@shihchun
shihchun / Homework 1.cpp
Created April 16, 2017 08:16
My first C++ Program
#include <iostream> //input/output on stream
#include <iomanip> //setw
using namespace std; //~~std::~~
void star(int, int);
int x, start = 1;
int main()
{
int i=1,k=1,z;
cout<<"Qing Shu Ru Yi Ge Shu Zi : "; //display message
cin>>x; //input message
<?php
// database connection
$servername = "localhost";
$username = "root";
$password = "";
$conn = new mysqli($servername, $username, $password);
if ($conn->connect_error) {
die("Connection failed:" . $conn->connect_error);
using System;
using System.Windows;
namespace MySql_Inject
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()