ChinaUnix.net
相关文章推荐:

C++ 并行编程

看网上的资料,cUDA™是世界上唯一一种能够让软件编程人员和开发人员利用GPU多核并行处理能力编写在很短的时间内解决复杂计算问题的程序的c语言编程环境。 该技术充分挖掘出NVIDIA GPU巨大的计算能力。凭借cUDA技术,开发人员能够利用NVIDIA GPU(图形处理器)攻克极其复杂的密集型计算难题。 大家谈谈对cuda这个平台的看法吧!

by oracle_8i - C/C++ - 2008-07-29 18:07:27 阅读(6109) 回复(17)

相关讨论

-------------------------------------------------- -------------------------------------------------- 活动已经结束,积分已经添加. 感谢大家的参与,CU与您同在! 后期活动同样需要大家的积极参与噢! --------------------------------------------------...

by CU管理员 - C/C++ - 2008-08-06 19:17:17 阅读(20876) 回复(83)

看见If,就想Else。看到if语句,就要想到else语句。如果没有else语句,就要分析是不需要,还是异常情况没有处理,如果是异常情况没有处理,可以提单。 九字真言:if…else "看见malloc,就去找Free。 看到malloc语句分配了内存,立即停下正常走读,看malloc代码之后,是否在所有程序的返回分支中都有释放语句。 " 九字真言:malloc "函数调用要小心,需要看看返回值。 到函数调用,要养成习惯,进入函数内部瞄一眼。看看函数的正...

by quzhiming0913 - C/C++ - 2011-03-26 12:06:08 阅读(2023) 回复(8)

我按书编的程序居然有这么多错误,经仔细检查后没找出错误,和课本一样的。请高手指正。我用的是microsoft visual stuidio 2005 运行的,请指正,谢谢。1struct month 2{ 3 int number_of_day; 4 char name[4]; 5}; 6#include "stdafx.h" 7#include "iostream" 8#include "string" 9using namespace std; 10void main( ) 11{ 12 char *m; 13 struct month months[2]; 14 months[2]={ {31,"jan"},{28."feb"} }; 15 cout<<"input mon...

by xiaohangge - C/C++ - 2009-04-09 10:16:18 阅读(1509) 回复(4)

一个数的公约数相加等于那个数 如1+2+3=6 求1--1000的最大数 帮忙啊!!!!!!!!!!!!!!!!!

by 六零六 - C/C++ - 2006-11-25 14:38:14 阅读(1088) 回复(4)

本人在高校工作多年,拥有广泛的客户群体来源,现诚招有编程能力、有空余时间、有工作激情的编程爱好者,学生、社会人员不限,报酬根据课题难度协商,通过支付宝交易,有意者请加QQ:2398165228 加QQ后请说明您的来意和擅长的方向,以及留下您的电话号码,以方便有课题的时候与您联系

by ruisheng02 - C/C++ - 2012-02-17 23:04:20 阅读(1618) 回复(5)

如何在c++中调用已经被编译好的c函数?下面的小例子展示了这个过程: 1. 假设某c函数如下定义 /* file foo.c*/ #include int add(int x, int y) { return x + y; } 编译并生成DLL: gcc -fpic �cc foo.c gcc �cshared -o foo.dll foo.o 2. 在c++中调用这个被编译后的c函数 // file test.cpp #include extern "c" { int add(int x, int y); } int main() { #ifdef __cplusplus std::cout #else std::cout...

by istvh - Linux文档专区 - 2009-09-14 16:42:53 阅读(791) 回复(0)

建立一个hello.c文件: #include int main() { printf("hello, linux!"); return 0; } gcc hello.c -o hello ./hello 完成测试,使用c++则建立一个hello.cpp 或hello.cxx Linux下的c++编译器是g++ 把gcc换成g++ 本文来自chinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/102400/showart_2028984.html

by tubilly - Linux文档专区 - 2009-08-15 22:33:16 阅读(802) 回复(0)

我个人感觉,不需要多说,只要去一个网址就完全够了: http://www.sonicspot.com/ A comprehensive library of computer music and audio resources including news, in-depth software listings and reviews, helpful articles and quality message forums. 这里有很多specification,这就是c/c++音频编程最重要的。 比如关于file formats,它记录有: File Formats There are hundreds of file formats use...

by kjpioo - Linux文档专区 - 2009-05-21 18:32:11 阅读(1218) 回复(1)

#include #include #include #include #include main() { char buf[80]; char pid[6]; FILE *p,*q; char path[80]="/home/span/execbin/Log/BtsProxyStd."; char *b=NULL; char string[10]=".dbg"; int flag=0,i=0,k=0,j=0; if((p= fopen( "tmp", "w+" ))==NULL) perror("open file tmp error"); system("ps -ef|grep btsProxy >>tmp"); printf("I\n"); ...

by truelove120 - Linux环境编程 - 2007-05-21 19:12:56 阅读(1651) 回复(3)

第一次学c++求大神指导啊 如何使用c++编写一个加密程序,程序的具体要求是实现以下结果,要求输入密文,解出明文, a b c d e f g h i j k l m n o p q r s t u v w x y z t s i n g h u av e r y b c d f j k l m o p q w x z g ua n x i v er s t y b c d f h j k l m o p q w z 其中,t s i n g h u av e r y 是tsinghua university略去前面已经出现的字符依次写下的。后面b c d...

by 非是菲菲 - C/C++ - 2013-12-05 17:48:50 阅读(926) 回复(0)