C++你永远摸不透

这是个坑啊!一门语言你得写多少行代码才能算是入行呢?我想怎么也得10,0000行吧,毕竟就像英语一样,感觉很重要🤣

C++不管写了多少行,有些东西你都会觉得Surprise,不过话说回来,找一本靠谱的书看看对于学习一门编程语言(深入)是挺有帮助的!

#include <iostream>
#include <stdio.h>
int reused = 42;
int i = 42;
int main()
{
    int input_value;
    int _;
    std::cin >> input_value;

    std::cout << input_value << std::endl;
    //directly use global variable
    int reused = 0;

    std::cout << ::reused << " " << reused;
    int i = 100;
    int j = ::i;
    printf("\n%d\n", j);

    int _i = 100, sum = 0;
    //C++ very surprise
    for (int _i = 0; _i != 10; _i++)
    {
        //attention any details
        sum += _i;
        //sum + = _i;error
    }
    std::cout << sum << " " << _i << std::endl;
    return 0;
}

兼容性高,也是一个极好的性质,方便快捷、好用、能直接Copy的绝对不自己动手,‘懒’,嗯,甚合我意🐸

那么语言的魅力在何处?之前选修,Python说的很高大上,什么胶水语言(一位同学口中说的,不过,我估摸着他自己也不知道啥叫胶水语言)

总而言之,懂得多一点没错!

clear all
close all
clc
% read image list
% path plank's ccd/ZipImaList
% list 0-27
% common name _8bitszipima
font_name = '_8bitszipima';
m = randperm(1024,1);
n = randperm(1360,1);
im_m = 1024;
im_n = 1360;
total_size = 28;
X = zeros(1,total_size);
X_REAL = zeros(1,total_size);

% k for decode first
k = double(4095*1.0/255);
for i=1:28
    back_name = num2str(i-1);
    full_name = [font_name,back_name,'.png'];
    ImaList = imread(['plank''s ccd/ZipImaList/',full_name]);
    % add operation code here
    X(i) = ImaList(m,n);
    % attention please
    % according the zip decode
    X_REAL(i) = int32(k*X(i)+0.5);
end
% plot m,n gray value
figure();
plot(1:28,X,'-r*');

figure();
plot(1:28,X_REAL,'-g*');

其实我一直在想,“踏实”是人品,天生就有,还是后者养成?

干啥啥不行,背锅第一名!

脾气还是要有的,只要管的住,修心养性,大智若稽,厚积薄发,沉稳淡定!

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注


皖ICP备2021003932号
召唤伊斯特瓦尔