Location:
Search - string to int
Search list
Description: 一个FTP客户端类,用Socket写的,环境为Unix。
之所以封装这个类是因为以前在unix下写文件上传下载的操作都是调shell脚本,C、C++很难控制与shell的交互,
并且无法获知出错的错误代码,用C++封装成一个工具类后,任何项目都可以重用了。
操作很方便,就像平常的FTP操作:
1:登陆FTP服务端
FTPTools ftpTools (conts string &pm_sFtpServer,int pm_iFtpPort)
ftpTools.login(conts string &pm_sFtpUser,const string &pm_sFtpPwd)
2:进入服务端目录
ftpTools.cd(const string & pm_sServerPath)
3:设定本地目录
ftpTools.Lcd(const string & pm_sLocalPath)
4:上传文件
ftpTools.upload(const string &pm_sSrcFilePath,const string & pm_sSrcFileName)
5:下载文件
ftpTools.download(const string & pm_sServerFileName,const string & pm_sDesPath)
支持全路径文件名,PASV模式
-an FTP client category, Socket written in the Unix environment. The reason Packaging category is because the written document under unix uploading and downloading operations are transferred to the shell script, C, C + + is difficult to control and the interactive shell, and not informed of the error code error, Using C + + tools packaged as a category, any item can reuse of. Easy to operate, just like normal FTP : 1 : landing FTP server FTPTools ftpTools (Contracting string
Platform: |
Size: 4704 |
Author: sl |
Hits:
Description: 函数 long StrToData(CString strData,int jz)
功能:字符串转为正整数值 [字符串可为2-16]任意进制数值字符串
返回:长整型数值
参数:strData 为将要转换的字符串
参数:jz 为字符串的进制
如:
CString s
s=\"FFA6\"
long data=StrToData(s,16)
则:data的值为:65446
用法:将StrToData.h和StrToData.cpp复制加入到您的工程里,在需要调用的函数中
加入#include \"StrToData.h\"即可调用
-function long StrToData (CString strData. int jz) function : is the string to integer values [string for 2 -16] arbitrary numerical string to 229 : long integer numerical parameters : strData will be converted to a string parameters : jz for the string-band such as : CString s = s "FFA6" long StrToData data = (s, 16) : data values are : 65446 directions : StrToData.cpp StrToData.h and will be added to your copy of the works, in the need to call a function to add # include "StrToData.h" can be transferred with
Platform: |
Size: 12151 |
Author: 张海良 |
Hits:
Description: 编写函数int index返回字符t在字条串s中出现的最左边的位置,如果在s中没有与t匹配的子串,不返回-1-function int index prepared to return to the characters not string's note appeared in the leftmost position, If s and t is not matched substring, not to return -1
Platform: |
Size: 7774 |
Author: luyou |
Hits:
Description: RawSource (string filename, int width, int height, string pixel_type, int offset)
# for loading raw video data
#
# filename: the raw file e.g. a YUV-file
# width, height: you must specify the image dimensions. width is max 2880
# pixel_type: the type of the raw data. An appropriate mapping to AviSynth s internal data is done
# supported types: RGB, RGBA, BGR, BGRA, YUYV, UYUV (interleaved) I420, YV12 (planar)
Platform: |
Size: 35186 |
Author: mysticboy |
Hits:
Description: 软件测试:一个编译器测试软件,支持下列C语言运算符:+ - * / % ^(乘方) 负 (int) (double) \"字符串\" [](数组) > < == >= <= != && ! ++ -- = += -= *= /= %= ^=,支持下列关键字:void int double string if else for while do goto break continue return,支持下列数据类型:int double string int[] double[] string[],支持下列系统函数:int max(int,int),double max(double,double),int[] newint(int),double[] newdouble(int),string[] newstring(int),void delete(int[]),void delete(double[]),void delete(string[]),支持任意用户定义函数,支持函数重载。不支持全局变量。如果发现错误,请告诉我-software testing : a compiler test software to support the following C language Operators :-* /% ^ (involution) negative (int) (double), "string" [] (arrays) gt; Lt; == Gt; = Lt; =! =! -- -= *= = = / =% = ^ =, to support the following keywords : void int double string if else for while do goto break continue return, to support the following types of data : int double string double int [] [ ] string [], support the following functions : int max (int, int), double max (double, double), newint int [] (int), double newdouble [] (int), newstring string [] (int), void delete (int []), void delete (double []), void delete (string []), support arbitrary user-defined functions, support function overloading. Not to support global variables. If mistakes are found, please tell me
Platform: |
Size: 8895 |
Author: 王东 |
Hits:
Description: 函数 long StrToData(CString strData,int jz)
功能:字符串转为正整数值 [字符串可为2-16]任意进制数值字符串
返回:长整型数值
参数:strData 为将要转换的字符串
参数:jz 为字符串的进制
如:
CString s
s="FFA6"
long data=StrToData(s,16)
则:data的值为:65446
用法:将StrToData.h和StrToData.cpp复制加入到您的工程里,在需要调用的函数中
加入#include "StrToData.h"即可调用
-function long StrToData (CString strData. int jz) function : is the string to integer values [string for 2-16] arbitrary numerical string to 229 : long integer numerical parameters : strData will be converted to a string parameters : jz for the string-band such as : CString s = s "FFA6" long StrToData data = (s, 16) : data values are : 65446 directions : StrToData.cpp StrToData.h and will be added to your copy of the works, in the need to call a function to add# include "StrToData.h" can be transferred with
Platform: |
Size: 12288 |
Author: 张海良 |
Hits:
Description: RawSource (string filename, int width, int height, string pixel_type, int offset)
# for loading raw video data
#
# filename: the raw file e.g. a YUV-file
# width, height: you must specify the image dimensions. width is max 2880
# pixel_type: the type of the raw data. An appropriate mapping to AviSynth s internal data is done
# supported types: RGB, RGBA, BGR, BGRA, YUYV, UYUV (interleaved) I420, YV12 (planar)
Platform: |
Size: 34816 |
Author: mysticboy |
Hits:
Description: 各种基本数据类型转换源程序。
本程序涉及到的数据类型有:float, int , char, string.-A variety of basic data type conversion source. This procedure involves the data types are: float, int, char, string.
Platform: |
Size: 107520 |
Author: Steno |
Hits:
Description: ansi-c code for 8051 type microcontrollers, enables string conversions like: ascii to int hex, ascii to long hex, swap long, swap int, etc.
code compiles with Keil and is very efficient.
Platform: |
Size: 1024 |
Author: oferf |
Hits:
Description: std::string并没有提供所有需要方法。所以,需要用STL提供了算法库、字符串流以及现存的std::string的方法来实现它们。
※ 将字符串转换为大写/小写
※ 去掉字符串两端的空格
※ 忽略大小写比较字符串
※ StartsWith和EndsWith
※ 从字符串解析出int和bool等类型的值
※ 将各种数值类型转换成字符串(toString)
※ 拆分字符串和Tokenizer-std:: string does not provide all the necessary means. Therefore, the need to use STL provides a library of algorithms, string streams, as well as the existing std:: string methods to achieve them.
※ convert a string to uppercase/lowercase
※ remove the spaces at both ends of the string
※ Comparison of strings ignoring case
※ StartsWith and EndsWith
※ From the string parsing out the int and bool types of values such as
※ all kinds of numeric type conversion into a string (toString)
※ split strings and Tokenizer
Platform: |
Size: 4096 |
Author: 方启 |
Hits:
Description: Use this Program to Transfer number from string to int
Platform: |
Size: 492544 |
Author: Figer |
Hits:
Description: int to string;int t o string;int t o string;int t o string;int t o string;int t o string;int to string;-int to string;
Platform: |
Size: 2048 |
Author: shede223 |
Hits:
Description: 一个小的字符串向int型数据的转换,在linux平台下实现的-A small string to int type data conversion, implementation of the linux platform
Platform: |
Size: 1024 |
Author: xiaona |
Hits:
Description: 这是一个简短的c语言 字符串与整形之间的转换小程序代码 ,程序简单易懂-a string to int
Platform: |
Size: 4096 |
Author: 任海丰 |
Hits:
Description: 自己写的实现了字符串转化为整数的功能,代码有点乱,也不是很好,但是基本实现了atoi()的基本功能-fulfill the function of convert a string to int
Platform: |
Size: 1024 |
Author: 肖伟 |
Hits:
Description: 实现字符串string向int整型转换,还可以向double、float型转换-For string string to int int conversion, but also can double, float type conversion
Platform: |
Size: 13312 |
Author: asd |
Hits:
Description: C语言实现,自定义两个函数,实现int型和字符串String型互换:把字符串转化成double浮点型,把int型转化为String型,在网络通信中用得到,在VC环境下已经验证-by using C Language,define two functions and realize below function:we can convert int to string ,and also string to int ,these fucntion has been tested.
Platform: |
Size: 1024 |
Author: 王茂春 |
Hits:
Description: 实现了字符串转整形的功能,修改了bug,对于溢出操作也做了处理,空格以及其他非法字符都做了处理。-string to int
Platform: |
Size: 1024 |
Author: |
Hits:
Description: 华为oj闯关题 整形字符串排序。希望对做到华为oj上闯关题的同学们有一点点参考作用-huaweiOJ string of int to sort.I hope a little reference to the students who are preparing for the HUAWEI OJ checkpoints problem
Platform: |
Size: 3072 |
Author: 夏天 |
Hits:
Description: read file transfer string to int
Platform: |
Size: 4096 |
Author: zzj |
Hits: