General C++ Programming - November 2011 (Page 13)

Please clear this :-
 
I am new to this forum.I hope I am posting the question in the right place. char qu ={"Nitin","Gupta"}; // Invalid char *qu ={"Nitin","Gupta"}; // Valid ...
[7 replies] Last: Thanks Everyone (by nitingupta)
Read Unicode file and convert to hex
 
Hi, I'm trying to read a text file that contains chinese characters (saved in unicode format). From there I want to convert it into the hex equivalents fo...
[6 replies] Last: Thanks for that helios. I'll give it a go and then try implementing it... (by ahoysailor)
Can I create some sort of list of items of different type?
 
I have a list of vectors that look something like this: vector<int> vec1; vector<float> vec2; vector<double> vec3; vector<bool> vec4; These vectors all desc...
[3 replies] Last: There are no heterogeneous vectors. When one is needed, either vector ... (by Cubbi)
How to find algorithms for any program?
 
I have encountered many problems and in some I could find the algorithms but in some I fail to do so. Last year we had to make programs regarding armstrong num...
[no replies]
help with inheritance/class arrays
 
Write a tennis registration program that admits members who are either a student or a staff. Design an object-oriented program which consists of the following t...
[2 replies] Last: // Test_2.5.cpp : Defines the entry point for the console application.... (by sabbabcfc26)
GLFW - Window close callback?
 
Hello, I created a very primitive application which is both DirectX & OpenGL compatible. As I already mentioned, it's primitive, but it works... almost. The...
[no replies]
2d Array Determine where chars change
 
Ok honestly had no idea how to word the title. I need help on this quick as it's already past due and I've been struggling with it for a while now. Basically...
[1 reply] : On line 118: if(yard = 'B') is an assignment. Change it to if(y... (by coder777)
no argument error while using template
 
Hello all, I was trying to make a templated matrix class for basic operations viz addition,subtraction,etc. While I was able to do all of the functions,I am...
[1 reply] : You wrote 'GetEleme m t' instead of 'GetEleme n t'. (by helios)
How can I catch an exception throw from other shared library?
 
I want to catch an exception throw from other shared library with specify type. The shared library is not link by the linker, but dynamic loaded by system API l...
[2 replies] Last: I want to implement a plugin based program such as eclipse and netbean... (by s51563946)
I/O issue
 
So i am trying to read some files and it works until a certian file in which it fails and files following fails. The name starts at 2011-11-11_0100.csv It...
[3 replies] Last: whenever some thing fails while reading a file the error flag is set t... (by Rishi Rai)
by kdog04
multiplying matrices w/ arrays
 
can someone please tell me what i am doing wrong i have stared at this code long enough. it works fine with integers but doubles give me overload. i know it is ...
[1 reply] : how is it not working? and maybe some example-input would be nice (by Mathes)
question about dynamic allocation of vectors
 
Hello, I am working on a program that will use structures which contain vectors of vectors (a jagged matrix essentially). I am told that vectors load their con...
[4 replies] Last: That makes sense, thanks! (by ausairman)
by zzmgd6
passing a char pointer between 64-bit to 32-bit dll?
 
New here. I have a 64-bit dll application that calls a 32-bit dll. The function call of the 32-bit dll is; int SOMEFUNC(int input_code, char *input_str,...
[no replies]
Error in - classes
 
Hello. The question was asking for. (i) Create a class called Purchase. (ii) Data member (set to private) : name(string), qty(int), price(float) and total(...
[2 replies] Last: Thank you .I have tried and I got error on the below of it. I dnt kno... (by xenon69)
Text-based maze game help
 
#include <iostream> #include <fstream> #include <string> using namespace std; struct Node { Node(); char Name; Node *North; Node *Sout...
[4 replies] Last: Cuz it's wayyyyyy toooooooo longggggggggg.. (by aruawons)
i would like someone to learn c++ with me
 
I am looking for someone around 14 to learn c++ with me, not train me, but learn with me. my email is justdustin902@yahoo.com
[no replies]
Switch statements and segmentation faults
 
I get segmentation when I run the program. Please help me figure out why. I've posted the two chunks of code that should include the problem. Thanks! Let me kno...
[4 replies] Last: int main() { fstream inStrInfo; fstream inStrBal; fstream outS... (by mtho121)
Approximating Pi in C++
 
I am supposed to make a program that approximates pi with the following formula in C++ pi = sqrt( 6*(1 + 1/4 + 1/9 + 1/16 + 1/25 +.......) ) So far I have wha...
[3 replies] Last: Oooops disregard my thread above........your x+= expression is correct... (by buffbill)
vectors and derived classes (1,2)
 
Hi, all - Today I finally encountered a need for using base and inherited classes, so I'm stumbling my way along. First question: if I create a vector of a b...
[33 replies] Last: OK, that makes sense. I'll go with the original implementation. Thanks... (by mzimmers)
Problem with beeps in a Piano
 
Hey, I am basically trying to make a Piano sort of thing in C++. I know how to play a certain sound using beeps and their frequencies. But what I want is that ...
[2 replies] Last: For a console application, you need to do some special processing. On... (by Duthomhas)
November 2011 Pages: 1... 1112131415... 47
  Archived months: [oct2011] [dec2011]

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