General C++ Programming (Page 21)

C++ selection sort issue
 
Hello.. I am currently having an issue with the SelectionSort function as it is not properly sorting...
[1 reply] : Divide and conquer. #include <iostream> std::size_t position_of_sma... (by JLBorges)
Declaring normal distribution generator in .h file
 
I have a member function that I want to generate a lot of random numbers, but I don't want to initia...
[2 replies] Last: > I was thinking I could declare the random number generator in the .h... (by JLBorges)
I need help with my box
 
I have 70 perecent of the project coded out but i just need help asking the user for each specific f...
[no replies]
Why is my switch case not looping?
 
This is my first time using the forum so im sorry for the bad format but please if someone can assis...
[3 replies] Last: error: '::main' must return 'int' your inner loop needs the variable... (by jonnin)
Operations on a switch statement
 
¡Hi guys, I am trying to figure out if I can do operations inside the switch statements since I am ...
[1 reply] : See http://www.cplusplus.com/forum/beginner/223243/ (by Ganado)
by Clos
display the first n prime numbers
 
hello i am stuck and need some help. I am trying to make it so it displays the first n prime numbers...
[11 replies] Last: Look at the loop in the isPrime() function. bool isPrime(int k) { ... (by Chervil)
by slei
cpp sourcefile without #include headers?
 
hey, I've recently worked on a project where i've seen multiple .cpp source files without any heade...
[10 replies] Last: It seems like we use precompiled header files, and we use Jam build to... (by slei)
Running a simple C++ program combined with a web interface
 
Dear All, I have some C++ code I would like to run on a web server. The C++ code itself is attach...
[2 replies] Last: Figures it out - it is certainly possible - a web server normally supp... (by erixliechtenstein)
by mojish
bug or what?
 
int a=3; int ans=a+a++; output: 7 ------------------------------------- int a=3; int ans=a+a+a+...
[2 replies] Last: > why?? Undefined behaviour. See: http://en.cppreference.com/w/cpp/la... (by JLBorges)
validation on double and string
 
how to i validate the user's input is double or string? i want know how to validate double from the...
[8 replies] Last: With some templating you can get it to work for other types. Better as... (by lastchance)
wont compile
 
#include "stdafx.h" //#include "Cube.h" //#include <iostream> //using namespace std; // ...
[2 replies] Last: In MenuClass::QueryUser, you're missing a } to terminate your switch s... (by AbstractionAnon)
by dan042
Function error
 
Write a program which will calculate the value of x using the following options x=p(1+k)^r where k...
[2 replies] Last: x={p(1+k)^r}; In addition, the ^ operator does not do what you th... (by doug4)
Help Me With This Roulette
 
hello my name is mike and I am doing a simulation of a roulette .. that is, it is an American roulet...
[3 replies] Last: it's not C#, but C++ / CLR (.NET) Ah, OK. Thanks for the correction... (by MikeyBoy)
Filtered Range-Based For Loops
 
I found myself recently curious as to why the standard library doesn't have a way to filter values f...
[7 replies] Last: Boost.Iterator library has facilities to ease the implementation of di... (by JLBorges)
Vectors
 
I am trying to get my class to go into a vector I am using an older version of C++ and this was an o...
[10 replies] Last: Sorry about that when I posted I didnt refresh the page but it works p... (by Shiro12)
C++ array sorting
 
Hello.. I am stuck on how to get this started. Below is the prompt. Next, you will create another...
[1 reply] : This is only a minor complication of previous assignments. It tricks y... (by Duthomhas)
Can someone explain this output?
 
Hey guys, so I have this code from a question in my book, and i'm having trouble following along it'...
[2 replies] Last: It's a pretty confusing example, agreed, and it was a multi-part quest... (by Falkner92)
Append a value to array meaning ?
 
Please explain me the meaning of the below question. I will solve it myself but just want to underst...
[4 replies] Last: Please give some hint how to solve this problem. Approach it in smal... (by Chervil)
Wont compile
 
#pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> #include <iostream...
[no replies]
by zesan
How to handle algorithm ?
 
Working on it, if not solved I will again get back.
[no replies]
Pages: 1... 1920212223... 29
  Archived months: [sep2017]

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