General C++ Programming (Page 5)

Float Point
#include <stdio.h> int main() { float a=fabsf(0.7); if (a<0.7){ printf("C"); ...
[3 replies] Last: a fairly standard thing to do is if( fabs(a-b) < eps) //they are effe... (by jonnin)
Custom function in header issue
Test.h #ifndef _TEST_H #define _TEST_H class Test { public: void test(); }; #endif //...
[2 replies] Last: Ok thank you I will try that :) (by FlamingBurrito15)
Maze Generator Issue
My issue is on my main function: void generateMaze(string maze ) { int sCell ; getStarterCell...
[1 reply] : duplicated (by ne555)
error with using namespace std
the program runs well for this header file. #pragma once #include"birthday.h" #include<string> using...
[6 replies] Last: clang++ emits a very clear diagnostic. MinGW64 6:38am /r/code/test ... (by JLBorges)
C++ coding on android?
Hello I want to code c++ on my android (because my laptop is not working) and I am trying to find an...
[2 replies] Last: Ok thanks I will try that (by FlamingBurrito15)
return C++ vector of objects in csv file
Hello, I need your help for return C++ vector of objects in csv file, I have the function below and...
[3 replies] Last: Something along these lines, perhaps: #include <iostream> #include <s... (by JLBorges)
Update function wont trigger
Using latest version of visual studio as of 9/02/18 on windows 10 Hey guys so basically im wonde...
[1 reply] : A user can enter their name, then hit return and get a list of options... (by CPPAWhile)
by geo28t
bool isPalindrome( string s ) { bool result = true; size_t begin = 0; size_t end = s...
[3 replies] Last: Not the most efficient solution but std::mismatch(std::begin(value)... (by elohssa)
Largest prime number program
I am supposed to create a program where you enter a number and the program tells you the largest pri...
[2 replies] Last: (by lastchance)
error: reference to non-static member function must be called
How would I go about to fix this error? The error occurs at line 60 with the message "error: referen...
[3 replies] Last: Please STOP deleting your questions after you've got an answer. It ru... (by MikeyBoy)
Grade Average
hi! i need a little help with this assignment from school. i have most of the parts done but i have ...
[3 replies] Last: okay so I tried it and i got it to work the way i want it. thanks doug... (by kristal630)
by youra
Hi all, I have the following code: there is a comment that indicates changes to be made depending ...
[2 replies] Last: Thank you for your respense, I had the following error when i execute... (by youra)
by sreich
Determine the higher of 2 numbers
The following program has an error but I can't figure out what it is. The output should look like th...
[2 replies] Last: you are callin fmin and fmax with uninitialized data. They look like ... (by jonnin)
[3 replies] Last: It works by magic. First you run the compilator to turn your code in... (by doug4)
Why do we need VoidT to enable SFINAE ?
Hi, I don't get it. Why do we need VoidT to enable SFINAE in the following code: // helper ...
[6 replies] Last: When I made the post, I hadn't noticed that elohssa had already answer... (by JLBorges)
chained list
hello, I develop under CodeBlocks 17.12, I want to make a chained list. That is the use of Class an...
[1 reply] : I can handle written French passably... ( technical written French, l... (by Duthomhas)
How to automatically generate and store a Matrix with same diagonal elements
Hi guys, I am new to programming. Can you please help me with this. Okay, so I need to generat...
[4 replies] Last: Something like this, perhaps: #include <iostream> #include <array> #... (by JLBorges)
I need help with this, I am supposed to write flight information to file and then output the informa...
[7 replies] Last: @ CPPAWhile , austin9398 Some other things to do, maybe the apply... (by TheIdeasMan)
lock weak_ptr to const shared_ptr reference
Got a little confusion here on how auto works. I've got this test program blow. I'm taking the re...
[1 reply] : Binding a temporary object to a const reference extends the life time ... (by Peter87)
Addition number to constuctor
Can anyone tell me how this code works?Thanks #include<iostream> using namespace std; struct A{...
[3 replies] Last: Thanks a lot,now I understand (by jackJames)
Pages: 1... 34567... 18
  Archived months: [dec2017]

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