Search:

Type: Posts; User: nick048

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,484

    I have solved. My previous function return only...

    I have solved.
    My previous function return only a char.
    The new solution is :


    void stringReceived(int sockDesc,char &s){
    char unsigned c;
    int i=0;
    int n;
    do {
  2. Replies
    5
    Views
    1,484

    Please,Must I to modify my function in this way?...

    Please,Must I to modify my function in this way?

    char* stringReceived(int sockDesc){... }

    I have tried, but without result.

    Bye
  3. Replies
    5
    Views
    1,484

    Error in function declaration

    Hi
    In the main I have declared a variable
    char string[100];

    I need to construct this variable with a function and I have written the code:


    char stringReceived(int sockDesc){
    char...
  4. Replies
    1
    Views
    1,087

    Condition error

    Hi to all,
    I have founded a problem in my program; it is in this code:

    i=0;
    charRecv = recv(nSocketDesc, &c, 1, 0);
    while (c !='\n')
    {
    mystring[i++]=c;
    ...
  5. Thread: Send a numeric

    by nick048
    Replies
    2
    Views
    1,777

    Send a numeric

    Hi to all,

    I need to send from server to client a numeric information. If the info is a string, I write
    send(newsocketfd, MyMsg, sizeof(MyMsg),0);

    If is numeric how can send the value? for...
  6. Replies
    1
    Views
    1,832

    Error counting occurrences

    Hi to All,

    Foollowing Your suggestion, I have written this code:



    #include <stdio.h>
    #include <string.h>
    #include <malloc.h>
  7. Replies
    1
    Views
    1,087

    Error passing arg

    Hi to all,

    I have this program:



    /*** HERE the various #define ***/

    #define BUFLEN 100
  8. Replies
    5
    Views
    2,643

    Ok, But my problem is this: In the struct,...

    Ok,
    But my problem is this:

    In the struct, each node can be for example
    "My oncle is the oncle of Martin"
    "My oncle is engeener"
    etc.

    I need to count the occurencies of word "oncle" in...
  9. Replies
    5
    Views
    2,643

    How find a substring in struct

    Hi to All,

    I need to search the string occurencies in a structure like this:


    struct node
    {
    char info[BUFLEN];
    struct node *next;
    };
  10. Replies
    5
    Views
    1,274

    Thank You, It's work. Bye

    Thank You,
    It's work.
    Bye
  11. Replies
    5
    Views
    1,274

    About Variable assignment

    Hi to all,


    I have this declaration:


    struct node
    {
    char info ;
    struct node *next ;
  12. Replies
    1
    Views
    1,476

    while non ended

    Hi,

    I a my server program I have in the main this code:


    int main(int argc, char *argv[])
    {
    char ctrl_terminator[3];
    char terminator[3]={'.','.','\n'};
    char msg[BUFLEN];
  13. Replies
    4
    Views
    2,837

    Hi to All Thanks for Your reply Nick

    Hi to All
    Thanks for Your reply
    Nick
  14. Replies
    4
    Views
    2,837

    Hi to all, Thank You for reply. Nick

    Hi to all,
    Thank You for reply.
    Nick
  15. Replies
    4
    Views
    2,837

    How to store string dinamically

    Hi to all,

    I have a problem in a little server program written with C.
    This is the code of main:

    int main (unsigned argc, char **argv) {
    int sock, client_len, fd, received;
    struct...
  16. Replies
    1
    Views
    2,002

    Function in a Server program

    Hi to All,

    I have written a little server that work fine.
    Now I need to add a function in the main that process a phrase, passed from a client as telnet. The last part of main is:


    ...
  17. Replies
    4
    Views
    1,423

    Nino. It is a lapsus

    Nino. It is a lapsus
  18. Replies
    4
    Views
    1,423

    Sorry, but I have worked a lot and I am tired....

    Sorry,
    but I have worked a lot and I am tired. The eyes close and also the brain.

    Thank You.

    Nimo
  19. Replies
    4
    Views
    1,423

    Error with strcmp

    I have this function

    void verifyMatrix(int n, int m, char *orig, char **mat)
    {
    char verifyString[5];
    int k;
    k=0;
    // Creating a string
    for (int i=n; i<(n+DIM);...
  20. Replies
    7
    Views
    1,279

    Hi, I have make your suggest modification, but...

    Hi,
    I have make your suggest modification, but the program don't run.

    Have You try with my code ?

    Can You to post the code modified, in order to verify my errors ?

    Thank You

    gaetano
  21. Replies
    7
    Views
    1,279

    Thank You for reply. This is the complete code:...

    Thank You for reply.
    This is the complete code:

    #include <iostream>
    using namespace std;
    #define DIM 2
    #define ADIM 5
    char firstString[5];
    char secondString[5];
    void fillMatrix (char...
  22. Replies
    7
    Views
    1,279

    Error on Function with Array

    Hi to All
    I am a new user of C++ an d I need help.
    this is part of my program:


    #define ADIM 5
    ...

    char *otherString(char *Strings);
  23. Replies
    4
    Views
    1,946

    Hi, Thank You for fast reply. Please, what is...

    Hi,
    Thank You for fast reply.
    Please, what is vector of vectors ?
    Have You a sample or a link, in order to learn this concept ?

    Best Regards
  24. Replies
    4
    Views
    1,946

    About an indefinite matrix

    Hi to All,

    I need to fill a matrix as this:

    char mat [N] [N]
    N is an integer, that I don't know.
    In my program I have a construct for its Input as this.

    cin >> N;
  25. Replies
    4
    Views
    1,296

    Yes, I can use this. Thank You. Nino

    Yes, I can use this.

    Thank You.
    Nino
Results 1 to 25 of 26
Page 1 of 2 1 2