UNIX/Linux Programming - July 2011

How to attach a string to an integer value
 
Hi I have "/tmp." as my string value and also an integer value which has been generated and I want to attach them together so I can use it as a name file in op...
[7 replies] Last: If you were going to use fopen anyway, I would go with ne555' suggesti... (by andywestken)
problem when creating a class called link and using string
 
When compiling the following code, my actual link class is more complex, i got the error message: link.cpp: In function ‘int main()’: link.cpp:19:...
[1 reply] : Apparently <string> on your platform declares C++ versions of system f... (by chronokitsune)
by mhaber
Parsing text file
 
Hi guys. I am trying to parse a file that contains a list of digital certificates and their expiration dates. The file looks like this: Profile Name Pr...
[6 replies] Last: Unfortunately it has to be in C++ because in a few months I'll be leav... (by mhaber)
Can I use c++ within a cocoa or carbon application?
 
have written a program in c++...it includes a bunch of header files and whatnot...I would like to build a user interface for this project using cocoa...can this...
[4 replies] Last: thanks! (by paulmcco)
BLAS
 
I tried to call cblas_dgemm from C++ code to do matrix multiplication. But with same matrices, the C++ code is much slower than matlab command C=A*B. Anybody kn...
[no replies]
Xcode 4 Tutorials in YouTube!
 
Its not a spam, I just want to present for you just begining of cool in my opinion tutorials in the new youtube channel - MacroTeamChannel. Tutorials are in 2 ...
[no replies]
Help with getopts_long()
 
I'm trying to use getopts_long to process command line arguments. I need to setup an option array to pass to getOpts_long. But when I compile I get the error ...
[4 replies] Last: [quote=Disch]Don't cast around compiler errors. If the compiler compla... (by ne555)
(c++) va_args(va, int32) gives very large value on x86_64 GNU/Linux
 
void AppBuf(message_id_type msgID, int32 numPairs, va_list va) { int32 len = va_args(va, int32); .... } The above piece of code runs perfectly fine on windows...
[no replies]
problem using curses.h
 
hi, i got NCurses.h (which includes curses.h, term.h and many others) through command $ sudo apt-get install libncurses5-dev libncursesw5-dev it downloaded a...
[3 replies] Last: I don't really know about IDE's so bare with me. First you should try ... (by eraggo)
Ascii value of ENTER key
 
Hi, I would like to print "You have pressed Enter key" when ever user hits Enter Key. Please help me write this in C Program. Can this happen using getch o...
[4 replies] Last: i found the solution already... but in a different way. Thanks (by kiranbhatter)
Segmentation fault on cos
 
Hey guys, I'm having a little trouble with my code. I'm a new programmer, and just got to math functions. I decided to try to make a little calculator kind of t...
[no replies]
Boost libraries
 
Alright. I am going crazy. I can not get the boost library to work. I have ubuntu and went to the synaptic package manager and installed libboost1.42. Which ...
[10 replies] Last: Please answer two questions so that we can better help you. What is t... (by PanGalactic)
Strange print after fork
 
I have the following code: #include <sys/types.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(void) { int n=5; pid_t pi...
[13 replies] Last: I see, so processes share the same logical addresses but have differen... (by glennhk)
segmentation fault
 
input: 10.5,2.4,3.4 5.3,2.0 57.3,52.0,7.2 8.6,3.5 1.9,5.2 4.6,8.1,1.8 3.5,9.6 7.8,9.8,1.5 7.5,0.5 0.005,4.50,4.751 I need that output is well: ...
[3 replies] Last: dados is dados to dados You may need to re-read about arrays. http... (by closed account z05DSL3A)
by Troy
C++ Splitting strings into tokens.
 
How would I go about splitting a string into tokens? I want to be able to input a string such as "cmd www http://www.google.com" and it would parse "cmd" as "co...
[3 replies] Last: I guess you'll want to use regular expressions rather than straight to... (by bigearsbilly)
Build For Linux In Visual C++
 
I am developing a game in SDL with C++ and I am wondering if there is any way to set up Visual C++ (2008 or 2010 express) so that I can build the project for Li...
[1 reply] : The natural purpose of VS is to promote Windows programming. In theory... (by Catfish)
Int Variable given a random value
 
In my code (which I can't post til I get home) I am trying to use a for-loop to loop through the values in a vector. My loop looks something like cout << "A...
[5 replies] Last: No, array.size() is the correct way to go. You simply are overlooking... (by kooth)
Loading image on a window using OpenGL
 
Could anyone suggest me how to do this? I am experienced in programming in C/C++ but I am unable to load an image on any window created using OpenGL. I have nev...
[2 replies] Last: Thanks for your reply and I have been trying to use CImg library and i... (by nitin21)
I need now of a program that do download of a site
 
Well, I'm starting c++ now, I had a first experience with C in my University Graduation. I need now of a program that do download of a site. For where I start ?...
[1 reply] : Use libcurl API, it is very easy to do it. (by modoran)
Segmentation fault
 
Hi, I know this problem is easy, but I can't figure it out by myself. I'm trying to generate 100 random numbers and then plot a histogram. For some reason, w...
[3 replies] Last: I glad it helped! Make sure you mark this as "solved" please. Good l... (by kooth)
July 2011 Pages: 123
  Archived months: [jun2011] [aug2011]

This is an archived page. To post a new message, go to the current page.