码迷,mamicode.com
首页 >  
搜索关键字:pragma pack    ( 9663个结果
C++单例模板
#pragma oncenamespace MyGame{ template class Global { public: static void Create() { ASSERT(!s_instance); ...
分类:编程语言   时间:2015-01-13 15:50:06    阅读次数:142
[LeetCode]Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approach; that i...
分类:其他好文   时间:2015-01-13 09:03:32    阅读次数:217
enum,struct,union类型使用和长度
VC,C++ Builder和lcc三个编译器 间枚举类型enum长度的情况. 各种C编译器默认的字节对齐数不一致,要写通用的代码,经常就是使用#pragma pack(1) ... #pragma pack() 来使编译器以单字节对齐. 今天在bcb5中调用vc6的dll时出现错误,但在VC中调....
分类:编程语言   时间:2015-01-12 23:52:36    阅读次数:524
CF501D Misha and Permutations Summation(康托展开)
以前写康托展开都是直接O(n^2),碰到了一定要nlogn的,存个代码。#pragma warning(disable:4996)#include #include #include #include #include #include #include using namespace std;#d...
分类:其他好文   时间:2015-01-12 20:51:54    阅读次数:195
ios-页面传值
在第一个页面定义一个协议,同时定义一个协议的方法,用来获取第二个页面返回到第一个页面的返回值。 #import    #pragma mark 定义一个协议用于参数传递 @protocol edelegate  -(void) setReturnPwd:(NSString *) password; @end 在第一个页面的实现文件中,实现协议的方法,同时在跳转到第二个页面的方法中设置...
分类:移动开发   时间:2015-01-12 16:44:54    阅读次数:178
3种jQuery弹出大图效果
本实例用到了jquery.imgbox.pack.js库。直接看代码: 1 2 3 4 5 6 7 3种jQuery弹出大图效果 8 9 10 11 29 30 31 32 33 imgBox--图片点击放大示例34 35 36 37 ...
分类:Web程序   时间:2015-01-12 14:32:32    阅读次数:174
UML基本架构建模--类的通用建模技术(三)
??   Modeling Nonsoftware Things 构建非软件事物模型   Sometimes, the things you model may never have an analog in software. For example, the people who send invoices and the robots that automatically pack...
分类:其他好文   时间:2015-01-12 10:55:13    阅读次数:204
Window检测网络连接情况
Window检测网络连接情况#include "Wininet.h"#pragma comment(lib,"Wininet.lib")DWORD flags;//上网方式 BOOL m_bOnline;//是否在线 m_bOnline = InternetGetConnectedSta...
分类:Windows程序   时间:2015-01-11 17:33:08    阅读次数:171
MIC中的数据传输
先看一段代码,如下 1 #include 2 #include 3 #define LEN 5 4 int main(int argc,char** argv){ 5 int i; 6 float x=2; 7 float arr[LEN]; 8 #pragma of...
分类:其他好文   时间:2015-01-10 16:29:18    阅读次数:1058
C++ 服务端 console
1 // StockSrv.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include 6 #include 7 #include 8 #pragma comment(lib,"Ws2_32.lib") //fatal e...
分类:编程语言   时间:2015-01-10 16:28:15    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!