![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
编程初学者か
还是个初学者哦,不喜勿喷
展开
-
计算机图形学MFC金刚石案例
计算机图形学MFC金刚石案例原创 2022-10-05 23:32:41 · 1193 阅读 · 2 评论 -
字母小写转大写
第二章知识已更新完毕下一次就开启第三章了哦今天依旧上代码#include "stdafx.h"#include<iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ char n, m,p; cout << "请输入您想转换的小写字母" << endl; cin >> n; if (n >= 'a' && n <= 'z')原创 2021-03-11 07:06:24 · 217 阅读 · 0 评论 -
给定一个三位数,求每个位数
第二章的知识点已经完啦今天就没有知识点啦直接上代码#include "stdafx.h"#include<iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ int x, y, z, w; cout << "请输入任意一个三位数" << endl; cin >> x; y = x / 100; z = x % 10; w = (x / 10) % 1原创 2021-03-10 07:01:33 · 1946 阅读 · 0 评论 -
闰年计算器呀
一、知识点1、表达式中数据类型的转换(类型名)(表达式)例如(double)a 将a转换为double(int)(x=y) 将x=y转换为int(float)(5%3) 将5%3转换为float注:括号不能省略今天的代码来喽#include "stdafx.h"#include<iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ int x; co原创 2021-03-08 19:42:13 · 327 阅读 · 2 评论 -
两数最大值求解
今天让我们来认识一些符号吧!算术运算符:+、-、*、/、%(求余数)、++、–赋值运算符:=关系运算符:<、<=、>、>=、==、!=逻辑运算符:&&(且)、||(或)、!(非)三目运算符:表达式1?表达式2:表达式3解释:首先计算表达式1,若表达式1为真值,则执行表达式2,若表达式1为假值,则执行表达式3.下面是我们今天的代码#include "stdafx.h"#include<iostream>using namespace st原创 2021-01-24 11:32:04 · 1162 阅读 · 0 评论 -
c++ 求一元二次方程的解呀!
新的知识(一)变量的定义(二)变量的初始化好啦好啦,知识点学完,让我们来看看今天的代码#include "stdafx.h"#include<iostream>using namespace std;#include<cmath>int _tmain(int argc, _TCHAR* argv[]){ int a,b,c,x1,x2; cout << "请依次输入一元二次方程的三个系数" << endl; cin >&原创 2021-01-22 18:24:34 · 880 阅读 · 1 评论 -
求两数之和
A new day 比上次更全面的干货来喽!(一)数据类型今天的代码#include "stdafx.h"#include<iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ float x, y; cout << "请输入任意两数" << endl; cin >> x >> y; cout << "这两个数的和为:原创 2021-01-22 09:33:53 · 833 阅读 · 0 评论 -
求矩形面积与周长
又是一波新的知识呀常见数据类型(1)整型int 储存空间 4字节(2)浮点型float(单精度) 储存空间 4字节double(双精度) 储存空间 8字节(3)字符型char 储存空间 1字节(4)布尔型bool 储存空间 1字节下面是题目的代码#include "stdafx.h"#include<iostream>using namespace std;int _tmain(int argc, _TCHAR* arg原创 2021-01-21 17:51:44 · 1319 阅读 · 0 评论 -
c++初识 hello world
在这里插入代码片@TOC欢迎使用Markdow`#include “stdafx.h”#includeusing namespace std;int _tmain(int argc, _TCHAR* argv[]){cout << “hello world” << endl;//cout的意思呢,就是输出,如果有“”,那么输出的就是“”里的东西,没有“”的话,输出的就是变量所代表的东西。cin.get();cin.get();return 0;}`n编辑器你好原创 2021-01-21 11:42:32 · 201 阅读 · 1 评论