General C++ Programming - October 2017 (Page 5)

by helios
POD assignment with no effect?
 
struct RGB{ byte_t r, g, b, a; }; //#define DEFINE_ME auto pixels = (RGB *)void_pixel...
[13 replies] Last: It can be reproduced with MSVC 19.0 Original code - no optimisation: h... (by JLBorges)
by BJ19
What is wrong with my program? I need help.
 
#include <iostream> #include <iomanip> #include <string> using namespace std; void welcome(); void...
[5 replies] Last: double calcTotalPrice(int grade ,double squareFeet ) just like you ha... (by jonnin)
Graphical console apps
 
Hi all, What I know is that for graphics programming using C++ we need a library, whether that libr...
[4 replies] Last: OpenGL is probably too low level to be practical. Yes, you're right. ... (by Frank14)
by Ozzy69
Can u help solve this problem in c++?
 
Make a program in C ++ to calculate the quadratic mean of n values entered by the user. The quadrati...
[1 reply] : soma += x^2; Do you know the meaning of ^ in C++ ? It's a bitwise o... (by Thomas1965)
VB.Net/C++ Injector dont inject
 
Here is the code please help me its for a cheat loader for openarena and some skype tools Imports...
[1 reply] : This has nothing to do with C++. (by cire)
Pair class exercise - help needed
 
Help needed in compiling code. Exercise for Pair class. #include <iostream> #include <iomanip> #in...
[9 replies] Last: template<typename T1, typename T2> Pair<T1, T2> make_pair(T1 &&x, T2 ... (by DragonOsman)
help with overloading relational operators
 
#ifndef PFASTRING_HPP #define PFASTRING_HPP #include <string> #include <vector> class PFAStr...
[10 replies] Last: Ok thanks you very much.I will try it and see how it works. (by AMETOPRINCE)
fstream output and input
 
#include <iostream> #include <string> #include <fstream> using namespace std; class inven { priva...
[3 replies] Last: Thanks for the replies! Lines 34 and 35 is used to test if the text fi... (by verdantgale)
Dividing Audio
 
I'm trying to divide an audio sample into 16 equal "slices". I currently use the sum 1 / s. Using my...
[4 replies] Last: This isn't code, just an idea of the maths totalsamples = ? ; // yo... (by Chervil)
Can someone tell me why my function is not working? (1,2)
 
can anyone help with the weighted grade program we have to write in programming 1? heres my code, f...
[20 replies] Last: Yes, well no. You don't need to pass grade in. It'd be more like: c... (by kbw)
What is this exercise asking for?
 
PPP2 Chapter 19 Exercise 2. Specs: 2. Write a template function that takes a vector<T> vt and a ve...
[17 replies] Last: > define the addition operator to return a result type distinct from t... (by JLBorges)
Menu driven program?
 
Can anyone help further explain a menu-driven program? I have some homework that is due today and...
[1 reply] : Maybe sth. like that. Main menu ======= 1 - General information 2 -... (by Thomas1965)
minimal init program not working
 
In the following code my goal is to initialize without an error. I am using the simplest, most minim...
[5 replies] Last: Amazingly, the addition of the following parameter completely resolved... (by technologist)
If statement not executing completely
 
I have an if statement that is in a program I created but it is hit or miss weather or not it will e...
[9 replies] Last: IN VS 2012 the format command is under EDIT->Advanced. Short cuts: ... (by Thomas1965)
how create an object then add it to vector of unique ptr
 
if I have a vector of unique_ptr like this: std::vector<unique_ptr<item>> item_list; and I wante...
[2 replies] Last: Alternatively, you could use std::move , if you want to create the ob... (by Golden Lizard)
Is SDL good library for a text editor in C++?
 
I was thinking about creating a simple text editor in C++. I did some research on avaliable graphica...
[6 replies] Last: Never mind, just war curious. (by Thomas1965)
asdf
 
ooos
[6 replies] Last: Go on, just try it. You've already written the code right here. Why no... (by Repeater)
HELP!!
 
Write a program to print the following table. Each row in the table has an integer, its square, its ...
[1 reply] : We are not a code writing service. If you want to learn programming, m... (by Thomas1965)
Help with getting an item in a list
 
#include <iostream> #include <cstring> #include <string.h> #include "Item.h" #include "Character.h"...
[1 reply] : Hi, Have you heard of std::string ? This seems like a classic case of... (by TheIdeasMan)
What is a good algorithim to pass through the void playGame() function
 
#include <iostream> #include <cmath> using namespace std; // check if a certain position on t...
[1 reply] : I suggest a neuro fuzzy approach that learns as it goes. That way, i... (by jonnin)
October 2017 Pages: 1... 34567... 17
  Archived months: [sep2017] [nov2017]

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