cstring
C++, OpenGL: Weird problem with c-strings
I have a C++ problem here which I simply cannot understand. I have 2 slightly different functions. Both of them should do the very same thing. But only one works properly.[详细]
2023-01-29 09:20 分类:问答How to remove first character from C-string?
Can anyone please help me? I need to remove开发者_如何学C the first character from a char * in C.[详细]
2023-01-27 11:48 分类:问答Format float\double numbers to CString with zero filling and preset number of digits
I am looking for a simple method to format the following float\\double numbers to a CString. I was hoping to use CString.Format(), but alternatives are welcome as well, as long as it ends up being a C[详细]
2023-01-27 06:33 分类:问答C++ Delete array of c-strings/other type of array
[EDIT] Okay, so that makes sense, thank you sharptooth and CashCow. You can\'t delete data allocated as const, which makes string literals out of the question. So if I change my initialization to loo[详细]
2023-01-27 04:43 分类:问答C++ Storing copy of string in vector of pairs
I have a private attribute in a class that is defined as vector<pair<char *, int> > data;. I add data to this vector with data.push_back(make_pair(p, r));. Later when I go to get the data[详细]
2023-01-19 14:59 分类:问答Converter and compresser between ASCII and Binary
I am trying to make a very easy converter/compressor; the program should tak开发者_开发百科e a file with 4 different types of ASCII characters and writ it out as binary to a file. The program should a[详细]
2023-01-17 01:43 分类:问答using boost string algorithm with MFC CString to check for the end of a string
I need to check w开发者_如何学编程hether my CString object in MFC ends with a specific string.[详细]
2023-01-17 00:50 分类:问答boost regex search fails with MFC CString
I havingan issue in using Boost regex with a MFC CString. The regex is very simple: it must check if the string ends with the name of a dll I am looking for.[详细]
2023-01-17 00:10 分类:问答cstring trouble for a beginner
I\'m trying to make a program that read a file line by line and then put the readed line into a a linked list, my problem is to add the string 开发者_如何学Pythonto list. Look at the code, in the else[详细]
2023-01-16 08:20 分类:问答iPhone stringWithCString is deprecated
I use this code to read data from sqlite database: keyFromSql = [NSString st开发者_开发知识库ringWithCString:(char *)sqlite3_column_text(preparedStatement, 1)];[详细]
2023-01-08 21:47 分类:问答