General C++ Programming (Page 3)

how do i find chord's length?
 
So i need to do a project where i have following information in coordinate plane: 1. circle's cente...
[7 replies] Last: (Based on @againtry's link) #include <iostream> #include <cmath> usi... (by lastchance)
Prototype error
 
Everytime I think I have these prototypes figured out I realize I don't. I am getting a c2082 redifn...
[15 replies] Last: I did read thanks for all you help (by briancb2004)
Preferential include path in CMake
 
Dear all, I use CMake for build system, and define include path of libraries via link_directories...
[3 replies] Last: If you use quotes instead of angle brackets the compiler will first lo... (by helios)
Stack not displaying first letter of elements
 
Hey ya'll I'm trying to print out the elements in my stack and for some reaon the first letter of ea...
[4 replies] Last: void StackStory::displayStacks() { if (isEmpty()) cout <... (by seeplus)
Restart Loops in C++
 
I have a simple question in "theory" I have the following code, that is running for few thousands it...
[4 replies] Last: if file exists: ?? you read the values in and kick off from where you... (by jonnin)
Sorry not truly C++, how set PIC flag in build by Cmake command line
 
How to set PIC flag in build by use of cmake command line? as in gcc is the option -fPIC e.g. cmake ...
[1 reply] : From a simple Google search for "cmake fPIC": https://stackoverflow.c... (by MikeyBoy)
Thread safety of accessing elements in TBB's containers
 
Dear C++ experts This is a fundamental question. I often use tbb's containers (tbb::concurrent_vec...
[5 replies] Last: Dear coder777 Thank you for your advice. When you put line 5/6 in t... (by Mitsuru)
Valgrind: Conditional jump or move depends on uninitialised value(s) (1,2)
 
Hello, I am running into an issue with Valgrind with c++ It is yelling when initializing multidimen...
[27 replies] Last: @TheIdeasMan Thank you for the great advice! The code is working now, ... (by JamieAl)
Help with baseball project
 
**In this project I had to write a program which calculates and displays a baseball player's batting...
[2 replies] Last: thank you for your help! I've been stuck on this for a while and it wa... (by fonzeyy)
How to acces unity libraries
 
How can i acces unity c# libraries and see what function they have ? i know this isn't a c++ questi...
[2 replies] Last: thanks (by corepower)
Criteria enforcing programm
 
The file format the program will read from First Name : john Last Name : peter Ge...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/270970/ (by againtry)
how to define string_cast<std::string>( std::wstring)?
 
Hi, I need to define a template function that can be specialize for changing strings to wstrings ...
[1 reply] : How about this: template<typename T, typename U> T string_cast(cons... (by JUANDENT)
by mnm71
How to delete first line of text file?
 
I have a thread that write some float in text file every 1 second,I want to control size of file and...
[4 replies] Last: In this case it would be most sensible to just keep the last 60 values... (by dutch)
write a console little game (1,2)
 
help me write please I need to hand over the work in 2 days, and I work every day. The task itself: ...
[25 replies] Last: order actually (by svininka)
getline
 
hey guys so im trying to have a user enter a word and it finds the anagram and as long as the user k...
[5 replies] Last: int main() { hw h; for (string a; cout << "enter a word (press en... (by seeplus)
Going about creating a Truth Table Generator
 
I am having trouble thinking about how to make it. I'll like the user to enter a compound propositio...
[3 replies] Last: https://linux.die.net/man/1/eqntott (by mbozzi)
Black Jack Project
 
The hotel owner wants to update the blackjack game you previously created to make it faster. Wri...
[8 replies] Last: using vs writing. I believe they probably DO want you to make your o... (by jonnin)
by mnm71
How to sum some float
 
In this code I want to read last n lines that contain float numbers and get an average of them, I g...
[1 reply] : #include <iostream> #include <fstream> #include <vector> #include <n... (by seeplus)
Need help solving an issue in my entity component system.
 
I need some help fixing an issue in my entity component system. So I have a registry class which con...
[2 replies] Last: @helios No, ecs::Entity is a type alias for std::uint32_t (by itsArtem)
Calculate the overlapping area of two rectangles
 
Hi! I have an assignment due to tomorrow at noon and I tried figuring it out myself but I failed...
[6 replies] Last: LOL, I didn't do anything, but there we go :) (by againtry)
Pages: 12345... 11
  Archived months: [sep2020]

Cannot post in this page. To post a new message, go to the first page.