Search:

Type: Posts; User: lilostitch382

Search: Search took 0.01 seconds.

  1. How to split a string on the comma to get an array with 3 strings using C Programming

    Hi, I need your help in solving my problem. This is what I have to do:

    Take for example, I have this string: David Lai, 91234567, Dav

    I need to split the commas and store "David Lai" "91234567"...
  2. Replies
    3
    Views
    989

    Solved

    Hi All,

    I have managed to solve the problem.Thank for your reply.
  3. Replies
    3
    Views
    989

    Problem with pointer

    Hi all,

    I have the following code:


    #pragma once
    #include <iostream>
    using namespace std;
    class Bill{
  4. Replies
    3
    Views
    1,012

    Thank for the reply

    Thank for the reply
  5. Replies
    3
    Views
    1,012

    Help with arrays

    Hi

    I have three array which is array1,array2 and array3 as shown below:

    double array1[3] = "1.6,1.3,1.9"
    double array2[5] = "2.1,3.6,4.6,8.2,9.9"
    double array3[5];

    I would like to extract...
  6. Replies
    10
    Views
    2,471

    Problem solved

    Hi all

    Thank for your reply and help.I have solved it by using stringstream as suggested by laserlight .

    Cheer!1
  7. Replies
    10
    Views
    2,471

    assign string to int array

    Hi all,

    I am new to C++.Any help would be appreciated.

    I have the following code:

    int myArray[20];
    string str= "1,2,3,8,10,12";

    I would like to assign str to myArray in that a way that...
Results 1 to 7 of 7