03 2010 档案
摘要:右键点击数据库名 > 选任务 >选导出数据 > 出现窗囗后选 下一步 > 选新建 > 输入数据库名 > 确定 > 下一步 > 下一步 > 全选 > 下一步 > 完成关闭SQL server,到MSSQL\Data下拷出 .mdf .ldf 文件
阅读全文
摘要:问题出现在程序运行清单上,默认是“嵌入清单”,清单文件是“$(IntDir)\$(TargetFileName).embed.manifest”。 调试程序运行时,不知道为什么却定位不到这个文件,我们如果手动把“程序名.embed.manifest"改为”程序名.manifest“,调试程序即可定位到。 所以,需要...
阅读全文
摘要:不能读取 AppletViewer 的属性文件Java\jdk1.5.0_12\bin\policytool1.打开命令提示窗口2.打入PolicyTool并按Enter3.在PolicyTool对话框中,点击Add Policy Entry按钮(添加规则项目)4.点击Add Permission 按钮(添加权限)5.点击许可下拉菜单选择 All Permission6.点击ok(确认)7.点击D...
阅读全文
摘要:#define LETTER 1 main() { char str[20]="C Language",c; int i=0; while((c=str[i])!='\0'){ i++; #if LETTER if(c>='a'&&c<='z') c=c-32; #else if(c>='A'&&c<='Z') c=c+32; #endif ...
阅读全文
摘要:private void button1_Click(object sender, EventArgs e) { textBox1.Text = System.Environment.CurrentDirectory.ToString(); } private void button2_Click(object sender, EventArgs e) { textBox2.Text = Syst...
阅读全文
摘要:Cinput functiongets /printf;; char a[23]; gets(a); // 不能写成a =gets();getchar /printf;; char a; a = getchar(); //不能写成 getchar(a); -------------------------------------C++ input functioncin; //cout endl ...
阅读全文
摘要:1、cin>> 用法1:最基本,也是最常用的用法,输入一个数字:#include <iostream>using namespace std;main (){int a,b;cin>>a>>b;cout<<a+b<<endl;}输入:2[回车]3[回车]输出:5用法2:接受一个字符串,遇“空格”、&ld...
阅读全文
摘要:getline() // 接受一个字符串,可以接收空格并输出,需包含“#include<string>”#include<iostream>#include<string>using namespace std;main (){string str;getline(cin,str);cout<<str<<endl;...
阅读全文
摘要:-----------------------------getch(), getche() 不包含在标准C中getch() 与 getche()要引用 conin.h头文件getch()无返回显示,getche()有返回显示------------------------------getchar()包含在标准C中// getchar()函数等待输入直到按回车才结束,回车前的所有输入字符都会...
阅读全文
摘要:void main(){int a,b,c;printf("input a,b,c\n");scanf("%d%d%d",&a,&b,&c);printf("a=%d,b=%d,c=%d",a,b,c);}
阅读全文
摘要:float a[3][3];for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%f",&a[i][j]);
阅读全文
摘要:conio.h is a non-standard header. It worksmostly on DOS platforms. If you want to include conio.h to clear the screen (i.e use clrscr() ) then you can instead use `system("clear");`.
阅读全文
摘要:*win-tc*/#include <stdio.h>#include <malloc.h>#include <stdlib.h>#define Esc 27 /*定义键盘退出键Esc*/#include"ctype.h"#define NULL 0#define LEN sizeof(struct student) struct student { long ...
阅读全文
摘要:安装依赖包 // Anjuta IDEsudo apt-get install anjuta // Build tools sudo apt-get install autogen automake build-essential indent intltool sudo apt-get install gnome-core-devel sudo apt-get install pkg-confi...
阅读全文
摘要:$(name) or${name}CCProgram for compiling C programs, default 'CC'CXXProgram for compiling C++ programs, default 'g++'CPPProgram for running C preprocessor, default '$(CC) -E'FCProgram for running Fort...
阅读全文
摘要:allDo everythingcheckPerform some self test after building the programcleanDelete all files created by makedistcleanDelete more files than clean, could delete the Makefile itselfdistCreate a distribut...
阅读全文
摘要:GCC编译C源码有四个步骤:预处理-----> 编译 ----> 汇编 ----> 链接c-i, i-s, s-o, o-exe-E -S -C*.o -o *.exe现在我们就用GCC的命令选项来逐个剖析GCC过程。1)预处理(Pre-processing)在该阶段,编译器将C源代码中的包含的头文件如stdio.h编译进来,用户可以使用gcc的选项”-E&rdquo...
阅读全文
摘要:void itoa(int n,char s[]) { int i,sign; if ((sign=n) <0) n=-n; i=0; do { s[i++]=n%10+'0';} while ((n/=10)>0); if (sign <0) s[i++]='-'; s[i]='\0'; reverse(s); }
阅读全文
摘要:指针可以指向基本类型,也可以指向复合类型,因此也可以指向另外一个指针变量,称为指向指针的指针。
阅读全文
摘要:C++Files: .h, .hh, .hppSource Files: .C, .cpp, .ccCFiles: .hSource Files: .c
阅读全文
摘要:gcc is for compiling "c" source code, gcc also can use for c++ source codeand g++ is for compiling "c++" source code."g++" will automatically link the code with the C++ runtime library (libstdc++),but...
阅读全文
摘要:#include<iostream> #include<string> usingnamespacestd; inlinestringdbtest(inta);//函数原形声明为inline即:内联函数 voidmain() { for(inti=1;i<=10;i++) { cout<<i<<":"<<dbtest(i)<...
阅读全文
摘要:int main(int argc, char *argv[])== int main(int argc, char **argv)char *argv[] = {"hello","hi"}; char argv[] = {'h','e','l','l','o','h','i'};char *argv[]//是一个数组,存储char指针 char argv[] //是一个数组,存储charargc...
阅读全文
摘要:Install ApacheTo start off we will install Apache.1. Open up the Terminal (Applications > Accessories > Terminal).2. Copy/Paste the following line of code into Terminal and then press enter:sudo...
阅读全文
摘要:count,sizeofcount - 返回一个数组的元素个数。sizeof 是 count 的别名,功能和 count 一样,也是返回一个数组的元素个数。count 函数示例如下,下面的示例中,输出数组个元素个数,为6。sortsort - 给一个数组的元素排序。排序后,数组各元素原来的 key 也因为排序而改变。sort 函数示例如下:asortasort - 给数组的元素排序,保留每个元素原...
阅读全文
摘要:roundround - 对浮点数进行四舍五入。round 函数语法如下:其中参数 precision 表示小数点后面要保持的精度位数。如果不写参数 precision,表示四舍五入到整数位,比如:如果 precision 为2,表示四舍五入到小数点后2位。示例如下:如果参数 precision 为负数,表示四舍五入到小数点前。比如:floorfloor - 舍去法求整。floor 函数语法如下:...
阅读全文
摘要:strlenstrlen 函数能得到一个字符串的长度。下面的示例中,得到的变量 $a 的长度为 8。trimtrim 函数的功能是将字符串的两边的空格都去掉。比如下面示例中变量 $a 的值是 ' abcdef ',字符串两边各有一个空格, trim 之后,由于去掉字符串两边的两个空格,字符串的长度就是6。ltrimltrim 函数的功能是将字符串左边的空格去掉。rtrimrtrim 函数的功能是将...
阅读全文
摘要:PHP 变量 (Variables)PHP 的变量必须以 $ 符开始。PHP 的变量声明语法如下:用 echo 输出一个字符串单引号指定字符串指定一个字符串最简单的方法是用单引号(字符 ')围起来。比如如果一个字符串里含有单引号,怎么办呢?这时候就需要用到一个转义符,反斜杠 (字符 \)。在字符串里的单引号之前要加一个反斜杠,也就是说,在字符串里,用 \' 来表示单引号。示例如下:PHP 单行注释...
阅读全文
摘要:Run .bin file in Linux / UNIXChange the permission of the file you downloaded to be executable. Type the following command:$ chmod +x file.binStart the installation process or run .bin file.Type the f...
阅读全文
摘要:x=m++ 表示将m的值赋给x后, m加1。 x=++m 表示m先加1后, 再将新值赋给x。
阅读全文