UNIX/Linux Programming - September 2008

How do I run a Shell Script/shell commands within C++?
 
Hi, I'm somewhat of a beginner at C++ (only been around OOP for 6 months or so now - started with Java). Anyway, with that being said, I hope someone can ...
[6 replies] Last: How we write code of ipc ,socket and thread with c++ as all the ipc me... (by lipune)
Generate Permutations.
 
Hi , I want to Generate Permutations of 5 digit with numbers 1 to 6. How Can i go about it ? Im using G++ under Ubuntu Intrepid Ibex. Permutation is Basically ...
[4 replies] Last: Thankyou HaHai. (by ashmew2)
by albogp
Segmentation Fault in Shared Memory
 
Hi all, I found "segmentation fault" error when i tried to read the shared memory struct. I defined a struct with 5000 array. There was no problem when i ac...
[2 replies] Last: Hi jsmith, I have found the problem. It just because some pointer p... (by albogp)
how to restore terminal text colors after changing it?
 
hi, I tried changing my terminal text and background colors with printf it worked. But how do i save the default terminal colors before i change it? is there a...
[2 replies] Last: DUOAS Thanks for yr help it worked. thank you. (by suanhwee)
by vac1
how to do a reserve engineering to a binary file?
 
Dear all, I wonder is there any way to get our source code once after compiled to binary? let say my program as below, source code: #include <stdio.h> voi...
[2 replies] Last: I will try that. Thanks (by vac1)
MySQL++ with C++
 
I also posted this in the "Beginners" forum. Really hoping for help. I'm trying to use MySql++ in Xcode. I'm not 100% sure how this works but it seems I ne...
[no replies]
Dynamic Lynker Error
 
Hi, everyone. I am working on a project that involves using a few shared libraries. I use a make file to link these libraries. During compilation and linkin...
[3 replies] Last: hooked, you were exactly right. For some reason I thought that the LD... (by deboJackson)
how to clear just 1 line in a terminal
 
hi, guys... I'd like to know how to clear just one line in a terminal... if I use "clear"...it clears all the screen thanx evandro
[2 replies] Last: thanx...very useful! (by flyersender)
Pointer problem
 
Hi, first of all, the code: RPC<uint32> local_catalog_address = remote_qp.get_local_catalog(); cout << "local_catalog_address: " << local_catalog_address...
[4 replies] Last: Ok, I understand Thanks so much, i will try in another way (by Vincenzo)
Searching files with a specific extension
 
Hello all! I need to create a procedure that is a loop for searching files with a specific extension. For example, when starting the program, in the main...
[2 replies] Last: Thank you... it will surely help me :) (by ricardo schmidt)
by vac1
gcc -03 , what kind of option it is ?
 
Dear all, I had to use this option in gcc to compile, because i follow someone's program. But i dont have any idea, What this option is used for ?, i have tri...
[3 replies] Last: http://gcc.gnu.org/onlinedocs/gcc/Invoking-GCC.html GCC does not ha... (by Duthomhas)
How to use Time(1) in linux
 
Hello, I have this project where I need to time how long a certain process take based on the system clock(in seconds) and as well as in real time. I have been ...
[1 reply] : http://linux.die.net/man/7/time (by Duthomhas)
by vac1
& symbol,???
 
Dear all, i have found some line someone's program that use & symbol in condition statement and used as operator while assigning value to variable. example ...
[1 reply] : && is the boolean "AND" operator. & has two meanings: 1) it can b... (by jsmith)
by quant
raw-socket data
 
I want any ideas from your side about data transfer via raw. I've client-side, but don't know how to use memcpy() or else for send data? Please to view any sa...
[2 replies] Last: Strange, but in sniffer capture don't view that text. The packet check... (by quant)
by pfoh
raising SIGUSR on key press
 
What is the best way to have a keypress raise a user signal? I dont want a to use a thread that reads all input and raises an exception on a specific key becau...
[1 reply] : That seems to be a very odd way to do it. Most applications will imple... (by Duthomhas)
by Ruben
Introducing a Template as a parametre of another Template
 
Hi, I'm trying to define a library which needs an undefined parametre to be passed as a template parametre. This is my code (sumarized): template <typen...
[6 replies] Last: Thank you jsmith! that's almost what I wanted. I didn't know I could i... (by Ruben)
Reading a whole folder
 
Hi, I am currently working on a program that reads numerical data from a file and analyzes it (searches for a maximum, etc.). Is there a way I can input the na...
[1 reply] : There are a lot of ways to do it. I suggest you start here: http://li... (by Duthomhas)
Introducing a new project for AI lovers
 
Hi guys, I'm the maintainer of Imperfect world of Robots (http://www.iworproject.org), and I'm here to introduce this project to any AI lover. This is a free...
[6 replies] Last: Yes, that would be alright, as long as it works! When you done this... (by aidin36)
NetFlow packets
 
Hello I want to capture NetFlow packets that was sent by fprobe. The fprobe is on my local machine and it send packets to 127.0.0.1:2055 via UDP. So, I hav...
[no replies]
How to get system time in Linux using C++
 
Hello, I have a project where I need to time how long a particular action takes within my program using the system clock. With this in mind, I have researched ...
[3 replies] Last: You do know that section 7 is basically "overview and how-to", right? (by Duthomhas)
September 2008 Pages: 12
  Archived months: [aug2008] [oct2008]

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