General C++ Programming - March 2012 (Page 17)

macros declaration in headers
 
hi, I have doubt about macros declaration in header files.. I saw one example in that header files are declared like this.. if temp.h is a header file ...
[5 replies] Last: I also saw another post about this topic in detail http://www.cpluspl... (by kalyanreddy)
C++/C code to convert .bmp to .jpg
 
Hello all, I'm trying to find some code to convert a .bmp file to a .jpg file without having to link in any libraries to do this. Does anyone happen to hav...
[3 replies] Last: Windows already has gdiplus builtin, other operating systems will requ... (by modoran)
by Bouya
Problem with compilation
 
Hi i wanna execute this program with gcc, but i had this problem: undefined reference to `ajouteDeux(int)' collect2: ld returned 1 exit status math.h:...
[6 replies] Last: @bluecoder - That is also a solution , but it 1) changes the original ... (by AJIT DESHPANDE)
by lasert
Problem with transposition with Armadillo Library
 
Dear people, I am programming a Kalman Filter and i decided to use the Armadillo library for linear algebra. I have troubles with Matrix transposition. I ca...
[2 replies] Last: Hello, Yes it was a problem concerning linking to Lapack and BLAS. My... (by lasert)
Parallel port communication
 
I'm trying to communicate with a device with a parallel port, but I'm having troubles (windows XP x86). The device is not a printer, in fact I don't even have ...
[15 replies] Last: I've seen that tutorial. That was my original attempt. Unfortunately... (by Stewbond)
variable diagrams
 
Don't know if any1 can help me here but I'm stuck. If I have to draw variable diagrams about the following stuff: #include <iostream> Using namespace std...
[2 replies] Last: @Stephie22 You had some of the variables capitalized while referring... (by whitenite1)
Read and compare two textfiles.
 
I'm writing a program that reads two files and compares them. One file holds chunks of strings that are to be matched to places in the other, big file. Up till ...
[3 replies] Last: getline(ref_file,reference); src_file >> source; reference.find(sourc... (by ne555)
by AcarX
How Drawing Libraries Works?
 
How Drawing Libraries Works? For example SDL or OpenGL or Directx. Can i create my own drawing library? Thx for answer.
[12 replies] Last: I'm using SDL and SDL has own socket library.So how can i think using ... (by AcarX)
3d projection problem!
 
I've tried in many ways to project a point to the screen. I read somewhere that this was the way. screen_x = ((+((point_x-viewpoint_x) / (point_z-viewpoint_...
[3 replies] Last: There isn't enough information here. What API are you using for dra... (by MrHutch)
Algorithm
 
Og sp when using string.find(StringToFind); its dead fast! And it can locate a characters in a second even with a string\ buffer witch is 1 - 8 M bytes. But whe...
[4 replies] Last: Pos is the value returnd by .find(). + the length of MatchString so sh... (by WetCode)
Help with beginning programmer
 
Hi, I'm trying to write a simple program, but I keep getting errors. Is there anything glaringly wrong in the following code? Thanks! // INSTALLATION: ...
[5 replies] Last: File streams aren't booleans! WHY DOES EVERYONE KEEP DOING THAT!?! Us... (by closed account zvRX92yv)
by AbG
Seeking help to do a C++ prodram
 
Hi I have a problem in doing my C++ program. The program is as follows:- "Write a C++ program to display the roll number and height of the tallest stude...
[1 reply] : We won't do your homework for you, only help you if you get stuck. I ... (by closed account zvRX92yv)
Converting in between UTF-8 UTF-16 and UTF-32
 
Hi, Few days back I got some encoding problem, while solving and reading about encoding I reached at this link, which is quite simple. http://docs.wxwidge...
[no replies]
Cant initialize a class object in main.cpp
 
Hello In my program/project, I have created a class which I call Polygon, but when i try to make an instance of the class i get an error. ... int mai...
[16 replies] Last: Ok I believe I have found what the problem is I cannot use the name P... (by ProjectB)
Modifying a singleton design pattern
 
Hello, I have a program currently working which is doing the communication with a hardware module. This program has been written using a singleton design patter...
[1 reply] : Another solution would be to completely remove this getInstance method... (by Esteban)
A question on how goto statement works
 
Here's the thing. I've written some code like this if (statement1) { if (statement2) { code1 } else mark1:if(statement3) { code2 ...
[8 replies] Last: I got it. And I know now how while loop can replace "goto". And it wor... (by Janeson89)
by soranz
asctime vs asctime_s (deprecated)
 
Hi ! I'm trying to convert my asctime calls to asctime_s but I'm having trouble with the first parameter... //timestamp time_t ltime; /* calendar time */...
[2 replies] Last: Ahhhhh :) I have it working now thank you ! (by soranz)
input file fuction
 
I have completed the code for my program, which is to calculate the area, perimeter, and type of triangle formed from the given lengths of its sides. The sides...
[1 reply] : your problem is in this code: while (inFile>>N1>>N2>>N3) { ... (by Azagaros)
help passing array through function!
 
Please help me pass line 16 through line 39 into my function! I have no idea how to do this I have tried so many unsuccessful ways! #include <iostream> #inc...
[5 replies] Last: Are you trying to get something other than this, which is what I get a... (by Duthomhas)
Errors in BST
 
I don't understand the errors that I get. Here is the code where it is having trouble: void BinarySearchTree::findElement(struct tree_node* node, int d) {...
[2 replies] Last: Thanks! It didn't quite work though. Now I get this error: bst.cpp:... (by giszzmo)
March 2012 Pages: 1... 1516171819... 49
  Archived months: [feb2012] [apr2012]

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