Beginners - March 2021 (Page 5)

How to I replace characters in a char[]
 
I have this char* POnlinee; POnlinee = getenv(transferFolder); // this will result in C:\te...
[12 replies] Last: Yes, that's exactly what the System:: nonsense is. But a project shoul... (by Ganado)
error expression must be a modifiable value
 
I am trying to read a value from the set variables, but for some reason, I cannot seem to change tr...
[6 replies] Last: you are making it hard for yourself using C-style strings. are you al... (by jonnin)
error LNK2019: unresolved external symbol (templated functions)
 
#include <iostream> template <class T> struct Vehicle { T num = -1; Vehicle(T n) : num...
[2 replies] Last: [quote=seeplus] Ah simple enough. Thanks! (by ElusiveTau)
Cryptography
 
Hello everyone, I have a project and I want to open a locked zip file. I was wondering if there i...
[5 replies] Last: zlib is easy to use. In c++, I mean, its available ... its been in c... (by jonnin)
Issue with String Concatentation
 
I'm trying to concatenate a bunch of strings into a single string within a function, which I can the...
[7 replies] Last: L26 - don't return by ref replace string& salary_new(...) with string ... (by seeplus)
by L67GS
fstream odd behavior, very odd!
 
This one is a head scratcher! This little block of code works just fine on a Linux X86 Box with gcc...
[9 replies] Last: I'm a novice developer, and did implement some error reporting to the ... (by L67GS)
by kg88
Doing a pushback with an array pushback value is not showing
 
Hi I'm trying to do a pushback in a function with an array. Not quite sure why the pushback value i...
[2 replies] Last: Thanks Ganado, you are a lifesaver! I have no idea why it still compil... (by kg88)
Problem with Vector Subscript Out of Range
 
I'm doing the following block of code to simply read a .csv file of 11 columns and 10 rows. The aim ...
[12 replies] Last: I'm constantly getting the following errors when debugging: invalid_a... (by bellerophonbhattu)
by kmce
set class template / Compare?
 
Hello, I am reading a STL book, and going over a section about sets to learn more about them. Ive no...
[2 replies] Last: https://en.cppreference.com/w/cpp/keyword/typename typename can be ... (by keskiverto)
Separate Chaining Hash Functions
 
aaa
[no replies]
by solo88
minGW 64 bit compiler acting weird
 
hello... i've noticed something strange when i compile a project with external libraries like boost ...
[5 replies] Last: which one do you recommend for me to use? I personally use both VS 2... (by deleted account xyzzy)
by Ossie
Image on builded solution
 
Hi, I'm trying to make my builded solution have a image/logo, it gets build as a .exe and I want it ...
[1 reply] : On Windows, the executable's icon is specified using a resource file. ... (by helios)
Doing a Salary Structure Program but While Loop isn't doing what I want it to do
 
I am working on a salary restructuring program with the aim of moving all current salaries to a unif...
[2 replies] Last: I finally got that, so I circumvented that by creating a new function ... (by bellerophonbhattu)
by Ch1156
Searching for duplicate vector items
 
I need to be able to search my vector so that duplicate items arent added. So If a potion is added a...
[13 replies] Last: Awesome i got it working, thank you all for your help. (by Ch1156)
Replacing words in a string
 
I want to write a program that replaces words in a string. For example, if the user inputs "hi" as a...
[5 replies] Last: #include <iostream> #include <string> #include <sstream> int main()... (by seeplus)
Set Implementation Project Sanity Check
 
Hi, I know asking for help with homework is usually frowned upon here, but considering the fact that...
[3 replies] Last: Are you aware that a std::set exists? See: http://www.cplusplus.com... (by dakotad8218)
by solo88
an eliza program code i found on the net.
 
hello. i was curious and found a code for a basic eliza chatbot in c++ three files total. with use ...
[5 replies] Last: succeeded #include <iostream> #include <string> #include <fstream> ... (by solo88)
by siid14
Abort trap : 6
 
I got an error "Abort trap: 6" on my code. I have been looking through it to find how to fix it. I t...
[6 replies] Last: The .close() calls in OP's arrayToFile and fileToArray functions are e... (by Ganado)
by kmce
erasing from a set
 
Hello I am learning from a tutorial about sets, and erasing from them but not using the std::erase_i...
[10 replies] Last: There's loads of 'tutorials' available on the web and 'example code' o... (by seeplus)
Karel the Robot
 
If anyone has done this Karel lab before I would greatly appreciate some help on it. Kar...
[3 replies] Last: what's that. ___ hiim ducking from https://www.khosango.com/ (by khosango)
March 2021 Pages: 1... 34567... 13
  Archived months: [feb2021] [apr2021]

This is an archived page. To post a new message, go to the current page.