General C++ Programming (Page 6)

What am I missing here to correctly modifiy string a? #include <iostream> #include <string> usin...
[3 replies] Last: What the other guy did would require a pointer and you can do this. Yo... (by Aim4Erudite)
Need Help With Something I Am Working On
Okay so I play this game and there are pay sites that sell hacks and make a killing off of it, but I...
[1 reply] : Anybody have any advice or tips or anything? (by itsstino)
by olette
So this is my code- #include <iostream> #include <string> #include <iomanip> #include <fstream>...
[1 reply] : What should the function 'input' do? In other words, how does it use t... (by keskiverto)
by Ceset
Static vs Dynamic Polymorphism
I just learned static polymorphism and was spending my time learning what it is about for last few d...
[14 replies] Last: Yes it is done and i appreciate every help (by Ceset)
Error zero size array, working with classes.
Keep getting an error saying I have zero sized array but I have a constructor creating an array of 5...
[3 replies] Last: Glad to help! (by Ganado)
by olette
Not sure about the errror
#include <iostream> #include <string> using namespace std; class Car { friend bool operato...
[3 replies] Last: You don't have implementations for any of your Car class function defi... (by Ganado)
Initializing error
Just learned vectors and tried to initialize one but got back error C2440: 'initializing' : cannot ...
[7 replies] Last: Did you remember to #include <vector> ? (by LB)
C memory management
Hey my dear friends, First of all, this is a C-question, not C++ related. In my school-project las...
[4 replies] Last: How can I force that memory_ and place_ are never touched by anyone e... (by NoXzema)
by Ceset
Static Gets Initialized!
I was testing out something with statics. My former experience says statics shouldnt be get initia...
[6 replies] Last: It was a good question. Everybody gets stupid stuff wrong. (by Duoas)
Init parent's member that cannot be passed to constructor
I have many classes inheriting each other, like A, B::A, C::B. All of them must have an index that i...
[15 replies] Last: I suggest making an enum. Boost has some pretty cool enum stuff to pl... (by kevinkjt2000)
Deleting pointer objects
I have a struct like the one below and I create pointer objects base on it, for example, "Node* prvN...
[4 replies] Last: If you use "new" to create the node, you must use "delete" to delete t... (by doug4)
Diffcult with vectors and for cycles
I wrote the following bool function: bool user::Execute(SampleFormat& sample, const EventFormat& e...
[4 replies] Last: Yes, I meant abs(norm(sum1) - certain_value) < abs(norm(sum2) - certa... (by whitebeard)
Will this work?
I was wondering if you guys could tell me if my code is proper and will work while I'm searching for...
[4 replies] Last: Thank you guys for the feedback! I'll change it accordingly. (by trevor2clever9)
differential equations in c++
How to solve differential equations in c++ any idea. Is there any libraries like that.
[1 reply] : (by mutexe)
Const data Member
If class have const data member, then there must be a constructor with initialiser list. Please hav...
[7 replies] Last: except Array type C++11 also allows you to init array types. {4, 5... (by andywestken)
can anyone code this...........
Write a C++ program of the following problem: How many numbers are there below one-billion (109) th...
[5 replies] Last: // Generates a list of all +ve numbers < limit, prime = 1, non-prime ... (by kemort)
Code works in Release build, but not Debug
Hi, I'm new to C++ and currently taking a fundamental class on computer programming. My dilemma is ...
[1 reply] : Well there's not a lot anyone can do without seeing the code. Are you... (by ajh32)
Hey Guys need Help creating three functions setCorrectAnswers, inputAnswers, correctNumbers
This is what I got: Not sure if it is correct. I am sure it is the void setCorrectAnswers is where I...
[5 replies] Last: No problem, main thing to take away from this would be that the { ... ... (by Ganado)
by Ozzy69
Help with malloc in c
Hi, how i put the malloc for the variable c? Look my code. #include <stdlib.h> int main() { ...
[2 replies] Last: First off, 'l' is a horrible variable name, because it looks like othe... (by Duoas)
by Ozzy69
Doubt in related the char in C
Hi, help with this code: #include <stdlib.h> #include <stdio.h> #include <strings.h> int mai...
[3 replies] Last: Try this #include <stdlib.h> #include <stdio.h> #include <strings.h>... (by include iostream)
Pages: 1... 45678... 31
  Archived months: [may2015]

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