Beginners - March 2021 (Page 3)

Convert Bar to PSI prssure
 
how to Convert Bar to PSI pressure using minimum ram. i have a small ram micro controller with some...
[5 replies] Last: Just multiply by the conversion factor. It should be only 1-2 machine ... (by dhayden)
Using template to implement Singly Linked List
 
Hi guys, I start learning data structure now. About the code , the VS compiler give me this error : ...
[9 replies] Last: I got a new message from my teacher. Other student have the same issue... (by qtngmin)
by NiceS
Replacing int type variable in text file
 
Initially i have a structure array store all of the data from the text file. Now i want to checkout ...
[5 replies] Last: You can read in the whole file into say a vector of some struct, modif... (by seeplus)
by ra99t
std::isspace in the exemple on the std::istream::sentry page
 
I was running the example code on std::istream::sentry page and I didn't understand why std::isspace...
[2 replies] Last: Now it makes sense. Thank you dutch! (by ra99t)
by bstroe
Add character
 
I want to make a function “addChars” that displays after each vowel "*" It must change the vari...
[1 reply] : Try: #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include ... (by seeplus)
how to blink multiple led in c
 
hi to all i am new in programming. i write a code in c. but problem how to multiple led blink in c ...
[5 replies] Last: ok thanks. i will try (by jack micro)
Graph problem
 
Hello, I'm having a very hard time solving this problem My work is to read from the text file, appl...
[10 replies] Last: Never mind, I figure it out. (by NormalUser1234)
Need Help with School Coding Question
 
Hi all. I've been working on this problem for a week but just can't crack it. I'm very new to c++ a...
[7 replies] Last: #include <iostream> #include <iomanip> #include <string> #include <ve... (by lastchance)
Skipping blank lines
 
Hello! I'm having troubles reading an input file that has three columns of numbers. Some of the valu...
[3 replies] Last: Thank u! it worked (by panconcafe)
Help Understanding this code sample
 
I saw this on Stack Overflow and wanted to understand it a bit more. void Tree::insert(int d...
[5 replies] Last: Nevermind, I've figured it out...it has to do with the ?: operator. Th... (by KittyIchigo1)
by NiceS
Trouble reading text file data
 
int readEmp(EMPLOYEE e , int size) { ifstream inFile; int numEmp = 0; inFile.open("employe...
[4 replies] Last: Use >> ws instead of .get() as .get() assumes only 1 white-space where... (by seeplus)
by bstroe
Turn uppercase to lowercase
 
I want to turn uppercase to lowercase and vice versa. Input: Acesta EsTe un SIR Output: aCESTA eStE ...
[5 replies] Last: Flipping a C string's case using iterators, an algorithm, a lambda and... (by deleted account xyzzy)
abstract class
 
I am trying to declare in main() an object of class var1, yet an error occurs stating '' cannot de...
[2 replies] Last: @coder777, thanks, will try (by MaxGreen)
Help with expected primary expression
 
I'm writing a code that calculates radius, area, and perimeter of a circle (the area and perimeter a...
[2 replies] Last: Consider: #include <iostream> #include <string> #include <iomanip> ... (by seeplus)
BST overload assignment operator
 
Hello everyone, I'm currently trying to implement an overload assignment operator for my homework. I...
[6 replies] Last: Assuming that the copy constructor and destructor work OK, then assign... (by seeplus)
by chipp
what's the difference between \r and \n?
 
i have a simple testing prog to enter password with just display asterisks, just like the ordinary p...
[16 replies] Last: [quote=seeplus] For a background on ASCII, see https://en.wikipedia.or... (by chipp)
by ErikDz
'filesystem' is not a namespace-name
 
Why does it say filesystem is not a namespace-name?? #define _WIN32_WINNT 0x0500 #include <Wi...
[9 replies] Last: @jlb, Yeah, I figured something like that. Guess I should start looki... (by JRManx)
by elsie
Error Message
 
I tried to write a program and I get the message "error on line 28"(its a 15 line program and it doe...
[1 reply] : Hello elssie, Please post the complete program that you are using. It... (by Handy Andy)
Not sure how to call a function with parameters in a function with no parameters
 
I'm writing a binary search tree project for school, and we have a "clear()" function that is suppos...
[1 reply] : You just call the helper from clear() with the root: clearTreeHelper(... (by dutch)
% not usable on double options?
 
I now understand % is not usable on double values, is there anyway around this because if I set the ...
[1 reply] : Possibly https://en.cppreference.com/w/cpp/numeric/math/fmod But it re... (by dutch)
March 2021 Pages: 12345... 13
  Archived months: [feb2021] [apr2021]

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