General C++ Programming - May 2013 (Page 25)

What's the error? (1,2)
 
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> void main() { clrscr(); char Country , Input , Temp ; int n, count=0; do {...
[20 replies] Last: Yes..I am sorry about that! (by Winkerd)
stack around the variable 'X' is corrupted
 
hey guys , I have been trying to solve a problem when this error came to me : " stack around the variable 'X' is corrupted " the program is wo...
[3 replies] Last: ohhh No worries I got the mistake :) you were right it have to do wit... (by husseinmd)
Design question
 
For some special kind of data transmission, i created a Packet class and a Packet-Generator class which creates a packet. The packet class itselff only conta...
[2 replies] Last: I'd say it depends. If the data is rather fixed and not overly compli... (by coder777)
Function pointer problem
 
I'm trying to do something basic in C++, create a pointer to a function but it's not working. In the header file I have this: void (*ptr)(unsigned char*, int...
[5 replies] Last: Sorry about the code tags. THANKS!!!! (by RonInNewYork)
Make C++ code compile faster, (taking more than hours to compile)
 
#include <iostream> #include <fstream> #include <vector> #include <iomanip> #include <cmath> using namespace std; void Read_From_File(vector<double...
[10 replies] Last: Yes @ Andy, @ cubbi any suggestion as to how i can make it finish the... (by MikeyBoy)
OpenGL
 
I a linux user I'm going to make a game and I'm going to use C++ with OpenGL. what my question is where I learn OpenGL.
[2 replies] Last: modern openGL tut: http://www.opengl-tutorial.org/ Aceix. (by Aceix)
by bobr
infininte loop
 
in is code I have an infinite loop but im not sure if removing it will hurt the switch statement that I have in main...will it? int main() { ...
[1 reply] : Do you intend to reduce it to: int main() { int value; ... (by keskiverto)
by RD7
Fixed point int min value
 
I am reading about positive and negative infinity in c++ and i am trying to implement them in a fixed point math arthimethic implementation i can see that max ...
[1 reply] : It depends on what representation is being used but in two's complemen... (by Peter87)
Need help C programs on mac/linux
 
the below program i need to run on mac/linux terminal compling gcc 1. write a program in c which recieves a file name on the command line and which ...
[1 reply] : Move your topic to Linux programming. You will probably find more help... (by MiiNiPaa)
Unions!
 
From my book: The use of Unions ➤You can use it so that a variable, A, occupies a block of memory at one point in a program, which is later ...
[16 replies] Last: You don't have to use a union. Unions are a unique construct, so there... (by closed account zb0S216C)
dynamic memory allocation
 
I have an error saying expression must have a constant value could any one please help me out void transpose_vec(double matrix , double matrix_t ) { ...
[11 replies] Last: heyy thank you soo much the nested std vector works, you really helped... (by ravi123)
Using a template class
 
Im just learning using class template but I keep getting error unable to match function definition to an existing declaration template <typename T> class H...
[10 replies] Last: You're right Peter87! I wonder if one can return a specific type of Ho... (by Bourgond Aries)
Dynamic Progamming
 
I am getting "Access violation reading location 0x029C4010."error while running this program though It does not show any errors. What is wrong with this? thanks...
[3 replies] Last: Thanks. I used a vector instead of array. (by Carolpp)
Compiler shows no errors, then 100+ errors
 
My compiler gives me no indication that there are errors until the program runs. The list of errors is too long to post. Here's an example though... Error ...
[4 replies] Last: prototype: void questionAnswer(Questions , int); definition: void que... (by cdashdash)
Urgent, need help for final
 
I have no clue what to do, i have been working on this for the past 4 hours and still no clue. this is the assignment. Scenario: The Client will be receivin...
[1 reply] : What have you written so far? (by pogrady)
Class Inheritance
 
From my book: "There was a good reason to choose the version of the class CBox with public data members in the previous example, rather than the later, more se...
[4 replies] Last: But I still dont understand what it means they are private to the base... (by Anmol444)
by Daleth
-0 Architect
 
So I had some code that would return -0, so I used a checker similar to this: if(result == 0) result = 0; However, after reading a bit from an assemb...
[9 replies] Last: It worked correctly for me? It got rid of the -0, and when I compared ... (by Daleth)
Questions Game. Help Needed
 
I know this are quite simple errors but I'm having trouble resolving them. Any help would be appreciated. Header File #ifndef QUESTIONS_H #define QUESTION...
[5 replies] Last: Thanks for the help guys. On to the next phase of the program. Still h... (by cdashdash)
pointer to array element
 
Hello , everyone I just have a quick question as I cant find much on google about it. How would I go about having a pointer to an array element specificity a c...
[5 replies] Last: Thanks alot Daleth that helped alot. (by otisphat80)
Binary Representation of a Number
 
Below code is for Binary Representation of a Number. This code works fine.....but i don't know why if((x&(0x80000000))>0) should be <0 instead of >0 because ...
[1 reply] : Was as confused as you were also, so I went ahead and printed the valu... (by Smac89)
May 2013 Pages: 1... 2324252627... 47
  Archived months: [apr2013] [jun2013]

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