General C++ Programming - July 2014 (Page 16)

Getting proper grammer
 
Does someone know of a better way to get proper grammer in sentences than this method of mine? I don't want to continue with this for my entire huge program if...
[1 reply] : Something along the lines of class Pronoun { // ??? } You, HeSh... (by prestokeys)
Floppy disk image boot sector minimum data?
 
When creating a floppy disk image, what is the minimal data required at the boot sector (side 0 track 0 sector 1)? Can it be all 0's? What does the OS need in o...
[no replies]
Pure virtual function called at runtime.
 
I'm currently making a game and what happens is that during runtime, it suddenly closes and a message is shown in the console saying "Pure virtual function call...
[2 replies] Last: Seems like that fixed it. Thanks for the help and explanation! :) (by Stormboy)
string output problem
 
I'm trying to make a program that outputs a parabola. The user inputs the variables, and it's supposed to output blank spaces for where the points are, and shar...
[2 replies] Last: do you have any additional code? because output and parse are not ... (by codekiddy)
give some gtkmm resources
 
hi, if you have some gtkmm resources such examples and tutorials, please share them here :) gtkmm provides tutorials, examples and reference documentation but ...
[3 replies] Last: [quote=firstline]Gtk is a pain to build on windows , there are like 1... (by closed account 10X9216C)
PLEASE HELP with function to convert decimal to binary
 
Hi! Can someone please explain to me what is the difference between the two functions below? I created the function in the top and my friend created the fu...
[3 replies] Last: Here's my recursive version. :O) std::string to_binary( unsigned n ... (by Duthomhas)
!!!!"delete this" in destructor !!!!
 
Hi,  i don't understand why having a delete this; in the destructor cause a stack overflow?, then how to make a destructor destroying the current instance?...
[5 replies] Last: It means with no pointers in class, an empty destructor does the work,... (by whiteReve)
Problem in Const&
 
hi,  i'm trying to avoid the copy made during the appel of a function by using const&,  But it results a compilation error,  here is a function, it wor...
[4 replies] Last: Smac89 , Thank u very much. (by whiteReve)
by R23MJ
C++ send info to PHP webpage?
 
I was wondering if there was a way for me to send information, say a username and password, to a webpage via a c++ function. I was unsure how exactly to word it...
[3 replies] Last: That's wonderful, I will look into the python thing, and just have the... (by R23MJ)
by RiHdz1
Math Tudor - Random Numbers
 
// Objective: Guess the correct answer of the random numbers // Problem: I guess the correct answer but the program keeps telling me that // I'm INCORRECT. ...
[2 replies] Last: I've been laying off this problem for a month. I don't remember why I ... (by RiHdz1)
Non overloadable function
 
Hi there! Please I would like to know if there is a way to make a function non overloadable. My idea is to keep it private in the class so that it will be i...
[5 replies] Last: Thanks! Here is a quick test I've made too. class a { private: ... (by patrikgwet)
cin input validation returns wrong
 
I have this function that is supposed to take a float as a parameter and then call the getLine() method to accept the users input. The function basically just c...
[3 replies] Last: I think it was just xcode acting up, I quit the program and reopened i... (by DomBavetta)
by RiHdz1
Conditional Operator
 
// Enter 2 numbers. Program should use CONDITIONAL OPERATOR to determine which // is larger and which is smaller. Need help. Tony Gaddis book does not go into ...
[6 replies] Last: You're welcome. Check out the bottom of this page for more in depth in... (by giblit)
by gok
#define to overload virtual function
 
I want to overload pure virtual function from 3rd party SDK class to put my debug messages like that: errorStatus aXsaction(){printf(_T("\nabort transaction"...
[4 replies] Last: Override != hook You override a function that your class inherits fro... (by Computergeek01)
Random value w/o repetition..pls help me..
 
I am a newbie in C++ programming. I have a project in school using c++ language. I try to make a program that is a set of random questions that will show the u...
[4 replies] Last: As an extension to keskiverto 's response: the example in the documen... (by Duthomhas)
can anyone tell me the program for this?
 
Write a program for the following series (using any loop) : -5 5 -4 4 -3 3 -2 2 -1 1
[3 replies] Last: just try writing it youself edit: if you need help with writing it, t... (by Little Bobby Tables)
delete[]
 
In all my classes I've been told an array does not know it's size. char* a = new char ; char b = a ; Uh oh, arrays don't know their size and n...
[6 replies] Last: Heaps are usually implemented using boundary tags. A boundary tag is ... (by AbstractionAnon)
External Reference Problems
 
I am trying to create a linked list using multiple files but am getting 2 errors "main.obj : error LNK2019: unresolved external symbol "public: void __thiscall ...
[11 replies] Last: that would probably be a setting in your ide (by Little Bobby Tables)
Dynamic Memory Question
 
I'm reading a stereo .wav file into a buffer (allocated memory). My question is in regards to: 1. Checking if we've allocated the memory. 2. If so, let's de...
[2 replies] Last: To allocate a 2d array and to validate you would do something like thi... (by giblit)
pls tell me the output for this
 
#include<iostream.h> #include<conio.h> void main() { clrscr (); int a ; int n,m,age; int c1=0, c2=0, c3=0; cout<<”enter how many employes:”; cin>>...
[10 replies] Last: [quote=AbstractionAnon]Indexes start from 0, not 1. I like to think o... (by giblit)
July 2014 Pages: 1... 1415161718... 26
  Archived months: [jun2014] [aug2014]

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