UNIX/Linux Programming - February 2018

garbage letters in the middle of a word
 
if I compare two words with a equals sign in the middle of the word i get garbage letters were the equals sign is, for example, if use the word "true-blue" with...
[2 replies] Last: I think it happen because you are using the pointers not the right way... (by benhart)
memory leak with getaddrinfo_a
 
Hi there! I got a memory leak using the call 'getaddrinfo_a'. This is an example code taken from the Linux man pages: #include <netdb.h> #include <std...
[2 replies] Last: there kind of errors are a result of high complexity, I;s recommend yo... (by benhart)
by namnam
Multiple child process creation with their own name as command line arguments
 
I am familiar with a concept of creating a child process with fork() and able to create multiple child processes with for loop but how do I create three child p...
[3 replies] Last: This is an example of something that runs other programs in parallel a... (by kbw)
libcurl and https
 
Hi everyone! I am having problems trying to use libcurl with https support. This is an example code : #include <stdio.h> #include <curl/curl.h> in...
[no replies]
Upgrading CAT command file
 
I have no where really else to turn. I have been working on an assignment for over a week, and still confused. I made a cat file and have to upgrade the file. I...
[3 replies] Last: I'm not clear on what you're on, but you do have some problems. First... (by kbw)
Open BIN file
 
I have a program that generates an output as a BIN file. I'm using cygwin to compile and run the c++ program using MAKE. Now, once the program is done running I...
[8 replies] Last: Try using command in terminal hexdump -C yourfile.bin (by jan127)
adding converted elements from vector
 
HI I have a program that reads in a .txt file and saved in a vector. now i need to add those integers that is in the even position. Since my vector is declared ...
[3 replies] Last: thanks thanks for the idea. i have made it work . much appreciated (by paulpv278)
by rafi21
program to check prime numbers.
 
I am a freshman college student. I started to do c++ programming, I was trying to do a program to check whether its prime or not. but it always ssys non prime. ...
[2 replies] Last: First, please use code tags when postig code. See http://www.cplusplus... (by keskiverto)
HELP WITH LINKED LIST CODE
 
I'm trying to make this code work.The program compiles but I get this error:"Bus error: 10" after I select option 1. It's a linked list containing type Person s...
[2 replies] Last: Duplicate: http://www.cplusplus.com/forum/beginner/230161/ (by TheIdeasMan)
by waruqi
I'm implementing menu config based on curses terminal
 
I'm implementing menu config based on curses terminal. for example: $ xmake [f|config] --menu It automatically gets the options in the project to generate...
[no replies]
by kada17
Makefile giving an error when compiling C++ object code and executables
 
I am trying to get a makefile to compile some object code and executables. But every time I get a warning and error saying g++ -std=c++11 -Wall -Wextra -c...
[2 replies] Last: Thank you!, I at first didn't implement the dot beside I but now I u... (by kada17)
  Archived months: [jan2018] [mar2018]

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