UNIX/Linux Programming - February 2010 (Page 2)

how do I use local variables with the system() call
 
say I have a variable declared as string str = "filename"; and I want to do system( "wget www.someurl.com -O <value of str>" ); how would I go about do...
[5 replies] Last: Yes, you can do that, but considering the article you wrote about th... (by chrisname)
Char by char output using sleep;
 
It seems to be a trivial problem but I can't figure it out. I'm trying to output a string character by character using the sleep function: #include <io...
[2 replies] Last: Also, please don't use system () to sleep. http://www.cplusplus.com/... (by Duthomhas)
Gcc Linking
 
In Gcc is it possible to recursively compile .cpp files attached to one a single .cpp file until all associated files are compiled? And if not how would you acc...
[3 replies] Last: No. You need makefiles for that. The GNU Make utility has the power to... (by Duthomhas)
Qn on POSIX header files
 
why do books state to #include <sys/types.h> when I'm using socket when it simply works fine when I just #include <sys/socket.h> btw, what does <sys/un.h> an...
[3 replies] Last: Always observe the manual pages. If they say that you should #include ... (by Duthomhas)
Problem Accessing C++ Code From Within C Source
 
Hi fellows... Today I'd like to steal you a little of your valuable time to see if you can help me solve a puzzle in which I introduced myself. I'm develo...
[no replies]
by silvan
error while loading shared libraries
 
Hi I get the following error message when executing my program from the command line: ./comtest ./comtest: error while loading shared libraries: libco...
[2 replies] Last: Hi Silvan, first of all I'd recommend that you know exactly what are t... (by ghostpy)
OpenMotif
 
I am currently attempting to add bidirectional language and complex text layout (CTL) support to an OpenMotif 2.3.0 application. It is internationalized using ...
[no replies]
by Srij
Need information regd C++ uses on unix
 
Hi All, I am at the beginner level to C++ programming now.I actually want to know where c++ programming is used on unix/linux.Is it mainly used for system prog...
[1 reply] : You can do almost everything in C and C++. It stretches from games to ... (by closed account S6k9GNh0)
how to use unkown pipes ?
 
in this code i am tryin to pass the Id to the child process but it doesot work .i think the problem is in wich pipe to close . file : racine.pp #inclu...
[1 reply] : Both the parent and the child close the write side of the pipe. You ... (by jsmith)
how do i exit from a created shell?
 
hi everyone, have the following code below in C. i have bin able to figure out ho to come-up with a help program that prints out certain things. please could so...
[8 replies] Last: First of all, "hakermania?" "A 15 year old child with the purpose of [... (by chrisname)
GCC not generating object!
 
Hi All, GCC is not generating the object for part of the C++ source when an uninitialized local variable is used within an "if" block or used in another "if"...
[4 replies] Last: jsmith is correct. You cannot expect compilers to behave the same way... (by PanGalactic)
by Spummy
"error: expected constructor, destructor, or type conversion before ...
 
Hello all, I'm messing around with SDL in C++ and I've encountered this error while trying to create an array of a class type "Entity". class Entity { pub...
[10 replies] Last: The code i gave you compiles for me with out any errors. this code ... (by DrakeMagi)
Linux or Windows for programming? (1,2,3,4)
 
Hi, I am running a 64 bit version of windows and it sucks. I'm thinking about switching to linux, but I just want some more opinions about what operating sy...
[77 replies] Last: I enjoy using g++ and gedit, while it may seem non-user friendly at fi... (by DrChill)
Design and implementation of a shell
 
i was able to create this shell below. how can i make this shell support commands like cp, del, cd, host, quit etc. i have tried the help calling the function o...
[3 replies] Last: If you don't know how to compare strings, how are you meant to know ho... (by chrisname)
by teppel
Insert variable into database insert statement
 
#ifndef __DATABASE_H__ #define __DATABASE_H__ #include <string> #include <vector> #include <sqlite3.h> using namespace std; class Database { publi...
[2 replies] Last: this is an example: char lz_sql ={0}; sprintf(lz_sql, "INSERT I... (by yikuang)
unix pico editor
 
does anyone know the command that will copy code out of pico and paste back into the editor.
[no replies]
Functions using bitsets
 
Hi I have been trying to get the following function using bitset structures to work for a while now but I cant seem to get around the segmentation fault. Can an...
[7 replies] Last: The idea is to convert a series of numbers (stored in r) ranging from ... (by creature)
February 2010 Pages: 12
  Archived months: [jan2010] [mar2010]

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