General C++ Programming - April 2010 (Page 16)

by jt1991
what error??
 
xD xD
[11 replies] Last: Two things about this thread that irritate me a lot: 1. OP deleting [... (by chrisname)
cplus_demangle
 
I am compiling my project. With gcc 4.4.3 I don't get any error. But with gcc 4.3.2 I get undefined symbol: cplus_demangle while running the executable. Any ide...
[3 replies] Last: No, it was not built from source. It was simply installed using the re... (by rachitagrawal)
by wrz234
int value
 
how to printf exactly 0605? help pls.. value =0605; printf("%d",value);
[3 replies] Last: Make sure you are aware that in C numbers with a leading zero are oct... (by Duthomhas)
programming practice - coding utility functions in C++
 
Hi, I have a couple of questions: 1) How would you create a header file with full of function templates with declaration and definition separately... Is i...
[3 replies] Last: 1. You can preinstantiate template functions in almost the same way yo... (by kbw)
Candidates for class membership
 
Hi there, I'm having some doubts about how to arrange some functions for my simple SplayTree class, anyway the topic discussed here should be applicable to vir...
[7 replies] Last: If you use "normal" classes (no templates), I'd still prefer my "decis... (by imi)
hashing code required..
 
hi friends. Select 30 keywords of C++ language and try to write a hash function that return a unique number(index value) for every word in the range from 0...
[11 replies] Last: SHA* or MD* are Cryptographic hash function . Cryptographic hash ... (by closed account z05DSL3A)
copying a CString to array
 
Hi, I have a code as given below. I've declared 2 CString with names m_movex and m_movey . Also as shown in the code, I have 2 arrays with names locationX a...
[1 reply] : The function you need is called strcpy. Or strncpy (strlcpy) for safer... (by maikel)
Seating Assignment
 
I need help doing a seating assignment.Write a program to assign passengers seats. Assume the seat numbering as follows. 1 A B C D 2 A B C D 3 A B C D 4 A B...
[4 replies] Last: Yes, well somewhere in the relevant function you could include a count... (by buffbill)
Problem with Class Inheritance Assignment
 
Hi guys. There are two problems with my program. One is that my program exits automatically after the if statement is satisfied (e.g. it cannot work if my balan...
[no replies]
multiple class file (constructor with default value)
 
can someone help me with this code plz I dont know what the error is. in my container.h file i made constructor under public Container(int maxCapacity =...
[3 replies] Last: I changed the code to Container::Container(int maxCapacity){ // ... (by whoami32)
by wrz234
My program does not go to switch case.
 
Im writing an project on time format conversion. Why my program does not use case 'a' and case 'p', when i input 'a' or 'p'? can correct for me? Because i wa...
[2 replies] Last: nope, in a switch case control statement, the control variable must b... (by wrz234)
by xisu
Nice ogv converter
 
( www.ogvconverter.com/ )OGV Converter is a versatile OGV conversion tool which can be taken as OGV File Converter and OGV Editor. As a leader of all the video...
[no replies]
Need correction let me know
 
#include <iostream> //for cin and cout #include <iomanip> //format output data #include <cmath> //for enables math functions to be used #incl...
[2 replies] Last: Oh i got that fix (by hasakura)
operator * overloading C++ (1,2)
 
Hello, I know how to overload the * operator. But, my concern is how to implement it for a matrix class . I would like to implement both matrix multiplicati...
[20 replies] Last: In other words: C++ does not restrict the introduction of prohibiting ... (by tition)
The last entry of my file is printed twice (1,2)
 
i need help asap! my project is due in two days & i cannot fix this problem :( code TotalLodgements() { FILE *fp; ...
[22 replies] Last: does any1 kno a software that will allow a cd to self install so that ... (by ali101help)
error: expected ';' before '<' token
 
As of today, I have been working on a list class template for a week. For whatever reason, I cannot get the "List.h" and the "List.cpp" file to play nicely with...
[2 replies] Last: Thank you, putting guards on List.cpp fixed the problem. (by holymoo)
two linking errors..
 
please remove two linking errors...its bugging my head... #include<stdio.h> #define SIZE 10 #include<stdlib.h> void MergeSort(int array ,int length);...
[2 replies] Last: ya, found out... thanx a lot, for such a quick response. i am highly ... (by imbenzene)
Reading in lines in the middle of data file
 
I'm trying to create a program that reads in data for 3 separate days and analyzes it. The data file has 72 lines (24 for each day). I figured out how to read t...
[3 replies] Last: It looks like your file is organized as: 1 2 3 4 5 6 7 8 9 10 1... (by Duthomhas)
How to resize/scale surface in SDL?
 
I want to change scale of my surface, because it's too big and I don't want to redraw everything. Here's the code to create image in SDL SDL_Rect gra...
[1 reply] : SDL is not designed to do image manipulation - only display. This is t... (by Duthomhas)
by helios
User level paging
 
Does anyone know of a library that handles paging (as in, using the HDD as memory) at the user level or whether such a thing exists? Google gives me mostly irre...
[no replies]
April 2010 Pages: 1... 1415161718... 24
  Archived months: [mar2010] [may2010]

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