General C++ Programming (Page 11)

by Dani95
find prime numbers in 2d array
Hi... How to find a prime numbers in 2d array and put the results in new array
[1 reply] : (by kbw)
Problem with Switch statement
Can someone explain to me what is wrong with this switch and how I can go about fixing it? class ...
[5 replies] Last: Appa... (by lastchance)
Binary Memory Stream?
Hello there! So basically I'm looking for functionality akin to std::ifstream and std::ofstream, bu...
[2 replies] Last: Someone on this forum (I don't remember who) provided a way to use str... (by doug4)
Can't make the object collide with the walls in my maze game.
Can anyone tell me how do I make my object stop as it approaches the wall. It goes through the wall ...
[3 replies] Last: I tried Ganado's code, it didn't work for me. I think something is mis... (by SamuelAdams)
code Blocks: C++ - how can i use the directX?
using Code Blocks on C\C++, how can i use the directx? i belive that i need install some libraries,...
[4 replies] Last: so by defauld i have the API. i did find some tutorials, but incomplet... (by Cambalinho)
by NBL
Functions C++ - Error in the output of my code
I was assigned this question: A Class of 40 students has received their grades for 5 exams (each ou...
[3 replies] Last: You need to seed the random number generator. Otherwise, random_shuff... (by doug4)
by oahz
What is a garbage value?
int a {0} ; a , a[-1], etc... will all produce "garbage values". Firstly, why does the "garbage ...
[6 replies] Last: > int a {0} ; > a , a[-1], etc... will all produce "garbage values". ... (by JLBorges)
by Quro
Initialize members
Hi, I'm trying to learn C++ but am stuck on understanding the concept of initializing members. I don...
[6 replies] Last: Thank you (by Quro)
by oahz
What is "Narrowing"
Or what is "Narrowing Conversion"?
[3 replies] Last: because narrowing conversions are permitted in copy-initialization and... (by Cubbi)
Buffer Overflow
Hi guys just to begin with this is not for malicious purposes but I just find the concept of buffer ...
[15 replies] Last: its like sql injection -- the program fires up and executes normally u... (by jonnin)
"#define"d, but undeclared!
Hello, In the .h file, there are #define statements like: #define variable1 0 #define variabl...
[1 reply] : First, isolate the problem. Write a separate program (if necessary) t... (by SSteven)
Using begin(string[]) in a class
Using begin(string ) in a class results in a compilation error: class S { string season; ...
[1 reply] : On line 15, the declared type of the array seasons is an array of u... (by JLBorges)
2d Array Shuffle only
I need to shuffle a 2d array 3X3 TicTacToe so all numbers 1-9 show up in the array but none twice on...
[5 replies] Last: If you're sure it shuffled on the first run, then it also shuffled on ... (by cire)
creating a password in C++
need help with a password checker I'm making #include "stdafx.h" #include <iomanip> #include <iost...
[1 reply] : just index the string. if(password.length() == guess.length()) for(x ... (by jonnin)
void value not ignored as it ought to be” - What is wrong?
I created a class "semaphore" with a method "reader" this way: void semaforo::reader(sem_t x, sem...
[2 replies] Last: with your explanation, I've been able to solve the problem, thank you ... (by anderezende)
by polip
struct and arrays
You are required to write a program for a magazine subscription company to handle their subscriptio...
[5 replies] Last: Thanks Chervil But I don't think my program satisfy all requirements f... (by polip)
by wtbe
Gross pay array
Hi everyone, I'm in the process of working on a program using void functions to get the gross pay...
[4 replies] Last: Hmm. It looks like for me to use void functions with arrays I need to ... (by wtbe)
Expression must be a modifiable lvalue
For some reason I can't get my addNewPurchase function to work. No matter which way I spin it, it wi...
[2 replies] Last: You are trying to assign the new value to the existing variable. The ... (by doug4)
Please help in breaking into functions
I have created this program which inputs from user. The loop breaks if the user enters 0. The the pr...
[9 replies] Last: that may be my fault. you can 'exploit' the sum function by calling ... (by jonnin)
trappings of stof()
Please tell me how to keep stof. Ive read it to be problematic. I am getting an error \src\mai...
[14 replies] Last: Right, thank you. (by technologist)
Pages: 1... 910111213... 18
  Archived months: [nov2017]

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