General C++ Programming (Page 5)

Planet simulation with pass by reference - force vector won't update!
 
Hi there, I'm fairly new to this, but I'm using C++ to simulate a basic planet orbiting around a ...
[2 replies] Last: cire's point about the arguments being the wrong way round in the call... (by lastchance)
median function with twogiven arrays!
 
#include<iostream> using namespace std; double getMedian(int*, int); void printArray(int , int); ...
[1 reply] : First, please use code tags. See http://www.cplusplus.com/articles/jEy... (by keskiverto)
Could anyone explain to me what this line means?
 
int a = b.size() - 1;
[3 replies] Last: You do not show the type of b. If the code is legit, then the b must ... (by keskiverto)
drink machine simulator help!
 
#include<iostream> #include<iomanip> #include<string> #include<cmath> using namespace std; const i...
[3 replies] Last: mine keeps popping out as 0 Sounds bad. (by kemort)
Why is the keyword template necessary in the following specialization?
 
Hi, What does template before value_of<Iterator> do? template <> struct value_of_i...
[2 replies] Last: Great answer!! Thanks Juan (by JUAN DENT)
How can I place lambdas in header files without generating multiply defined symbols from the linker?
 
Hi, I need to have definitions (or declarations) of lambdas placed in header files so I can use t...
[4 replies] Last: Great reply PanGalactic!! Thanks a lot for the clarification Juan (by JUAN DENT)
by Luis R
C++ with user form
 
hello, to all please help me for this program.. I need to make a program with a form that the ...
[8 replies] Last: Here is a simple way to do it. Try if you can run it. https://www.drop... (by Thomas1965)
object oriented C++ practice problems
 
Hello world! I try to find over the Internet a website that has practice problems on C++ classes ...
[2 replies] Last: Thank you coder777 (6062), very interesting link, but I am looking for... (by orestis987)
ppm file view
 
Can i view a ppm file in format to check that the values that i store in the buffer are the same?
[2 replies] Last: #include <iostream> #include <fstream> #include <string> #include <ve... (by JLBorges)
by radhio
Input title data for Excell
 
Im too beginner in C++. How i need add title data for this code : void ReportDefectPanel::ExportR...
[1 reply] : Double post http://www.cplusplus.com/forum/beginner/204050/ (by SamuelAdams)
Help in array and function...
 
I am extremely new to this forum...help needed... I know how to pass an array in function definitio...
[6 replies] Last: Thanx to all of you...i got it...yeah... (by kinjal2209)
need assistance forcing the user to enter the correct input with a cstring
 
Im trying to preform a do-while loop that forces the user to enter the correct file name using a c-s...
[19 replies] Last: @Chervil. That's an interesting approach too. It's interesting how ign... (by kemort)
Hangman
 
Hangman Pseudo Code 1. Do a nice introduction screen for your hangman program (do this step last)...
[1 reply] : i have done this much so far #include <iostream> #include <time.h> #i... (by peter159)
relpy thanks
 
I am stuck I cant run my code I need help!!! thanks #include <iostream> #include <string> #includ...
[8 replies] Last: Example use of the functions above: #include <iostream> #include <s... (by boost lexical cast)
by Rikasi
Class Scope-Can a super class type reference be used to refer to one of it's subclasses?
 
Can a super class type reference be used to refer to one of it's subclasses? e.g class superclas...
[6 replies] Last: That doesn't sound like a very fun game. Assuming that this is actua... (by mbozzi)
Vector
 
Good morning guys! Good Morning, guys! Soo I have simple game in which I create bunnies. For e...
[5 replies] Last: Hey,man, I don't think it's working. It still does miss a lot of them ... (by Tomheza)
Converting char to int
 
I am writing a program for a Finite State Machine. The machine gets an input of either 'a' or 'b' fr...
[1 reply] : The machine gets an input of either 'a' or 'b' from a text file. I ne... (by cire)
Programming Final Project for Beginner-level Class
 
Hi there. New to the forum with a request. I have a project due Thursday and I am lacking unders...
[1 reply] : You are, of course, free to respond to the troll who keeps posting spa... (by cire)
by mkb555
Delete elements from dynamic array
 
I've seen topics on this before, but never seemed to get a definite answer. I have a 2D space repres...
[2 replies] Last: As in shift every column ahead of the one I'm deleting back by one ind... (by mkb555)
Pages: 1... 34567... 32
  Archived months: [oct2016]

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