Search
 
SCRIPT & CODE EXAMPLE
 

CPP

string class in c++

// C++ program to demonstrate array of strings using
// array of strings.
#include <iostream>
#include <string>
 
int main()
{
    // Initialize String Array
    std::string colour[4]
        = { "Blue", "Red", "Orange", "Yellow" };
 
    // Print Strings
    for (int i = 0; i < 4; i++)
        std::cout << colour[i] << "
";
}
Comment

string class cpp

click link at  source for good stuff
Comment

PREVIOUS NEXT
Code Example
Cpp :: Magical Doors codechef solution in c++ 
Cpp :: how to display score using SDL in c++ 
Cpp :: c++ union set q5 
Cpp :: check if string in vector c++ 
Cpp :: how to find the mean and standard deviation of trqiing dataset in pytorch 
Cpp :: CREDSCORE codechef solution 
Cpp :: is there anything like vector<intx[100] 
Cpp :: total sales in array c++ two dimensional array 
Cpp :: simple interest rate 
Cpp :: onactorbeginoverlap c++ 
Cpp :: dualSort 
Cpp :: c++ compile to msi 
Cpp :: print all chrchetrs of a string c++ 
Cpp :: max stack 
Cpp :: How to get the last element of an array in C++ using std::array 
Cpp :: how to code a segment tree in c++ 
Cpp :: program to find third smallest number c++ 
Cpp :: Fibonacci Series Program. in c++ 
Cpp :: open a url with dev c 
Cpp :: freeing array in c++ 
C :: c colour text 
C :: c check if file exists 
C :: c get time 
C :: C float division 
C :: %hd c 
C :: printf c float 
C :: 0/1 knapsack problem in c 
C :: c/c++ type format 
C :: right side of div 
C :: c program to find the factorial of a number 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =