General C++ Programming - January 2010 (Page 11)

Formatting a double number without rounding off
 
Hi, I wanted to know is there any way to represent the double number without rounding it off. Well i have a double number let's say 0.123456789123456789123...
[6 replies] Last: I see. Thanks Disch. Well how about converting the input to array f... (by olredixsis)
C++ GUI Toolkit for use with OpenCV
 
I will be doing a final year Electrical Engineering project using OpenCV this year, I'm starting to learn it now and I have a couple of questions... I am thi...
[3 replies] Last: Cool, thanks I got FLTK with Dev-C++, and it seems good, but are th... (by ahkcasfm)
windows sockets (WINSOCKS) problem (1,2)
 
Good Am/Pm, I'm currently creating a client server application and I'm using Visual Studio 2005 and Microsoft Windows. I've been using this WINSOCK API for ...
[21 replies] Last: Hello Guys, Yes I'm checking the recv return codes. The "ByteRe... (by syncopath)
by jakem
Change Pointer via function call
 
Pretty sure this is just some silly syntax that Im having trouble grasping. Im pretty familiar with C style pointers but have never used them this way and hones...
[8 replies] Last: You have been more than helpful iharrold. Thank you for all your help.... (by jakem)
problam in filing
 
hi my friends i am iranian, i cant speak english good yet !!! please see my code , and help me http://www.box.net/shared/1jre31sku2 very tnx ...
[4 replies] Last: i cant show all records of file , The show function write one rec... (by mabbaszadegan)
by Nikhar
Whats wrong with the following backtracking "Knight's Tour" program?
 
I have made a program to the follwoing problem:- Another chessboard puzzle (this one reputedly solved by GAUSS at the age of four) is to find a sequence o...
[11 replies] Last: Oh jRaskell...thanks a ton for your help! I absolutely love you :D :p ... (by Nikhar)
Debugging null objects
 
I was wondering if there's a language-level construct or gcc directive to accomplish the following effect: class foo { public: void DoSomething(void); ...
[7 replies] Last: Something like this may work in a pinch: template <typename T> st... (by PanGalactic)
by paul23
vector iterator dereferencable?
 
Well first time I receive such a warning: I'm using VS 2008, and I get a debug-error (pop up window) when running my program: Debug Assertion Failed! Program...
[6 replies] Last: Oh, yes, your find_if() function returns an iterator into the vector<>... (by jsmith)
Recursion and for loop
 
Hello, i'm creating a program that solves graph problems, and, for searching for a shortest way from point to point, i made a recursion. And instantly faced ...
[1 reply] : What you are describing should not be happening given the above code. ... (by jsmith)
#include <sstream>
 
what is #include <sstream> used for?
[3 replies] Last: it is the same as the directives iostream which is useful for input ... (by magnag)
by yag
memset causing coredump
 
I have a below line of code which i think the source of coredump memset(msisdn,'\0',10); can anybody please explain on which instances memset causes core?...
[5 replies] Last: A program should not crash by calling memset() like that on such an ar... (by helios)
What does the Data area contain ?
 
Hi there! According to this: ---> http://en.wikipedia.org/wiki/Data_segment RAM area contains: * Data Segment (Data + BSS + Heap) * Stack ...
[5 replies] Last: What part of my response was unclear? absolutely not... I meant an... (by iharrold)
what is the difference between == and =
 
what is the difference between == and =? i tried this out with a primitive calculator that i created #include <iostream> using namespace std; int main ...
[3 replies] Last: tyvm i get it now (by marvolo1300)
memcpy
 
Hi, is it correct(I mean "norm correct") to use "overlap" pointers as parameters of memcpy function from memory.h header? Example: //move 3 elements of th...
[3 replies] Last: It's exactly what I need to know. Thank you so much! (by Mihulik)
factorials
 
Hi I'm trying to write a program that prints out a table of factorials in the range of 1 and 10 and the numbers cannot be negative. i almost have it done howeve...
[7 replies] Last: ok thanks :D (by coolProgramer5)
by vichor
Private friends
 
Hi, I've got a problem with friend functionality. Hope you can help. I've got two classes with private destructors. One of the destructors needs to call t...
[5 replies] Last: you made LandMark to be a friend of LandObject, friendship isn't symme... (by Bazzy)
by ggf
C++ linkage error
 
I am porting a code which ran on HP unix to CentOS. It was a working code and compiled with gcc3.1.x and a c++ file and now I tried to compile with gcc3-3.4.6 a...
[4 replies] Last: I'm not sure if this helps or not, but when mixing C and C++ I always ... (by moorecm)
Simple Graphics C++
 
Hello all Is there any simple graphics library in C++? My requirements(as mentioned below) are very simple, and thats why I dont want to waste 1 month learni...
[7 replies] Last: Old and depricated... but easy to use and lightweight non the less.. ... (by iharrold)
by gipark
Reading data from a file, basic.
 
I want to read columns of data from a . dat file and store them in an array. my data file looks like this: X-Mesh 1 0.000000000000000000E+00 0.830078124...
[4 replies] Last: Has anyone tried reading the numeric data like this: #include <fst... (by moorecm)
tm structure filled wrong by the system?
 
Hey, i have a problem with the following code... more precise with the tm structure. when i run this code, it seems that the tm structures members tm_mon an...
[3 replies] Last: oh ok... thank you and sorry for this... have to read the libs more... (by Incubbus)
January 2010 Pages: 1... 910111213... 17
  Archived months: [dec2009] [feb2010]

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