General C++ Programming (Page 9)

by tk13
Text message decoder (loops)
 
Get a line of text from the user. Output that line. Then output the line again,this time expanding a...
[5 replies] Last: std::basic_string::at returns a reference to the character at the sp... (by xismn)
help mi set up STMP in code::blocks
 
I want to start using smf
[no replies]
Need some help removing the space at the end of my output.
 
Can't seem to find a way to get rid of the space at the end of my code. Help! Code is as follows: #...
[no replies]
by Tia
Calculate sum, product, power using recursions
 
Someone can explain how to think these type of recursion. In this exercise isn't allowed to use arit...
[2 replies] Last: Thank you so much. Clear explanation. (by Tia)
implement queue using vector
 
How can I implement queue using vector. Also What does this mean vector <int> queue ...
[1 reply] : push : push to the back of the queue (vector - push_back ) pop : po... (by JLBorges)
Reading into a struct
 
I'm supposed to write a reading function for a PPM file that saves the r g b content to a vector vec...
[1 reply] : while(infile >> r >> g >> b) { Pixel::Pixel(int r, int g, int b)... (by Thomas1965)
Iterate through strings
 
Hi, If I has a series of strings with names such as: string1 string2 string3 stri...
[3 replies] Last: So, I guess I could put them in an array also. But don't. Arrays are... (by Moschops)
Memory Leak when combining char arrays
 
I have a function to combine two char arrays but it results in a memory leak. const char* combin...
[3 replies] Last: It only results in a memory leak, if your calling code doesn't delete ... (by MikeyBoy)
by jpaz
Class HELP!
 
Hi, i am new at programming and i am working in a hw were i need 3 files. I need one file.h, file.c...
[3 replies] Last: Hi, Generally the file.h shows the function prototypes (names and para... (by ShaLee)
recursion string error, why this is happening
 
#include <iostream> #include <string> #include <cstdlib> using namespace std; bool isPal(string)...
[2 replies] Last: 1) Please use code tags when posting code, to make it readable: http... (by MikeyBoy)
How to Format a Calendar Program
 
I'm having some trouble with my Calendar program. Everything for the most part is working correctly,...
[7 replies] Last: I got it! I tried using setw() earlier but I was adding it in the wr... (by raiiiny)
linked list help
 
I have this project to input 12 numbers each into two linked list and sort them. Then with the first...
[1 reply] : First: Please use code tags: [co de] Your code [/co de] Read this: ... (by coder777)
Print the number of even and odd numbers
 
Hello I want my program to count the number of even and odd numbers inputed by the user, but it does...
[2 replies] Last: I got it to work thank you for your help. (by bluewizzard)
debug lists in gdb
 
Hi there! I am working with a list l from the STL. In gdb, if I call 'l.front()' I get this messa...
[9 replies] Last: Hi JLBorges I already tried printing the list in a readable form. But... (by jessCPP)
Destructor without constructor
 
I'm trying to create a little brother of shared_ptr. Until now I failed miserably. Following code: #...
[7 replies] Last: So, I'd say no move if not explicitly told. I don't want it since I wa... (by coder777)
class and its implementation.
 
Can someone please explain every line ? i am having trouble understanding this project. PLease expla...
[4 replies] Last: okay i have solved the problem for evla {vertical ,horizontal, leftup ... (by riyadhhossain01)
Error unknown type vertices?? last few lines
 
#include <GL/glew.h> #include <GL/glut.h> #include <stdlib.h> #include <stdio.h> #include <math.h>...
[1 reply] : Hi, First up, please always use code tags: http://www.cplusplus.com/a... (by TheIdeasMan)
recursion why does it not work?
 
// Example program #include <iostream> #include <string> using namespace std; void rec(int);...
[4 replies] Last: thank you wolfycplusplus, found out the silly mistakes i made. (by rezy3312)
by Phil15
Never Redefine an inherited nonvirtual function
 
Hi, recently I was wondering what happens underneath during compile time when running the code bel...
[7 replies] Last: All clear. Thanks everyone ! (by Phil15)
Need to finish the asigment
 
i need to create a class that represents a polynom of the fourth degree with int coefficients. Defin...
[no replies]
Pages: 1... 7891011... 25
  Archived months: [mar2016]

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