Search results

View (previous 20 | ) (20 | 50 | 100 | 250 | 500)
  • virtual std::string singular() const = 0; virtual std::string plural() const = 0; ...
    7 KB (811 words) - 20:28, 1 September 2022
  • void run( std::string filename, bool lg ) { std::ofstream o( "log.txt", std::ios_base::trunc ); ...
    6 KB (659 words) - 08:37, 1 September 2022
  • std::default_random_engine rnd_eng(std::random_device{}()); std::string descriptive_join(const std::vector<std::string>& items) { ...
    16 KB (1,717 words) - 11:48, 30 August 2022
  • std::array<Room_number,20> random_room_numbers; std::random_device rd; ...
    13 KB (1,498 words) - 15:15, 22 October 2018
  • const std::string s = "CDHS", v = "A23456789TJQK"; friend std::ostream& operator<< (std::ostream& os, const card& c ) { ...
    9 KB (1,072 words) - 08:10, 31 August 2022
  • std::cout << "+----------------------------------------+"; std::cout << "| GAME OVER |"; ...
    8 KB (783 words) - 10:56, 30 August 2022
  • ...Ada 83''' refers to the first language version defined by the [[ANSI]]/MIL-STD-1815A-1983 standard, later also by the [[ISO]]-8652:1987 standard. The lang ...
    259 bytes (37 words) - 12:43, 18 August 2008
  • std::string pseudocode; ...
    372 bytes (58 words) - 07:13, 25 January 2010
  • const std::string directions[] = { "north", "south", "east", "west", "up", "down" }; const std::string objectName[] = { "nothing", "gold", "ladder", "sledge" }; ...
    19 KB (2,288 words) - 11:49, 30 August 2022
  • {{libheader|STL}}STL provides '''std::vector''', which behaves as a dynamically-resizable array. When an elemen Like simple arrays, '''std::vector''' allows the use of the [] operator, and once an element has been ...
    6 KB (785 words) - 17:45, 26 June 2018
  • ...hout typing anything), the program accepts source from std in. To end your std input, enter a blank line (completely blank, no whitespace). Source files d INPUT "Filename (blank to use std in)...? ", filename$ ...
    4 KB (539 words) - 11:02, 1 September 2022
  • int32_t index_of(const std::vector<std::string>& words, const std::string& word) { std::vector<std::string>::const_iterator iterator = std::find(words.begin(), words.end(), word); ...
    12 KB (1,645 words) - 18:50, 26 May 2024
  • use std::io::Write; std::io::stdout().flush().unwrap(); ...
    6 KB (658 words) - 08:39, 31 August 2022
  • <syntaxhighlight lang="ursala">#import std ...
    1 KB (180 words) - 10:26, 1 September 2022
  • // If allocation fails, "new" will throw a std::bad_alloc exception. throw std::runtime_error( "assignment failed, original data conserved" ); ...
    6 KB (641 words) - 15:55, 1 September 2022
  • ...about it. For arrays, the generally accepted way to go about it is to use std::vector. boost::array is another option, if you're willing to bring in a t .../code>, though the latter is preferred because it is type aware (and <code>std::vector</code> is often a better choice in practice AIUI). Still, all these ...
    3 KB (477 words) - 11:23, 16 November 2010
  • ...[[Java]] program accepts input from a file named by its first argument, or std in if no arguments are given. ...
    2 KB (213 words) - 10:16, 1 September 2022
  • std::ostream& operator<<(std::ostream& s,const set<T>& o) std::cout << "{"; ...
    30 KB (3,502 words) - 16:06, 29 August 2022
  • throw std::out_of_range("Index of input pin is out of range!"); throw std::out_of_range("Index of output pin is out of range!"); ...
    28 KB (2,796 words) - 19:59, 3 October 2011
  • use std::borrow::BorrowMut; use std::collections::{HashMap, HashSet}; ...
    18 KB (2,020 words) - 13:02, 30 August 2022
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)