General C++ Programming - June 2016 (Page 13)

Rotational Movement with Rectangles
 
Hey, So I'm currently having an issue to rotate my paddle in my pinball game and was wondering i...
[2 replies] Last: Thank you helios, this helped a lot. (by Tarkan1857)
program to count how many numbers between 1 and 10000 are divisible by 3
 
Write a program to count how many numbers between 1 and 10000 are divisible by 3 with no remainder. ...
[5 replies] Last: A little algebra, I guess what Duoas was thinking: int count = 100... (by TheIdeasMan)
Thread pool questions and advice.
 
Hey I made a simple thread pool and well "it works" but I was wondering if there were things I shoul...
[4 replies] Last: It's somewhat like a turnstile with unbounded job queue.. except tur... (by rabster)
by c00012
Using for-loop to Implement deletion in Array-based List
 
Hi, I’m writing a code to implement Array-based List in C++ using class and template. Here’s ...
[1 reply] : just an idea: if you delete an item within a loop for (int i = 0; i... (by closed account 48bpfSEw)
In what ways are C++ better than swift, python etc.
 
I know that c++has speed. Does it have other advantages in current day? I am only asking because now...
[1 reply] : I think this is a wrong question in a wrong forum? ^^ There is nothin... (by closed account 48bpfSEw)
prime number code
 
Write a program that prints all prime numbers up to an input number n. Your progam must allow me to ...
[7 replies] Last: There is something wrong with the code. For N = 10 it puts this out: ... (by closed account 48bpfSEw)
Vector search/ sort help
 
I have been trying to write this for a few days now I do not know how could someone please just wri...
[1 reply] : 1. Implement bool contains(vector<int> v, int i) , which returns true... (by helios)
CS string and string class
 
help i dont how to make this Palindrom and anagram #include<iostream> #include<iomanip> #i...
[no replies]
leap year code with for loop
 
can someone help me Write a program that prints the next 20 leap years. ( You must use a for loop in...
[1 reply] : #include <iostream> int main() { for (int i=0; i<1; ++i) { std::... (by cire)
Array.sort w/ a timer
 
Hello. I am having issues with trying to write a program in C++ that uses array.sort and having a ti...
[1 reply] : ...that uses array.sort Are you supposed to use .NET for this task?... (by Thomas1965)
Why is my code displaying random lines?
 
I'm learning Hashtables and I have this problem where there's garbage when I display my data. I ran ...
[6 replies] Last: You're welcome, Thomas. CppCheck is one of the tools that I never want... (by closed account 48bpfSEw)
Parking fee prompt doesnt make much sense
 
Ive been assigned a program to complete but have been fiddling around with it and just cant get it.....
[1 reply] : code incomple: double calcFee(int hours) { // If the car is ther... (by closed account 48bpfSEw)
Using push_back() with vector causing segmentation fault
 
I am trying to use push_back() with a vector of type Section--i.e., vector<Section> sections. I am t...
[10 replies] Last: Removing max_size() fixed my problem! Thank you so much, Helios!... (by closed account L1bXjE8b)
not seeing the error
 
Trying to pass a pointer to a string via a function. Get the error (at bottom). #include<iostr...
[5 replies] Last: Thank you very helpful. I was going crazy with the ' vs. " (by technologist)
Editing data
 
I am writing a program that will allow a user to edit hard coded data from an array. my issue is I d...
[4 replies] Last: nevermind after posting i saw my mistake... thank you again(: (by FranciscoDiaz)
How to make two frames work together in c++ (using visual studio 2013)
 
good night, im having an issue with trying to figure out this. i need to work with two frames, i've ...
[3 replies] Last: If you call MyForm1 from mainFrame it will automatically return to mai... (by Thomas1965)
Resume the tasks with C++ based code
 
Dear Respected Programmers. Good morning. I hope you will be fine. I want to ask that is there...
[1 reply] : A possible solution would be to catch the WM_ENDSESSION message and st... (by closed account 48bpfSEw)
Matrix
 
NVM close or delete
[1 reply] : Break down your problem in little problems. 1. you need a place for y... (by closed account 48bpfSEw)
Passing pointer to pointer to a function (value/reference)
 
Hello. Consider this example: void byValue(int** PtoP) { } void byReference(int**& PtoP) { } v...
[18 replies] Last: Much like int** is a pointer-to-pointer-to-int a int*&& is an (rva... (by cire)
by DTM256
Advance Keyboard & ASCII controls
 
Hey guys, I've recently come back to another try at writing my text game for windows. I've gotten...
[2 replies] Last: Yes, Therefore, instead of the outdated getche(), use the _getch(). ... (by DTM256)
June 2016 Pages: 1... 11121314
  Archived months: [may2016] [jul2016]

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