- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
#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); … |
|
Hi, Anyone knows how to create Audio playspeed, reverse playback using c#? Any sample codes to reference? |
|
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? |
|
How to I read in a text file ignoring the digits, just want the text in the text file Any sample code? |
|
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 … |
|
How do I convert the characters in buffer to upper case? |
|
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. |
|
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 … |
|
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. |
|
How do I overload the input and + operator for quaternion class? |
|
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 … |
|
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() … |
|
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? |