UNIX/Linux Programming - September 2009 (Page 2)

Finding Pi with an infinite series
 
i have to calculate pi by using the infinite series: pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 .... the program is suppose to read in a positive integer and p...
[2 replies] Last: thanks Bazzy, that fixed everything. i knew it was truncating, but i h... (by bcb5082)
C File can be compiled with GCC but does not compile with G++
 
Hi, I'm using this compile's version from GCC maiko@maiko-laptop:~$ gcc --version gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3 Copyright (C) 2008 Free Software Found...
[2 replies] Last: Thanks man, I'm working on this problem for weeks. Bye ! (by MaikoID)
Accessing Fortram Module data with C++ in Linux
 
Hello, I have a difficulty in Mixed language programming. There are many global variables in a fortran module, which have to be accessed from C++ main program...
[2 replies] Last: I noticed you're trying to use LAPACK. You should check here http://ic... (by turbozedd)
Setup a Fully Feature C++ Develop Environment
 
Hello, I'm learning C++ and i want to know what i have to do for setup a fully featured C++ develop environment in my Ubuntu Intrepid Ibex , like Gedit ,...
[13 replies] Last: I never would have thought someone would have a reason not to like IDE... (by closed account S6k9GNh0)
by sever
Little test programm breaks at compile time...
 
Hello guys, I have a such problem that I don't know if it will be well explained... The question is that I need to collect all X keyboard layouts and variant...
[4 replies] Last: Thanks, jsmith, I'll be it in mind. S. (by sever)
Easy to use compiler for puppy linux
 
hi, I'm new to Linux, I've downloaded puppy Linux and I'm happy with its performance but i need an easy to use c++ compiler for it(like dev cpp for windows). wh...
[4 replies] Last: Eclipse is awesome. Great project management and probably more of the ... (by closed account S6k9GNh0)
by quant
problem with real-time
 
hello everyone, i'm very hope so anyone ere have experience with lib rt like aio linux based. I've a problem with receiving data from aio_buf, i.e. I have rec...
[9 replies] Last: I seems use `for` itn's good with aio, more over not good use superfl... (by quant)
child and parent processes
 
I need a little assistance understanding why you would ever need to have a child process outlive its parent... Can anyone give me an actual example of a situ...
[1 reply] : Almost every unix service does this as a means of automatically "backg... (by jsmith)
convert given timestamp and timezone to broken-down time
 
I want to write a function, bool brokenDownTime(const time_t& time, const string& timezone, struct tm& brokenTIme); here brokenDownTIme() should convert the '...
[no replies]
Get stream output from a program
 
I'd like to be able to get output from a program the way some (most) IDEs can get the error messages that compilers like GCC output. I can't think of any way to...
[4 replies] Last: Ok, thanks. I'll do that. (by chrisname)
by Corps
Generic Linked List in C++
 
I've been trying to figure out how to implement a generic linked list and this site has been wonders but i'm up to this point which has seemed to have worked fo...
[4 replies] Last: Can't you just use boost's smart_ptr library along with STL lists/vect... (by jsmith)
"error while loading shared libraries:" with ddd
 
Hi!! everyone, I am debugging with DDD. But I can not do. because ddd made error "error while loading shared libraries: XXXX.so: cannot open shared objec...
[1 reply] : So what does ldd say? If your program executable is 'foo', then typ... (by jsmith)
Compiling error in sys/socket.h
 
I'm doing some college work, and i came across this error when i compile: g++ *.cpp -lpthread In file included from Packet.cpp:2: /usr/include/sys/soc...
[4 replies] Last: Yep it worked, but tons of other errors showed up in my code.. Hah... (by spiralfire)
Matrix doesn't display properly in Linux only
 
Hello again, I'm a beginner in C++, and maybe in Linux too. I don't know why my program behaves a little different in Linux. I am trying to output a matri...
[4 replies] Last: I guess I should have known that, but it must be some leftover C progr... (by turbozedd)
by ade
problem in sorting data's in chronological order
 
Hi, am new on this forum could any one please help me out with these. I tried sorting out data sets of packet field header for anomaly detection system using th...
[2 replies] Last: thank u, hve tried it, but it did not work got the error message: ... (by ade)
by mamali
make a tcp connection
 
hi all could you please help me writing a program that gives a host and a port and make a tcp connetion with it ?
[1 reply] : this is known as socket programmer, or atleast that's the method most ... (by elvenspike)
by missty
how can i check for empty text file?
 
can anyone tell me how can i create a function like: if ("the txt file is blank") dosomething; which is checking if the text file is empty and ...
[6 replies] Last: misty you can gather a line of text from the text file. If that file ... (by brokenbot)
by quant
protocol testing...
 
hello, may be someone know, how I can send packets from collected(via tcpdump) those before in pcap-dump to my target ip? I need this for testing my program wit...
[no replies]
September 2009 Pages: 12
  Archived months: [aug2009] [oct2009]

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