摘要: 有人问:不用stdio.h能在控制台输出信息吗? 在Windows下,可以直接使用Windows API来完成,最近找到了一个函数WriteConsole,使用这个函数来在控制台输出信息。 #include<windows.h> int main(){ const char *str="Hello, 阅读全文
posted @ 2022-04-15 15:57 计算机知识杂谈 阅读(277) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int a[10]; int main(){ auto p=10; cout<<typeid(p).name(); //i } #include<bits/stdc++.h> using namespace s 阅读全文
posted @ 2022-04-15 15:48 计算机知识杂谈 阅读(98) 评论(1) 推荐(0) 编辑