General C++ Programming - June 2008 (Page 3)

Structures???
 
Hey, Im beginner to programming. I have to learn it for one of my uni courses. I was reading about structures and they keep talking about "instances". S...
[3 replies] Last: yea you got it... and i like Duoas your metaphores...ok desichor7..thi... (by SirCapsAlot)
limit on array size
 
hi, i m writing a program to analyse some data.....i need to declare an array of size ~10^6-10^7...right nw i m unable to work with an array of size greater th...
[7 replies] Last: you double posted twice...try to minimize that :P (by SirCapsAlot)
by memoid
simple polymorphism question
 
Hi all, I have a simple C++ OOP question regarding a problem I've run into. I have a Particle class, and ParticleManager class which handles a list of Parti...
[1 reply] : Problem sorted. Solution involves removing the ParticleManager::add() ... (by memoid)
by pekt2s
Data connection and reading a text file and write again
 
Hi all. Im new in C++. May i know how to connect into database? and I'd like to ask how can i read a text file and write it again. Hoping for your answer. Thank...
[3 replies] Last: Thanks for the reply. Guys can you give the name of good C++ installer... (by pekt2s)
Deitel C++ How to Program Sixth Edition?
 
I lost the disk that came with my book, and I was wondering where I can download the software because I don't have any program to program with right now. I am u...
[1 reply] : Visual C++ 2008 Express edition can be downloaded for here: http://ww... (by closed account z05DSL3A)
by zaryk
my brain hurts - ideas?
 
For the past few days I have dedicatedly put my mind into how certain types of programs work, and looking up information. These programs consist of: 1. inte...
[2 replies] Last: Some time ago I had a book called Developing Your Own 32-bit Operatin... (by closed account z05DSL3A)
making a list class
 
ok. I need a bit of help. I'm designing a console app that will act sort of as a database for storing some information. (using C++ and trying to use OOP as much...
[8 replies] Last: in fact, i'm wondering if map would be correct or maybe i should make ... (by Aakanaar)
Errors in my code..
 
hi this is srinivas.. here is my code.in this code iam getting errors at case 6 statement.please suggest me how to solve it. #include <fstream> #include <...
[2 replies] Last: If you would post the errors you (srinivas) get, we could better help.... (by dwk)
fstream bufer
 
hello i'm a little confused . i know that befoer reading in binary mode from a file using the "read(char* bufer , int syze )" i should alocate inaf memory...
[2 replies] Last: I'd only imagine you would get an access violation if you tried to acc... (by Zaita)
by ooqooq
what is wrong with this search
 
I tried to binarysearch "Bill", "Eve", "Al", "Fred", but it seems like I failed to search "Al". #include "stdafx.h" using namespace System; int main(ar...
[2 replies] Last: Actually, the names and weights are pairs one by one, like (Jill, 103)... (by ooqooq)
problem with using gnu mp on ubuntu 7.04
 
my system has: - ubuntu 7.04 - code::blocks IDE w/ gcc compiler - gmp-4.2.2.tar.gz which is downloaded here >> http://gmplib.org/#DOWNLOAD I install...
[1 reply] : Please don't post the same question to multiple forums. (by bnbertha)
Can I use CTRL-R and CTRL-H shortcuts in an Internet Explorer plug-in?
 
I am working at an Internet Explorer plug-in. (afp viewer plug-in) I want to use the shortcut keys CTRL-R and CTRL-H to do some actions (reset view,...). The ...
[no replies]
Some very basic problems about sorting algorithms
 
Hi, guys, I have several question about the sorting algorithms. Hopefully u give me the explanation. Thanks. 1. Can you use the times for smaller arrays ...
[no replies]
ghraphics in dev c++
 
hi all i create a console graphics programme in dev c++ with library <graphics.h> but a error is shown before the execute the programme. ERROR is graphic...
[5 replies] Last: AFAIK. I've never used it. (by Duthomhas)
How to improve my C++ Quiz show game?
 
Can somebody help me how to random questions in c++? Here's a part of my program... for (i = 0; i <= 10; i++) { question = int(double(rand())/RAND_MA...
[1 reply] : Your for loop only goes to i=9. So putting if i==10 will do nothing be... (by mrmarky2)
simple problem with template function.
 
Hi all, My code was very fine until I added a function to a template: /// Format a string with all names of the factory template <class T> std::string ...
[2 replies] Last: Yep, was just going to say that, here is quite a good explanation as t... (by bnbertha)
about pointer to funtion
 
This is a question from Stroustrup's book(The C++ programming language special ed.) Q: what does the following mean? what would it be good for? typedef int ...
[3 replies] Last: The same rules apply as the difference between a reference to a variab... (by bnbertha)
ifstream Problem..
 
Basically I open the text file (test.txt) and that contains a few words only and the first time it is opened and read line by line it works. I then seekg() to t...
[3 replies] Last: I also encountered this kind of problems before. Then I tried to read ... (by Hypatia)
getrusage problem
 
I found the code given below on the net sampling the use og getrusage. But when I tried to execute it in VC++6.0 it couldn't find sys/time.h and sys/resource.h....
[1 reply] : Those look like unix/linux directories So you could well have problem... (by guestgulkan)
New wikibook about efficient C++
 
Hello, I just completed writing an online book about developing efficient software using the C++ language. You can find it here: http://en.wikibooks.org/wiki/...
[no replies]
June 2008 Pages: 123456
  Archived months: [may2008] [jul2008]

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