Remember
Register
Search With
Seek4Info.com
Programming & Software Q&A | CollectiveSolver
Questions
Tags
Users
Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.
Contact: aviboots(AT)netvision.net.il
Most popular tags
python
c
java
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
vbnet
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
kotlin-string
bash
swift-string
c-string
cpp-string
go-string
php-string
c#-string
cobol
java-string
vbnet-string
rust-string
python-string
scala-string
cpp-vector
f#
opengl
javascript-string
pascal-array
typescript-string
swift-array
c-array
php-array
javascript-array
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
sdl3
c-matrix
cpp-array
c#-list
vbnet-list
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
angularjs
split-string-into-array-by-delimiter
transpose-matrix
binary-search-algorithm
dot-product-two-arrays
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
remove-stop-words-string
check-whether-floating-point-variable-is-integer
longest-substring-without-repeating-characters
calculate-volume-cube
divide-given-amount-into-bills-coins
convert-decimal-number-to-rational-number
count-non-overlapping-instances-substring-in-string
print-floyds-triangle
Disclosure:
My content contains affiliate links.
Recent questions tagged CPP
43,161
questions
56,039
answers
573
users
Recent questions tagged CPP
1
answer
13
views
How to select N unique random values that appear exactly once in an existing vector with C++
asked
2 days
ago
by
avibootz
cpp
cpp-n-unique-random-values-appear-once-in-vector
n-unique-random-values-appear-once-in-vector
1
answer
23
views
How to select N unique random indices from an existing vector in C++
asked
3 days
ago
by
avibootz
cpp
cpp-select-n-unique-random-indices-vector
select-n-unique-random-indices-vector
1
answer
26
views
How to find common words in two strings with C++
asked
4 days
ago
by
avibootz
cpp
cpp-string
cpp-find-common-words-two-strings
find-common-words-two-strings
1
answer
24
views
How to compute the factorial of a number greater than 20 in C++
asked
4 days
ago
by
avibootz
cpp
cpp-compute-factorial-of-number-greater-20
compute-factorial-of-number-greater-20
1
answer
25
views
How to shorten a URL in C++
asked
6 days
ago
by
avibootz
cpp
cpp-shorten-url
shorten-url
2
answers
36
views
How to generate all trigrams (3-character sequences) from a given word in C++
asked
6 days
ago
by
avibootz
cpp
cpp-generate-all-trigrams-given-word
generate-all-trigrams-given-word
2
answers
49
views
How to compare two float vectors for exact equality in C++
asked
Sep 8
by
avibootz
cpp
cpp-compare-two-float-vectors-exact-equality
compare-two-float-vectors-exact-equality
1
answer
40
views
How to compare two float vectors using a tolerance in C++
asked
Sep 8
by
avibootz
cpp
cpp-compare-two-float-vectors-tolerance
compare-two-float-vectors-tolerance
1
answer
42
views
How to split text without spaces into a list of words using dictionary-based segmentation in C++
asked
Sep 6
by
avibootz
cpp
cpp-split-text-without-spaces-into-words-dictionary
split-text-without-spaces-into-words-dictionary
1
answer
57
views
How to convert numbers from 0 to 999,999,999,999,999 (up to 999 trillion) into English words in C++
asked
Sep 5
by
avibootz
cpp
cpp-convert-numbers-0-999999999999999-english-words
convert-numbers-0-999999999999999-english-words
1
answer
35
views
How to convert numbers from 0 to 999,999,999 into English words in C++
asked
Sep 5
by
avibootz
cpp
cpp-convert-numbers-0-999999999-english-words
convert-numbers-0-999999999-english-words
1
answer
35
views
How to generate all subsets of a given set using an iterative algorithm in C++
asked
Sep 5
by
avibootz
cpp
cpp-all-subsets-set
all-subsets-set
2
answers
42
views
How to create a binary tree and print the tree with a pretty‑printer that draws branches in C++
asked
Sep 5
by
avibootz
cpp
cpp-create-binary-tree-print-draws-branches
create-binary-tree-print-draws-branches
1
answer
43
views
How to parse a table into a binary tree in C++
asked
Sep 4
by
avibootz
cpp
cpp-parse-table-into-binary-tree
parse-table-into-binary-tree
1
answer
42
views
How to implement a queue using two stacks in C++
asked
Sep 4
by
avibootz
cpp
cpp-implement-queue-two-stacks
implement-queue-two-stacks
1
answer
38
views
How to declare, initialize, and print a complex data structure in C++
asked
Sep 3
by
avibootz
cpp
cpp-declare-initialize-print-complex-data-structure
declare-initialize-print-complex-data-structure
1
answer
38
views
How to declare, initialize, and print a medium complexity, varied, feature‑rich data structure in C++
asked
Sep 2
by
avibootz
cpp
cpp-declare-initialize-print-medium-complexity-data-structure
declare-initialize-print-medium-complexity-data-structure
1
answer
54
views
How to sort a vector of structs that contain nested structs using custom comparison logic in C++
asked
Aug 31
by
avibootz
cpp
cpp-sort-vector-of-structs-contain-nested-structs
sort-vector-of-structs-contain-nested-structs
1
answer
66
views
How to find the N most frequent non‑stopwords in a text in C++
asked
Aug 30
by
avibootz
cpp
cpp-n-most-frequent-non-stopwords-text
n-most-frequent-non-stopwords-text
1
answer
49
views
How to find the starting index of all occurrences of a word in a string in C++
asked
Aug 29
by
avibootz
cpp
cpp-find-starting-index-all-occurrences-word-string
find-starting-index-all-occurrences-word-string
1
answer
30
views
How to find the 3 products with the minimum cost from a given array in C++
asked
Aug 29
by
avibootz
cpp
cpp-products-with-minimum-cost-from-array
products-with-minimum-cost-from-array
1
answer
43
views
How to print a tabular representation of memory sizes in C++
asked
Aug 28
by
avibootz
cpp
cpp-tabular-representation-memory-sizes
tabular-representation-memory-sizes
1
answer
47
views
How to convert any digital storage unit into all others (B, KB, MB, GB, TB, PB, EB, ZB, YB) in C++
asked
Aug 27
by
avibootz
cpp
cpp-convert-any-digital-storage-unit-into-all-others
convert-any-digital-storage-unit-into-all-others
1
answer
40
views
How to write the Tic-Tac-Toe game in C++
asked
Aug 26
by
avibootz
cpp
cpp-tic-tac-toe-game
tic-tac-toe-game
1
answer
51
views
How to initialize different types of arrays to zero in C++
asked
Aug 26
by
avibootz
cpp
cpp-initialize-array
cpp-initialize-different-types-of-arrays-to-zero
initialize-different-types-of-arrays-to-zero
1
answer
46
views
How to initialize an array of std::atomic<int> to zero in C++
asked
Aug 26
by
avibootz
cpp
cpp-initialize-array
cpp-initialize-array-std-atomic-int-to-zero
initialize-array-std-atomic-int-to-zero
1
answer
53
views
How to generate a random RGBA color and opacity in C++
asked
Aug 25
by
avibootz
cpp
cpp-generate-random-rgba-color-opacity
generate-random-rgba-color-opacity
1
answer
62
views
How to generate a series of unique HEX colors in C++
asked
Aug 23
by
avibootz
cpp
cpp-generate-series-unique-hex-colors
generate-series-unique-hex-colors
1
answer
101
views
How to write the equivalent of Delphi's TStringList in C++
asked
Aug 22
by
avibootz
cpp
cpp-equivalent-delphi-tstringlist
equivalent-delphi-tstringlist
2
answers
72
views
How to print the numbers 0 to 31 by changing 1 bit each time in C++
asked
Aug 21
by
avibootz
cpp
cpp-print-0-31-changing-1-bit-each-time
print-0-31-changing-1-bit-each-time
1
answer
64
views
How to find the first and last 10‑digit prime numbers in C++
asked
Aug 21
by
avibootz
cpp
cpp-first-last-10-digit-prime-numbers
first-last-10-digit-prime-numbers
1
answer
61
views
How to find the next number in the series 1, 8, 27, 64, 125, 216 using C++
asked
Aug 20
by
avibootz
cpp
cpp-find-next-number-in-series-1-8-27-64-125-216
find-next-number-in-series-1-8-27-64-125-216
1
answer
72
views
How to generate N random 1s in a zero-based matrix with C++
asked
Aug 19
by
avibootz
cpp
cpp-matrix
cpp-generate-n-random-1-zero-based-matrix
generate-n-random-1-zero-based-matrix
3
answers
120
views
How to initialize a vector with a range of numbers in C++
asked
Aug 17
by
avibootz
cpp
cpp-initialize-vector-range-of-numbers
initialize-vector-range-of-numbers
1
answer
80
views
How to do modulo multiplication for 64‑bit values without using BigInteger in C++
asked
Aug 16
by
avibootz
cpp
cpp-modulo-multiplication-64-bit-values-without-biginteger
modulo-multiplication-64-bit-values-without-biginteger
1
answer
96
views
How to remove every N‑th element from a vector in C++
asked
Aug 15
by
avibootz
cpp
cpp-remove-every-n-element-vector
remove-every-n-element-vector
1
answer
85
views
How to build sparse array in C++
asked
Aug 14
by
avibootz
cpp
cpp-build-sparse-array
build-sparse-array
1
answer
95
views
How to check if a given vector is a sparse vector in C++
asked
Aug 14
by
avibootz
cpp
cpp-check-sparse-vector
check-sparse-vector
1
answer
76
views
How to generates all valid permutations of parentheses for a given n in C++
asked
Aug 14
by
avibootz
cpp
cpp-generates-all-valid-permutations-of-parentheses-given-n
generates-all-valid-permutations-of-parentheses-given-n
1
answer
101
views
How to extract and sort numbers from a string containing numbers and text in C++
asked
Aug 12
by
avibootz
cpp
cpp-extract-sort-numbers-string
extract-sort-numbers-string
1
answer
91
views
How to convert radians to degrees and degrees to radians in C++
asked
Aug 11
by
avibootz
cpp
cpp-convert-radians-degrees-degrees-radians
convert-radians-degrees-degrees-radians
1
answer
88
views
How to find the N smallest values in a 2D vector in C++
asked
Aug 9
by
avibootz
cpp
cpp-find-n-smallest-values-2d-vector
find-n-smallest-values-2d-vector
1
answer
78
views
How to generate all possible 3X3 magic squares in C++
asked
Aug 9
by
avibootz
cpp
cpp-generate-all-possible-3-3-magic-squares
generate-all-possible-3-3-magic-squares
2
answers
111
views
How to sort a vector with a single loop in C++
asked
Aug 8
by
avibootz
cpp
cpp-sort-vector-with-single-loop
sort-vector-with-single-loop
2
answers
112
views
How to remove extra whitespace from a string in C++
asked
Aug 7
by
avibootz
cpp
cpp-remove-extra-whitespace-string
remove-extra-whitespace-string
1
answer
96
views
How to calculate the distance between two latitude-longitude points in C++
asked
Aug 6
by
avibootz
cpp
cpp-distance-between-two-latitude-longitude-points
distance-between-two-latitude-longitude-points
1
answer
93
views
How to convert a decimal to a long in C++
asked
Aug 6
by
avibootz
cpp
cpp-convert-decimal-to-long
convert-decimal-to-long
1
answer
82
views
How to generate a random 3×3 magic square in C++
asked
Aug 6
by
avibootz
cpp
cpp-generate-random-3-3-magic-square
generate-random-3-3-magic-square
2
answers
106
views
How to generate a random 4×4 binary magic square (using only 0 and 1) in C++
asked
Aug 5
by
avibootz
cpp
cpp-generate-random-4-4-binary-magic-square-only-0-1
generate-random-4-4-binary-magic-square-only-0-1
1
answer
72
views
How to search a string using bitwise operators C++
asked
Aug 5
by
avibootz
cpp
cpp-search-string-using-bitwise-operators
search-string-using-bitwise-operators
Page:
1
2
3
4
5
6
...
83
next »
...