码迷,mamicode.com
首页 >  
搜索关键字:statement    ( 3113个结果
Code Review中应该关注的点
Magic number/stringIf statement, you should always use single line or bracketsProvide default value of EnumDifference between abstract class and inter...
分类:其他好文   时间:2015-03-06 09:57:24    阅读次数:178
设置允许远程连接MySQL (Ubuntu为例)
设置允许远程连接MySQL (Ubuntu为例)MySQL默认配置是不允许远程连接,为了安全!然而我需要这么做;开始改配置;#1 设置用户权限Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.m...
分类:数据库   时间:2015-03-05 19:13:38    阅读次数:209
3.选择语句
C++选择语句包括if语句和switch语句: if (condition) statement; if (condition) statement elsestatement ; switch (condition)statement比较运算符 ==, !=, >, =, = b) { ...
分类:其他好文   时间:2015-03-04 14:20:42    阅读次数:156
4.循环语句
循环可以用while,do,for,goto语句表述 while (condition) statement; do statement while(condition); for (for-init-statement; condition; expression) statement; ...
分类:其他好文   时间:2015-03-04 14:15:34    阅读次数:136
C++学习:范围for(range for)语句
语法范围for(range for)语句遍历给定序列中的每个元素并对序列中的每个值执行某种操作,其语法形式是: for (declaration : expression) statement其中: expression部分是一个对象,必须是一个序列,比方说用花括号括起来的初始值列表、数组或者vector或string等类型的对象。这些类型的共同特点是拥有能返回迭代器的beg...
分类:编程语言   时间:2015-03-04 01:07:51    阅读次数:224
c 编译异常 switch 之a label can only be part of a statement and a declaration is not a statement
client.c:996: error: a label can only be part of a statement and a declaration is not a statementswitch(a){case 1:.......................................
分类:其他好文   时间:2015-03-03 18:29:29    阅读次数:139
LeetCode[String]: Valid Number
Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to be...
分类:其他好文   时间:2015-03-03 16:44:51    阅读次数:112
[Oracle系列整理02] 游标使用全解
-- 声明游标;CURSOR cursor_name IS select_statement--For 循环游标--(1)定义游标--(2)定义游标变量--(3)使用for循环来使用这个游标declare --类型定义 cursor c_job is select empno,ename,job,s...
分类:数据库   时间:2015-03-02 22:19:36    阅读次数:219
Java 程序测试_循环语句中的break和continue
package test;public class Loop_Statement { public static void main(String [] args) { String[] newbag = new String[] {"Bag","Key","Book"}...
分类:编程语言   时间:2015-03-01 23:37:35    阅读次数:146
JDBC增删查改(使用配置文件)
JDBCDemo2.javapackage com.zhangbz.jdbc;import java.sql.Connection;import java.sql.ResultSet;import java.sql.Statement;import org.junit.Test;import com...
分类:数据库   时间:2015-03-01 15:39:58    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!