BBYR Achieve
返回首页
版面

CPP

学术科技 · 当前来自首页固化板块目录。

5815
本版帖子
镜像额 还是utf-8和gbk转化 上一次大家真的都理解错了 不!我说的

准备 怎么把上面那一堆utf-8格式乱码转化过来 恩呢 我的意思是如何做 在系统有自己编译系统的情况下 而不是 我把一些&0x87 &0x94 啥的这些转化 这些我会的 (●'?'●) 求大神讲解哦

xh06251220lx2015/11/30CPP最后回复 2015/11/30· nuanyangyang
25
镜像[问题]g++编译时出现warning deprecated conversion from strin

下面是main函数中的代码: char *file1; FILE *h_file; strcpy(file1,"Hmatrix"); h_file = open_file_std(file1,"wb"); if (h_file==NULL) { fprintf(stderr,"Can't create parity c…

nihao222015/11/27CPP最后回复 2015/11/30· BTup
3
镜像[讨论]当你纠结的时候,源码给了你答案[更新]

当你纠结的时候,源码给了你哪些答案呢? 当楼主纠结是写一个Magic Number还是写一个strlen(string literal)?(如果我能很容易做好,我不奢望编译器帮我做什么) pos = line_str.find("coding", pos); if(pos == std::string::npos) b…

zx7232015/11/26CPP最后回复 2015/11/27· zx723
6
镜像哪位大神能够实现vs2012环境下 utf-8到gbk2312的转化

使用multibytetowidechar windows.h下的 跪求讲解 和代码 发自〖iBYR-iOS客户端〗

xh06251220lx2015/11/26CPP最后回复 2015/11/26· mnhg123
9
镜像有人在windows下编译过opencv么,要疯了!

最近要用gpu加速,这个opencv编译好几遍,一遍两个多小时!!!!! getCudaEnabledDeviceCount()总是返回0. 要疯了!

damnid2015/11/24CPP最后回复 2015/11/26· FromSixToTen
2
镜像如何存储string数据到二进制文件

RT, 存的时候是string类型,打开文件看到的是二进制? 其实就是希望客户可在界面上添加产品信息,不能在文件里对其进行修改,所以想把它变为二进制文件

jiamin2015/11/23CPP最后回复 2015/11/24· FromSixToTen
10
镜像关于getline的问题

程序: #include <iostream> using namespace std; int main() { char str[8]; cin.getline(str, 5); cout<<str<<endl; cin.getline(str, 5); cout<<str<<endl; return 0; } 输…

helloworld002015/11/22CPP最后回复 2015/11/24· zx723
4
镜像[问题]Dev C++编译报错总是出现这个,应该怎么解决呢,急求

[Error] no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and '<unresolved overloaded funct…

suyi121382015/11/22CPP最后回复 2015/11/23· suyi12138
17
镜像大神们都是如何获取鼠标位置和状态的?

我做的一个小程序需要实时监控全局鼠标的输入,大神们是如何实现的呢?

Alphan2015/11/21CPP最后回复 2015/11/22· Alphan
6
镜像某些宏

写的好复杂 读起来觉得费劲

tycoon02015/11/20CPP最后回复 2015/11/21· FromSixToTen
23
镜像popen的使用

popen不是父进程要等子进程执行完了之后在执行的么? 为什么测试时却不是这样? 测试代码: #include<stdio.h> #include<stdlib.h> #include<string> #include <string.h> #include <unistd.h> int main(){ char st…

yj1232015/11/18CPP最后回复 2015/11/20· yj123
7
镜像已疯 无法解析的外部符号 这是什么错。

附上程序 求大神帮改 #include<iostream> using namespace std; template<class T> struct Node { T data; struct Node<T>*next; }; template<class T> class LinkList { public: Li…

bluesun2015/11/19CPP最后回复 2015/11/19· bluesun
4
镜像[建议][讨论][问题]Codelite使用教程

最近需要在Linux下运行C++程序,于是安装了CodeLite(我的系统是Ubuntu14.04),但是目前还是不太会用。请问有没有同学有比较详细的CodeLite教程,或者其他推荐的C++软件呢。非常感谢解答

nihao222015/11/17CPP最后回复 2015/11/17· nuanyangyang
4
镜像有人 win7 + qt5 + qtcreator + msvc2012 调用过gsl这个库吗

好不容易把gsl用msvc编译成lib文件,在我代码中添加 #include <gsl/gsl_XXX.h>时也会自动补全,但是build的时候却冒出一句 c1083: 无法打开包括文件“gsl/gsl_XXX.h”:No such file or directory

ykyyiwang2015/11/16CPP最后回复 2015/11/16· ykyyiwang
5
镜像EulerProject 31题 动态规划 求指导

In England the currency is made up of pound, ?, and pence, p, and there are eight coins in general circulation: 1p, 2p, 5p, 10p, 20p, 50p, ?1 (100p) and ?2 (200…

UC14514272162015/11/1CPP最后回复 2015/11/11· hiyot
5