General C++ Programming - May 2011 (Page 12)

What am I doing wrong???
 
This code compiles but it crashes after inputting answers for the students questions. It will output the first " has the following questions correct: " and the...
[5 replies] Last: Have patience.. The problem with the numCorr. For every correct ans... (by hamsterman)
Help on drawing in openGL from C++
 
Hi,Iam Qasim and I am undertaking C++ course. I am working on my project which allows the user to calculate shear force and bending moments on a beam. What basi...
[3 replies] Last: What's the problem? Just replace w with l and others with constants.. (by hamsterman)
Exactly what makes a stringstream go bad?
 
I have the following: std::string ipv4ToString(unsigned long int ip) // Guaranteed that 0 < ip < 0xFFFFFFFF { std::stringstream ss; for(int i = 3; i > -1;...
[5 replies] Last: i c wut you did thar (by closed account 1yR4jE8b)
Help finding issue with multidimensional vector
 
So, the program compiles but there is a logical error somewhere that is crashing the program. Can someone please help me find it. Some lines are seemingly comm...
[8 replies] Last: Thanks a lot Moschops, you've been a great help!! (by N1ghtm4r3)
Output Shapes/Graphs?
 
Hey! I am a reasonable C++ programmer, but I do not know anything about outputting diagrams. I was wondering if it is possible to output shapes/lines/graphs/ ot...
[6 replies] Last: Awesome! Thanks everybody! I think I'm going to look into SFML. It s... (by Programmer3)
by AlecC
Help on project?
 
Hey, so recently in my school our teacher wanted us to spend the next 2-3 weeks making up a program of our own choice. (We learned Java in class but I wanted to...
[6 replies] Last: This comes in three stages. 1) Actually get the libcurl library. Down... (by Moschops)
Help with Linked List template class.
 
I'm designing a template class for creating and modifying linked lists, and I'm having a slight problem. When I first call printList after creating an empty lis...
[4 replies] Last: Oh, now I get it. Thanks. (by packetpirate)
Library required for using graphics object
 
Plz tell me the name of the library required to use the the graphics obect i.e bitmap,brush ,font ,color,image ,pen, etc.... and to create the toolbars in wind...
[3 replies] Last: You need to learn win32 api... see here: http://msdn.microsoft.com/... (by writetonsharma)
boost thread link error
 
Hello I was trying to compile a program with boost, and I have the following link errors, althought is it weird because it works on visual studio 2010 but it wo...
[5 replies] Last: It worked, I had to rebuild the thread dylib again..., thanks (by Sebitas)
Help solving coding issue please.
 
Alright, so this program compiles just fine, but it doesn't print the name on the commented line. Please help tear this apart. #include "stdafx.h" #include <...
[13 replies] Last: As kbw noted, obviously, my comments didn't make you fully understand ... (by b2ee)
by azaaza
function operator()
 
I saw this function operator() been used here and there. But I can't find much information about it on web. Can anyone please explain what it does, when to use ...
[2 replies] Last: If you have a type T that overloads operator()(parameters) and an inst... (by helios)
by Skills
Array (1,2)
 
Create an array and store the following Student marks 68, 72, 78, 69, 85, 95, 75, 77, 82, 84, 91, 89, 95, 74. From the following set of marks. 1. Calculate ...
[21 replies] Last: Why system() is evil http://www.cplusplus.com/forum/articles/11153/ ... (by ne555)
by suetam
numeros complejos o imaginarios
 
hola como estan necesito ayuda para poder usar una funcion que trabaje con numeros imaginarios. para que el codigo me reciba numeros maginarios o raices negativ...
[2 replies] Last: The complex class ( #include <complex> ) handles complex numbers for... (by Duthomhas)
Equal operator/pointer/deconstructor problems.
 
Basically, I'm using SDL, and I've made a wrapper class for an SDL_Surface - basically an data structure which holds pixel data. I call this class a DrawSurface...
[4 replies] Last: Mackabee's solution is a bad idea. A temporary copy's dtor would dest... (by Disch)
LNK2001 and LNK1120 errors!!!!!
 
Can someone please help me with this. My friend is teaching em c++ and he wanted me to make a prgoram that does many different things so i made the program belo...
[3 replies] Last: Thanks for that. I havent added the loop for the guessing game yet, sa... (by aceofspades104)
This is an alternate pow func problem
 
#include <iostream> #include <stdlib.h> #include <stdio.h> using namespace std; int us(int a,int b){ int d,e,*f; for(int c=0;c<b;c++){ if(b==2) d=a*a...
[no replies]
Get Amount of Elements In Allocated Array
 
As in the title, I trying to get the amount of elements within an array that is allocated on the heap. Firstly, here's my code: #include <iostream> using...
[3 replies] Last: Thank for the reply, WebJose. I didn't copy and paste the code from ... (by closed account zb0S216C)
by Ronen
Inherit operator + and == from "Virtual Base class" to "Template son"
 
Hi guys , I've a little(big) problem with the following code : class Base{ // an abstract class protected: virtual Base* operator+(Base* matrix) c...
[2 replies] Last: This reeks of operator abuse. You probably shouldn't be doing this. ... (by Disch)
Please Please Help me - reading class member data into an array using a class member function
 
Hello, The programme I have developed so far does the following: 1. Writes to a file (route1.txt) the details of a planet - planet id, x, y and z coordinate...
[4 replies] Last: Why can't you have it return an actual planet object? (by LB)
Help me out!!!!
 
I made this program for my school holiday homework. I made a program to enter records into a binary file and then search for existing record. The problem i am...
[5 replies] Last: Why do all your functions return void? Also, main must return an int, ... (by LB)
May 2011 Pages: 1... 1011121314... 32
  Archived months: [apr2011] [jun2011]

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