UNIX/Linux Programming - September 2012

How i can execute a script
 
Hi everyone, I have the next quiestion, I am learning to use OPENSSL and I have the next SCRIPT #!/bin/bash space1="a b c d e f g h i j k l m n o p q r s ...
[1 reply] : Either pass it as an argument to bash bash SCRIPT or set executable ... (by naraku9333)
by ritka
read() vs fread()
 
hi, i have a question about c filestreams. there are so many differnt types of reading from/writing to files in c/c++ and i don't realy know what's best to use...
[13 replies] Last: question?well. i will give you a appropriate answer. (by Henryrugal)
[SOLVED] select() returns "ready" even after I closed producer (FIFO)
 
Hello, I have a producer application that writes data into a FIFO, and I have a consumer application that reads data from FIFO utilizing select() and read() ...
[2 replies] Last: EBADF An invalid file descriptor was given in one of the sets. (Per... (by vincegata)
independent client server
 
if i open multiple clients then i m getting previous msgs also at the server end,below is the code. connect 3 clients and send msgs to the server and check the ...
[3 replies] Last: i can't even imagine why it should not print the message ... because ... (by kbw)
Can vim has Emacs tables
 
How can I make a table in vim like Emacs.as follow shows.. +----------+-----------------+ |vim |Emacs | +----------+----------------...
[2 replies] Last: it's a language (by JaleesaClawson)
operating system error
 
Hi... I was using Ubntu 12.10 for C/C++ but when I started my computer Today then I got the following Try(hd0,0): NTFS5:...
[2 replies] Last: O/S is a simple sub......................... (by AbdulDavidson)
by ne555
Invert intensity (HSI)
 
Playing a little I found the XF86VidModeSetGammaRamp() function that allow to change the LUT of the rgb channels. The problem is that's useless... I want to...
[2 replies] Last: No, that would simply invert the image. (green would become magenta) I... (by ne555)
function pointer to memcpy
 
I have a function point that i want to initialize with memcpy void (*op)(const void*, const void*, int) = memcpy; but i get this warning: [seif@seif...
[2 replies] Last: thank you for the useful tip (by closed account GLyURXSz)
solaris from 32 to 64 core dump
 
I had a program compile under sunos 32bit and work fine , but when i compile it under 64bit it compile wihout any warnings but at runtime it makes core dump at ...
[1 reply] : There are many ways in which an erroneous C++ (or C) program could com... (by Cubbi)
no sound on ubuntu 12.04?
 
the sound was working just fine yesterday, and for some reason there is no sound today.
[2 replies] Last: Check that the right sound output device is selected in sound settings... (by Athar)
how to get a single wide character (wchar_t) one by one from *.txt file in c++??
 
i am working on Urdu Hindi translation/transliteration. my objective is to translate an Urdu sentence into Hindi and vice versa, i am using visual c++ 2010 soft...
[1 reply] : IIRC inputfile.get() returns an integer why not wchar_t wc; while(i... (by Texan40)
Create package of Structs
 
Hey all, What is the best way to include a whole bunch of structs into a program. I'm messing around with a pokemon game and I need to have access to their st...
[2 replies] Last: Good call. Thank you. Now there are like over 500 pokemon I think. ... (by poridgemaster18)
by an3
umount
 
hi everybody. I have a little problem with "umount": in a piece of software i try to mount a flash device to the file system of my computer, then write/read dat...
[3 replies] Last: thanks for your answers! I had a little mistake in my code posted here... (by an3)
ncurses, how to print out a string from input
 
hi all, I'm having trouble finding out how to input a string. This is what i've got so far: #include<ncurses.h> #include<string.h> int main(){ initscr(); ...
[3 replies] Last: I realised that there really isn't any good tutorials for learning ncu... (by mferarri)
Problems with reading HTTP requests
 
Hi all, I am trying to implement a simple HTTP server with C that 1. reads a request 2. checks if it is a GET request 3. reads the URL from the request ...
[2 replies] Last: i highly recommend you to use a 3rd party library like libcurl to hand... (by modoran)
by grima
Sorting a multidimensional array
 
Hi all, I would like to sort two arrays (two vectors) after the first and then after the second array in ascending order. Is there a quick way? Thanks,...
[3 replies] Last: The best way to achieve this is to use a struct like this: struct d... (by AleaIactaEst)
Fallout 3 Terminal as a C++ Program
 
/***************** * CREATED * * BY * * HUNTER HARPOLE * ******************/ //This is a simple c++ version of the fallout 3 Termina...
[2 replies] Last: It's not very good code to begin with. The password is hardcoded, and ... (by errcheck)
error() - is there a function like this in gnu/linux?
 
Hi all, I am learning to code in c++ on Linux Mint 13. I am going through an exercise drill in a book called "Programming Principles and Practice using c++...
[5 replies] Last: Just curious, what is the contents of std_lib_facilities.h ??? see... (by mferarri)
Ubntu
 
Hello I am new to C/C++ programming through Linux/Unix right now I am using Ubntu 12.04. withg gcc package installed. Q-> I just want suggestion in terms ...
[10 replies] Last: I don't really use emacs for much besides auto indent and syntax highl... (by ResidentBiscuit)
MinGW linking error "undefined reference to ..." Qt Creator with custom library.
 
Hi Guys, I have come across a very troubling problem because I can't seem to solve it and a very nice fella at stackoverflow.com was unable to help me with...
[5 replies] Last: Ok, I figured it out. It turns out that the MinGW compiler likes MinGW... (by Snowball)
September 2012 Pages: 1234
  Archived months: [aug2012] [oct2012]

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