在Ubuntu下,比葫芦画瓢,写了一个程序,居然报错!!!! 1 #include 2 3 float i = 3; 4 int j = *(int *)(&i) ; 5 6 int main (int argc , char *argv[]) 7 { 8 printf( "i = %...
分类:
其他好文 时间:
2015-01-26 21:03:23
阅读次数:
171
效果main.py# -*- coding: utf-8 -*-import webimport searchurls = ( '/', 'Search',)render = web.template.render('templates')class Search(): def GET(...
分类:
Web程序 时间:
2015-01-26 20:58:57
阅读次数:
243
1 #include 2 #include 3 #include 4 using namespace std; 5 6 int g[200][200]; 7 int n; 8 9 int main()10 {11 while(scanf("%d",&n)!=EOF)12 ...
分类:
其他好文 时间:
2015-01-26 20:45:50
阅读次数:
194
字符类型 char(character)是一种整数,也是一种特殊的类型:字符。这是因为 ① 用单引号表示的字符字符字面量:‘a’,'1' ②‘’也是一个字符 ③printf和scanf里用%c来输入、输出字符。 1 #include 2 int main() 3 { 4 char c...
分类:
其他好文 时间:
2015-01-26 20:41:00
阅读次数:
155
想必很多初次接触python的同学都会见到这样一个语句,if__name__=="__main__":1.python文件的后缀为.py;2..py文件既可以用来直接执行,就像一个小程序一样,也可以用来作为模块被导入(比如360安全卫士,就是依靠一个个功能模块来实现的,好比360安全卫士本身框架是一个桌面..
分类:
编程语言 时间:
2015-01-26 19:28:11
阅读次数:
131
#include
#include
#include
#include
#include
using namespace std;
template
P MyFunc(P num)
{
return num*2;
}
int main()
{
int m=MyFunc(10);
double n=MyFunc(20);
...
分类:
编程语言 时间:
2015-01-26 19:26:50
阅读次数:
139
package com.scala.idle
object PrivateDoor {
def main(args: Array[String]): Unit = {
val privateContainer = new PrivateContainer()
//访问共有变量
println(privateContainer.publicVar)
...
分类:
其他好文 时间:
2015-01-26 19:16:08
阅读次数:
173
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView=(TextVie...
分类:
移动开发 时间:
2015-01-26 19:09:38
阅读次数:
171
C# 的关键字和标识符 关键字 在Main方法中小写的字 string是关键 而大写String就不是关键字了 namespace _01基础项目 { class Program { static void Main(string[] args) { } }}
标识符是用来给类、方法、变量等命名用的...
public static void main(String[] args) throws ParseException { String str = "20140301"; String str1 = "20140731"; SimpleDateForma...
分类:
编程语言 时间:
2015-01-26 18:46:48
阅读次数:
129