General C++ Programming - November 2014 (Page 22)

Arrays Question: Functions not functional
 
First time poster here. Glad to join the forum. I'm currently reading "Jumping into C++". I'm stuc...
[3 replies] Last: Thank you doug4 and Disch. I can see the mistake I was making. (by nakane09)
by nik65
stuck on webscraping and arrays
 
I am trying to complete a function that takes info from a string, that has been taken from a web pag...
[no replies]
how is it working?
 
Hi everyone, I was reading a c++ code and I saw this: #include <cstdlib> #include <iostream> u...
[no replies]
Storing Life Form Details in a Class
 
So for an assignment, I have to create this Life Form class. The instructions are... (skip the big b...
[no replies]
std:out_of_range when using string::erase
 
I was using a small code snippet to erase <em> from string doesn't work? Code: string htmlLine = ...
[4 replies] Last: Thanks, now it works. And thanks @jib for the tip! (by Just Me)
Returning a dynamic value from a function
 
is this considered a memory leak? Polygon* create_square(const Vector2d& position, const RGB& colou...
[1 reply] : Not if you delete it when you're done with it. Although your 'Polygon'... (by Computergeek01)
class
 
#include<iostream> using namespace std; class a { public: virtual void add(int)=0; virtual...
[1 reply] : ...can any one know whats going on? Yes, and although it admittedly ... (by Computergeek01)
inheritance and composition
 
can any one help me In this assignment the student should develop a month calendar by designing...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
help
 
I got homework to write a program and I'm stuck in all of it lol please if you have the code fo...
[no replies]
by mzzz
About dynamic memery,allocate with new, free with delete[]
 
i know if use new to allocate a block of a specified type, and must use delete to free them,in thi...
[2 replies] Last: thank you, it helped. (by mzzz)
Reading a line of text with the spaces
 
Hi guys, This site has helped me a lot regarding some programming techniques. I would like to...
[14 replies] Last: Yosh!! I learned a lot. I'm not that good in programming because I a... (by jemeripol)
Find the lowest number
 
This is a simple program I am building to find the average of 5 grades where the lowest grade is dro...
[2 replies] Last: Maybe you can use loop here instead of series of if-else's. :) (by jemeripol)
Compiler Error
 
My compiler does not update with my edits in the codes in C++.. It still displays output from pre...
[6 replies] Last: @Albatross, Yes, I am using Code::Blocks now. And I can say that it w... (by jemeripol)
by lionki
anyone know this simple algorithm
 
here the algorithm : s = 0 for i=1 to n do s = s+i*i return s first time i thought it was sieve of...
[4 replies] Last: thanks guys, i helped (by lionki)
Enum vs enum class C++11
 
What is the difference between enum and enum class in C++11? I think it is about type safety, bu...
[4 replies] Last: Now I get it. Thank you very much! (by memberfunction)
Read all values /strings form unknown file
 
Hi guys, I'm having a little problem: For an assignment I have to write a program which basicall...
[6 replies] Last: He's a great guy. :) (by jemeripol)
by jodytj
Error Checking
 
// My error checking is not working and I have been unable to figure out why? //driver.cpp #in...
[no replies]
Calling base function from derived overloaded function
 
Here is a sample of my question class Base{ public: int getNum(); private: ...
[1 reply] : Sorry, i forgot to change my getNum function to a constant function. W... (by yoslick11)
Please help with arrays homework (in C)
 
I'm having trouble figuring out how to calculate the mode. We're not allowed to use pointers (except...
[2 replies] Last: The Mode is the most frequent number. I'm sure there's a more efficie... (by kbw)
Create a function that makes a copy of a private map
 
So I'm doing this project: http://www.gamedev.net/topic/409907-c-workshop---project-1/ For now I'...
[11 replies] Last: ///////// player.h //////////// // ... struct player { std::st... (by JLBorges)
November 2014 Pages: 1... 2021222324... 32
  Archived months: [oct2014] [dec2014]

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