码迷,mamicode.com
首页 >  
搜索关键字:main    ( 65088个结果
initializer element is not constant 问题
在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
webpy 实例 12306余票查询
效果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
cf B Three matrices
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__":用法解析
想必很多初次接触python的同学都会见到这样一个语句,if__name__=="__main__":1.python文件的后缀为.py;2..py文件既可以用来直接执行,就像一个小程序一样,也可以用来作为模块被导入(比如360安全卫士,就是依靠一个个功能模块来实现的,好比360安全卫士本身框架是一个桌面..
分类:编程语言   时间:2015-01-26 19:28:11    阅读次数:131
简单的c++函数调用
#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
scala private private[package] protected 使用说明
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
Android VIEW
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView=(TextVie...
分类:移动开发   时间:2015-01-26 19:09:38    阅读次数:171
C# 的关键字和标识符、类、枚举以及基本运算符
C# 的关键字和标识符 关键字 在Main方法中小写的字 string是关键 而大写String就不是关键字了 namespace _01基础项目 { class Program { static void Main(string[] args) { } }} 标识符是用来给类、方法、变量等命名用的...
分类:Windows程序   时间:2015-01-26 19:02:50    阅读次数:291
[Java Code] 时间维度循环生成代码片段
public static void main(String[] args) throws ParseException { String str = "20140301"; String str1 = "20140731"; SimpleDateForma...
分类:编程语言   时间:2015-01-26 18:46:48    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!