原创 隨機字符串(C++)

string randomString(int stringLangs) { srand((unsigned)time(0)); int stringTypeNumber, generateCounts; char* gen

原创 PAT-乙級 1013 數素數(C語言)

#include<stdio.h> #include<math.h> int primeJudge(int number) { int i; if (number < 2) return 0; else { for

原创 判斷素數(C語言)

int primeJudge(int number) { int i; if (number < 2) return 0; else { for (i = 2; i <= sqrt((double)number);

原创 Visual Studio 2015虛線代碼對齊工具Indent Guides的安裝

工具–>擴展和更新–>聯機 在右側上放輸入Indent Guides–>回車 # 選擇並安裝 Ps:如何選擇並點擊下載後,下載慢或者進度條無動靜。則將IPV6網絡關掉,保留IPV4,再次下載安裝即可。 PPs:安裝完重啓Vs20

原创 PAT-乙級 1087 有多少不同的值(C語言)

#include<stdio.h> int main() { int number, sum, Min=-1, count = 0,i; scanf("%d", &number); for (i = 1; i <= numb

原创 C語言實現雙鏈表(無講解)

/* 雙鏈表 */ #include<stdio.h> #include<stdlib.h> struct student { struct student* after; int data; struct student*

原创 html css 屬性鏈接

僅個人查閱使用,侵刪! CSS background 屬性 CSS3 background-size 屬性   CSS3 transform 屬性   CSS border 屬性   2020年2

原创 PAT-乙級 1004 成績排名(C語言)

#include<stdio.h> #include<stdlib.h> #include<string.h> struct studentData { char name[11]; char id[11]; int ach

原创 PAT-乙級 1026 程序運行時間(C語言)

#include<stdio.h> int main() { int c1, c2,s; scanf("%d%d", &c1, &c2); int sum = c2 - c1; if (sum % 100 >= 50)

原创 C語言實現單鏈表(無講解)

/*/ 單鏈表 */ #include<stdio.h> #include<stdlib.h> struct student { int data; struct student* next; }; //創建鏈表表頭 stru

原创 PAT-乙級 1028 人口普查(C語言)

借鑑:https://blog.csdn.net/qq_40941722/article/details/94429909 有錯版本:2020/06/21 02:16:12 #include<stdio.h> #include<s

原创 PAT-乙級 1038 統計同成績學生(C語言)

首先給出自己做法,也是大多數的做法,但是最後一個測試點死活過不去,考慮到是兩個for循環佔用了絕大多數時間。後來再看題目時,發現分數是百分制,最後解決 #include<stdio.h> #include<stdlib.h> in

原创 C語言 結構體使用malloc動態申請內存時,關於如何初始化結構體的解決方法

文章目錄2. 使用memset函數2.1 memset函數詳解2.2 實例3. 使用calloc函數3.1 函數詳解3.2 實例 2. 使用memset函數 2.1 memset函數詳解 2.1.1 函數原型:void *mem

原创 微信PC端多開方法

一、微信安裝目錄沒有中文 將下列代碼複製進一個文本文件中 TASKKILL /F /IM wechat.exe start "" "這裏放wechat.exe的絕對路徑,路徑尋找方式,桌面微信圖標-右鍵-屬性-目標 目標裏

原创 PAT-乙級 1032 挖掘機技術哪家強(C語言)

代碼中的註釋部分爲調試時所加,刪去無影響 #include <stdio.h> #include<stdlib.h> struct studentData{ int Id; int achievement; }; int