自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 [Aura-van]青州智学4月C++语法基础笔记

青州自学感悟代码的等价替换 // TODO 计算每个月的销量 // 第一种写法,依次计算每个元素 // sales[1] = 2 * sales[0]; // 第2个月的销量 // sales[2] = 2 * sales[1]; // 第3个月的销量 // ... // sales[11] = 2 * sales[10]; // 第12个月的销量 // 第二种写法:用循环依次计算 for (int i = 1; i < 12; i

2022-04-15 19:37:11 722

原创 [Aura-van]九日集训第八天 ,二维指针

个人感觉应该提前一天写,这个应该是第七天。第一题,图像反转/** * Return an array of arrays of size *returnSize. * The sizes of the arrays are returned as *returnColumnSizes array. * Note: Both returned array and *columnSizes array must be malloced, assume caller calls free().

2022-04-10 23:53:58 262

原创 [Aura-van]九日集训第七天

二维数组需要理解:深刻传参第一题 找负数int countNegatives(int** grid, int gridSize, int* gridColSize){ int i,j ,ans =0; int r = gridSize; int c = gridColSize[0]; for(i = 0;i<r;i++){ for(j = 0;j<c;j++){ if(grid[i][j]<0)//写到这

2022-04-09 22:40:27 210

原创 [Aura-van]九日集训第五天

今天是jetbrain Clion的体验天。先行暂停,马上补上。

2022-04-08 00:00:36 91

原创 [Aura-van]九日集训第四天

痛苦的一天 回到了c的怀抱/** * Note: The returned array must be malloced, assume caller calls free(). */int* shuffle(int* nums, int numsSize, int n, int* returnSize){ int i; int *ret = (int *)malloc( sizeof(int) * numsSize );

2022-04-06 23:55:31 64

原创 [Aura-van]九日集训

今天是甜美的斐波那契天贴上不同阶段的代码从爬楼梯的迷茫class Solution {public: int climbStairs(int n) { // int a=1; // int b=2;搞不清楚你在想什么 int ans=0; if (n==1){ ans = 1; } else if (n==2){ ans = 2;

2022-04-05 23:29:13 410

原创 【Aura-van】九日集训day2

放弃作业的我来肝算法题目 望地久天长今日收获打表哥 {} python 转c的各种折磨 简单的位运算附上代码4的幂class Solution {public: bool isPowerOfFour(int n) { long a[17]={1, 4, 16, 64, 256, 1024, 4096, 16384, 65536, 262144, 1048576, 4194304, 16777216, 67108864, 268435456, 1073741824,

2022-04-04 22:22:44 1897

原创 【Aura-van】英雄哥九日集训 day1

统计转计算机的漫漫长路,从有大家陪伴开始。本篇不再赘述其他知识点,只讲个人遇到的问题和感觉是要点的部分,最后附上代码和推荐资源。1,使用位运算实现全加法器。class Solution {public: int add(int a, int b) { while(b!=0) { unsigned int carry = (unsigned int)(a&b)<<1;//算出进位 a=a

2022-04-03 12:23:13 519

原创 Undefined symbols for architecture x86_64: mac+vscode问题汇总

问题1:私自添加万能头文件后,无法检测,甚至不能直接在列表新建cpp文件,必须要重命名一变,或者⌘+n新建才能解决。不然就报错:Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executableld: symbol(s) not found for architecture x86_64clang: error: linker com

2022-03-31 22:40:07 1416 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除