Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 29
c x 4
Member Avatar for toolbox03

#include <string.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> void error(char *msg) { perror(msg); exit(0); } int main(int argc, char *argv[]) { int sockfd, portno, n; struct sockaddr_in serv_addr; struct hostent *server; char buffer[256]; if (argc < 3) { fprintf(stderr,"usage %s hostname port\n", argv[0]); exit(0); …

Member Avatar for gerard4143
-1
132
Member Avatar for toolbox03

Hi, Anyone knows how to create Audio playspeed, reverse playback using c#? Any sample codes to reference?

0
65
Member Avatar for toolbox03

how do I extract the arguments using getopt Usage: test.py -P abc -S def -G xyz How do I extract the values abc, def and xyz?

Member Avatar for jlm699
0
112
Member Avatar for toolbox03
Member Avatar for toolbox03

How to I read in a text file ignoring the digits, just want the text in the text file Any sample code?

Member Avatar for Duoas
0
89
Member Avatar for toolbox03

The problem is with this line inCustomerDetails[i].getCustomerProduct(productName, productID, unitCost, quantityPurchased, x); data.txt 5 Angie Ang S1234567 Y 4 Choco P0001 5.50 2 Rice P0002 10.00 1 Bread P0003 2.00 1 Chicken P0004 7.50 1 program code [code=cplusplus] #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; class Product …

Member Avatar for Nick Evan
0
136
Member Avatar for toolbox03
Member Avatar for jephthah
0
226
Member Avatar for toolbox03

Just wondering how do you create a queue system using pthread? I need to create 2 thread, one for putting in the queue number into an array and the other for removing the queue number from the array.

0
57
Member Avatar for toolbox03
Member Avatar for jephthah
0
97
Member Avatar for toolbox03

I have a txt file of this format: 2 Jack S123 Y 1 Choco P0001 5.50 2 Jane S456 N 2 Rice P0002 10.00 2 Chicken P0004 7.50 1 how do i create the loop to store the data into 2 classes? my code for (int i = 0; i …

Member Avatar for VernonDozier
0
103
Member Avatar for toolbox03

How do i read in an equation in this format: 1 + 2a + 3b + 4c? I need to extract only the value 1, 2, 3, 4.

Member Avatar for toolbox03
0
138
Member Avatar for toolbox03
Member Avatar for toolbox03
0
75
Member Avatar for toolbox03

Want to ask how to detect new line For example, I need to read in a text file in this format John 123 Y 1 abc def ghi Jane 456 N 1 xyz Jack 789 N 1 xxx xxx how do i detect the empty line and read in the …

Member Avatar for toolbox03
0
933
Member Avatar for toolbox03

Anyone knows how to capture the data pipe in from linux ls command in c++ program? the command is ls - ali and I need to pipe it to a c++ program by ls - ali|./a.out how do I code the main in c++ to capture the data? int main() …

Member Avatar for dougy83
0
155
Member Avatar for toolbox03

Hi, I have this txt file containing data in this format: John HH HHH GGGGKK I want to extract John as 1 field and HH HHH GGGGKK as another field. How do I ignore the whitespace and read it as a single field?

Member Avatar for toolbox03
0
112