General C++ Programming (Page 9)

C string program
 
Can someone please show me how to do this? replaceSubstring Function Write a function named replac...
[1 reply] : What have you written so far? What specifically is confusing you?... (by LB)
Quick look at "Accepts a pointer to a C-String" What does this mean???
 
I have made this program run, however in the book it says my functions should "accept a pointer to a...
[6 replies] Last: Thank you, I thought I had that, guess I overlooked it lol (by TheDMinor)
c++ converting pseudo code for runtime
 
I am given the following information, i am trying to convert this in a function. c ← 0 for i ← ...
[4 replies] Last: Ah, thank you i cant believe i didn't notice that. haha Thanks (by hoofhamples)
I/O problems including a map container
 
Hello, I am having a hard time understanding what the problem with my code is. The problem that o...
[9 replies] Last: if im understanding correctly of the reporducable code this should be... (by MiiNiPaa)
by rich1
Column sums
 
Hello world imagine you are given a matrix of positive integer numbers (maximum 25*15, value of num...
[2 replies] Last: Your solution was the first that sprung to my mind and yes - it's not ... (by rich1)
problems with for command
 
Hello, this is my assignment: Write a program that will predict the size of a population of organ...
[1 reply] : Please put your code in code tags: [co de]Put your code between thes... (by Disch)
by srowe
Formatting iostream for readable hex.
 
My problem is that the setfill('0') doesn't affect the output; I want four columns of 64bit numbers...
[6 replies] Last: Right again. Boy I am rusty. lol Thanks. And yes the class library i... (by srowe)
Finding a char array in a large file
 
I have a specific byte (that is unsigned char) array, that I need to find in a very big file (2GB or...
[6 replies] Last: Use a string search algorithm (instead of a pattern-matching algorithm... (by JLBorges)
Search a dynamic array for a string, and return the indices
 
Hello. I am looking for help with my program. I need it to search a dynamic array which I build fr...
[2 replies] Last: Looks like you need to increase your compiler warning levels, and fix ... (by jlb)
by Ausha
operator overloading
 
Hi, having trouble with understanding operator overloading, everywhere there is theory explained but...
[3 replies] Last: Very nice^^ Please mark your question as answered ;) (by Gamer2015)
Error C2678?
 
So I have the following code: template<typename T1, typename T2> class Pair { public: T1 a...
[16 replies] Last: Ah, I see. Well, I think all my questions have been answered, so thank... (by RotatingAxis)
by bpc123
Not exiting While loop
 
Hey guys. This is a portion of code that I've been trying to fix, and I know I'm missing something b...
[1 reply] : You exit the while loop only if both conditions are false, so you need... (by ats15)
conveting string to decimal
 
In my project i have to take the string valve and convert it into float for example 100 will be ...
[2 replies] Last: you will also need to use a fixed declaration before it cout << fixed... (by sly858)
Deep copy and operator overloading
 
Hi, In main I instantiate two Polynomial objects -- p1 and p2: int main() { const int SIZE ...
[3 replies] Last: If you don't use pointers, you don't have to worry about this crazines... (by LB)
Reference question
 
So I was reading my book and it listed this piece of code. The first piece of code is in the book an...
[2 replies] Last: That makes sense. Thank you TheIdeasman and you were correct in what I... (by cppnoob25)
Strings supposed to get stored in vector, then gets printed. It's not working...
 
#include <iostream> #include <vector> using namespace std; class Message { public: Message (...
[1 reply] : This code cannot compile because you have not defined your class const... (by LB)
by Ganado
Shadowing with 'using' declarations
 
I'm sure we've all be told about how using "using namespace ____" can be bad in a global scope. I ha...
[6 replies] Last: > you should not redefine the name 'Coordinate' to be some other struc... (by ne555)
Map inside a map sorting
 
Hi all, I'm relatively new to programming in C++ and I need some help. I have a map which contains a...
[9 replies] Last: Thank you very much, it works perfectly!! (by adamsafc)
How can I control the speed at which a loop loops based on an outside variable?
 
Alright, So i'm using an animation program. In this program I've simulated a particle system. The pa...
[8 replies] Last: Thanks, @shoyoninja. You probably saved me a lot of time with the loop... (by Tanzola)
Weapons' names generator
 
I'd like to make a simple generator of names for weapons, in this format: adjective type_of_weapon f...
[7 replies] Last: So now I've got to learn about std::map and find some good JSON librar... (by TheHardew)
Pages: 1... 7891011... 29
  Archived months: [jan2015]

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