異想人 發表在 痞客邦 留言(0) 人氣()

union Float {
    float f;
    unsigned char buf[4];
    struct {
        unsigned F : 23;
        unsigned E : 8;
        unsigned S : 1;
    }b;
}x;

異想人 發表在 痞客邦 留言(0) 人氣()

https://openhome.cc/Gossip/CGossip/Datatype.html

異想人 發表在 痞客邦 留言(0) 人氣()

https://squall.cs.ntou.edu.tw/cprog/materials/AdvancedArray.html
這是我覺得將陣列概念講解較清楚的方式,不像大部分講解都用文字

異想人 發表在 痞客邦 留言(0) 人氣()

#include<stdio.h>
#include<cstdlib>
void print_form(char **pf, char *sb);
int sb_check(char sb[3][3]);
char computer_think(char sb[3][3]);
char input_pos();

異想人 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include<cstring>
using namespace std;
struct student
{
    long id;
    char gender;
    int age;
    int money;
};

異想人 發表在 痞客邦 留言(0) 人氣()

void judge(long id, char gender, int age, int money)
{
    char a[20],m[5],g[20];
    if (age < 21)
        a = "young";    //cstring基本上在c++中,只有在初始值的時候能給字串,其餘時候都不行
    else                         所以這邊的示範a,g,m都是錯的,而在這邊可以改用strcpy這個函數來給值//
        a = "adult";        

異想人 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <cmath>
using namespace std;
struct money
{
    int P;
    int F;
    double r;
    int n;
};

異想人 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
using namespace std;
void displayarray(int[], int);
void insertionsort(int[], int);

異想人 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
using namespace std;
struct Time
{
    int minutes;
    int hours;
    int seconds;
};

異想人 發表在 痞客邦 留言(0) 人氣()

#include<iostream>
using namespace std;
const double pi=3.1415926;
double squa(double);
double rec(double,double);
double cir(double);

異想人 發表在 痞客邦 留言(0) 人氣()

#include<iostream>
#include<cmath>
using namespace std;
double s1(double);
double s2(double);
double s(double);

異想人 發表在 痞客邦 留言(0) 人氣()

1 2
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。