05 2012 档案
摘要:int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ // TODO: Place code here. int ret =MessageBox(NULL,TEXT("你是好人吗"),TEXT("测试"),MB_YESNO|MB_ICONQUESTION); if (ret==IDYES) { int a=Me...
阅读全文
摘要:好像是学习c++时自己写的一个txt分割器,粗糙简陋代码如下:#include <iostream>#include <fstream>#include <string>#include <stdlib.h>#define N 200#define M 500using namespace std;string name(string filename,int i);int main(){ int x=1,i=1,j=1,n; char c; string filename,filenamehead,chushi; cout<<&qu
阅读全文
摘要:有个无聊的人,用二进制发说说,其实就是ascii码,懒得去看,写个程序自己转换下。。。。在这里鄙视下某人。。。代码如下:#include <fstream>#include <string>using namespace std;int main(){ifstream in("data.txt");for (string str ;getline(in,str);){int D=0;char *a=strdup(str.c_str());int l=strlen(a);for (int i=0;i<l;i++){D=D+(a[i]-'0
阅读全文
摘要:1,增强forint arr[] = {1, 2, 3, 4, 5, 6, 7, 8};for (int a : arr)System.out.println(a);2,java是典型的静态语言3,java的数组初始化的方法有2钟:静态初始化:初始化时由程序员显式指定每个数组元素的初始值,由系统决定数组长度动态初始化:初始化是程序员只指定数组长度,有系统为数组元素分配初值4未完
阅读全文

浙公网安备 33010602011771号