UNIX/Linux Programming - February 2013

code::blocks and ncurses
 
i switched my project over to code::blocks and now i cant get it to compile because i dont know how to link in code::blocks. how do i do this?
[1 reply] : Same way you linked in your old environment. Tell it to search in the ... (by ResidentBiscuit)
by coj2b
Simple C++ Question
 
I need help understanding something simple. How many times does the following loop execute, and what is its output ? count = 1; while ( count<= 12) { ...
[5 replies] Last: Typo. Forgot a +. (by ResidentBiscuit)
bug in my code
 
so i know this is a lot of code, but dont let that deter you. i only include it all because i dont know where the bug is but i do have a general idea. http:/...
[15 replies] Last: ok thanks for the reply. (and i mean this btw) after i fix main and co... (by closed account Dy7SLyTq)
by kopii
Bitmap to hex array conversion in c++ using opencv
 
I am new to OpenCV. I have to convert a monochrome bitmap to a one dimensional array. What I have done so far is that I have read the image file and shown it in...
[no replies]
need help with int main(int argc, char *argv[])
 
is there a way to pass values from command line to the int argc and char* argv arguments of int main()?
[1 reply] : I'm not sure I understand. That's the whole point of those parameters.... (by closed account S6k9GNh0)
ncurses keyboard constants don't work?
 
Hi, I've been learning to use ncurses and have run into an issue. I made the following program to copy the program less in ncurses: #include <iostream> #incl...
[17 replies] Last: sorry i made a mistake. the tutorials i looked at for ncurses said the... (by closed account Dy7SLyTq)
need help getting gvim using cygwin terminal
 
i downloaded and installed both vim and gvim using the cygwin 'setup' file and whenever i try to run gvim through the cygwin terminal it says 'E233: cannot open...
[2 replies] Last: try installing something like xming (by drew887)
compiling c++ programs in ubuntu g++
 
hi every one i am new to c++ programming. i got an error as shown below "root@ubuntu:/home/ramreddy/Desktop/tts/speech_tools# make Making in directory ./s...
[4 replies] Last: thank you it worked (by malleramreddy)
suggestion on improving the performance c++
 
Hi all, I am under research of how to improve the performance of the below situation. Client Side: 1.Transferring 1 million 50KB files from client to ser...
[1 reply] : You should always try to improve the slowest part. Storing the data o... (by kbw)
Help Please
 
a = "First" b = a //does this not the value "r" to b ? does this work on numerical values? Can I grab more than one at a time? I am working on a p...
[2 replies] Last: b = a will work if you have declared "a" as a character array ( char ... (by svarg)
Getting Started
 
Hello, I have been a Windows programmer for a number of years, and until recently I have ignored the fact that Linux is eventually going to play a large roll...
[1 reply] : And by Cross-Linux. I mean programs that work with all of the distros ... (by MaxterTheTurtle)
by stdeez
WHATS WRONG PLEASE :((
 
int heaviestCar(int arr ,int elements){ int heaviest=0; int carWeight=0; int temp=0; while (temp<elements){ carWeight+=arr ; ...
[2 replies] Last: its a simple maximum function that reads through my array, If it's ... (by cire)
[solved]How to check if two paths belong to the same partition
 
Hi, How can I check if two path are from the same partition or different partition? any help/hint would be much appreciated santiagorf
[1 reply] : got it!! #include <iostream> #include <ctime> #include <sys/types.h> ... (by santiagorf)
by DatGuy
SDL -- Screen won't show my images
 
Hello. I decided to make a little animation program with c++ and SDL. basically a man runs when you keep the right button pressed, even with birds moving in the...
[no replies]
Hi i need help on using dlfcn
 
im trying to implement dynamic loading of libraries into my skills. but im having a problem whenever i compile a simple program that has dlopen("",RTLD_LAZY); ...
[1 reply] : i found the solution using -ldl option in g++ but i want to know why n... (by abeljay10)
Insert Into SQL Database
 
I have a function that writes something in a SQL database. First time it is passing ok second time it is giving an error and I cant figure out what is causing i...
[2 replies] Last: After a few more days of searching I figured out what was going on. It... (by blaurier)
ncurses menu
 
im making a menu in ncurses for a console application. im not near a compiler so could someone please verify that my code is right. if there is an error please ...
[4 replies] Last: i know. its called in main before menu. and i dont know why end win() ... (by closed account Dy7SLyTq)
exe images
 
im running linux ubuntu 12.10 and im putting the finishing touches on the shell/template of my game. how do i change the icon for it? like the firefox exe is a ...
[6 replies] Last: You want to change the image that you see down in the task bar right? ... (by drew887)
Programming & devoleping in Linux
 
Hi, I'm currently thinking about a project, about the know-how. The project involves intensive use of the CPU, the memory and IO communication. I need to...
[14 replies] Last: If you know, could you recommend me a good book about GTK from the Ama... (by RobertEagle)
g++ problem?
 
I compiled a tictactoe game that seg faults when i compile it and run it on my machine (Ubuntu 12.04 LTS with 128gb SSD i7 proccessor 8gb ram) but when compiled...
[3 replies] Last: for(int i = 0; i<= 3; i++) for(int j = 0; j <= 3; j++) Should b... (by TheIdeasMan)
February 2013 Pages: 123
  Archived months: [jan2013] [mar2013]

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