General C++ Programming - June 2012 (Page 11)

by jorgen
g++ can't find files
 
Hello, I have a program that uses some files in different folders. I won't post the entire program because it's big, but suffice to say I get this error when...
[2 replies] Last: Thanks for the reply! No I haven't done this (I didn't need to on my ... (by jorgen)
Use of "typedef" to Define a Matrix
 
I am trying to grasp the use of the object-oriented features of C++ in financial models and decided to practice by copying and running the source codes in a for...
[13 replies] Last: In defense of the authors, they do say that they have taken some liber... (by swong01)
recursion function with ncurses
 
I'm trying to make a function which creates a new element by calling itself recursively. I have a rough idea of how to do this but not really fully to implement...
[no replies]
800ish WM_PAINT Messages per second?
 
I'm not even sure where to start. I put the following code in my WM_PAINT message handler, near the top before the switch: if (message==15){ char t ; ...
[4 replies] Last: Interesting. I followed the logic in the debugger very closely, and... (by ekisner)
by sanyam
making a .cgi in c++ work?
 
I recently came to know about cgi. So I made a simple program in c++. #include <iostream> using namespace std; int main() { cout<<"Content-type: text/plain"<...
[3 replies] Last: Compile first the program (preferably directly on the server), give it... (by modoran)
query
 
//print repeated elements from an array #include<iostream> using namespace std; int main() { int p,n; int a ,b ; int z=0; cout<<"enter...
[7 replies] Last: Yes, got it. thanks man.. the output repeats itself for every element... (by contactsrijan)
Makefile Syntax
 
# Link command: ASCII_RPG: main.o get_res.o loadalleg.o header.o functions.o c++ main.o get_res.o loadalleg.o header.o functions.o -o ASCII_RPG ...
[3 replies] Last: Never mind, problem fixed. Thank you for the help. :) (by closed account GbX36Up4)
Random Number Generator - rand() & srand()
 
I'm trying to use rand() to produce a random number, however, the result of this function is the same everytime I run the program...here is my code...simple: ...
[4 replies] Last: srand() seeds the PRNG, you just call it once at the beginning of you ... (by kbw)
Pointer/Octree/Access-violation Problem
 
I have this class that is going to be an Octree class. I am using an array of pointers to reference each 'node' beyond the current node, my issue is that when I...
[3 replies] Last: I didn't initialize root AFTER I posted this That's no surprise. The ... (by coder777)
Issue when using SQLExecDirect against Oracle DSN
 
Hi all, Im having an issue when executing SQLExecDirect function in the code below: SQLHANDLE handle; //SQLSMALLINT type; SQLHENV env; ...
[no replies]
by sanyam
text editor in c++.
 
Hi. I want to make a text editor in c++. I want to take input from the user char by char and then if I detect an input that is meant to alter, the input should ...
[11 replies] Last: Thank you very much Zhuge. (by sanyam)
why doesnt char name[10] work?
 
char name ; int main(){ cin<<name<<endl; cout>>name>>endl; } if i put my name a wernkjofnwjotrnwenkormwoekmrkowemkormom it displays all the letters, an...
[12 replies] Last: you can use this overload: template<int n> istream& operator>>(istrea... (by viliml)
C++ simple money program help
 
I am attempting to write a program that defines a class Money which contains two integer data fields, dollar and cents. And then Overload four arithmetic operat...
[1 reply] : As the error kind of says you have a function called Money that takes ... (by Hippogriff)
Trouble with arrays I think
 
The purpose of this program is to determine a typical random die roll of n dice with m sides. Right now I'm not finished with that. I plan to the likelyhood of...
[no replies]
Looking for library to solve Inequation
 
Hi i'm actually a student looking to solve inequation : A+B < M1 A+C < M1 I can't find any library that's make me able to solve this. Could you please give...
[10 replies] Last: I am thanks!!! Google wasn't my friend yesterday when trying to find o... (by soranz)
linked lists and pointers clarify
 
let's say I'm building a BST (binary search tree) w/ node as such: struct bst_node//Binary search tree node { int data; bst_node* left; bst_node* r...
[4 replies] Last: I thought it was b/c of the fact that a bt_node is a special pointer f... (by closed account 4ET0pfjN)
DW-server(source cod)
 
hi i search that for 22 days forDW-server source cod (DemonWare Server source code) but i cant find any thing and some guys have that but they don't want share ...
[4 replies] Last: Hey, I don't want to be a downer but that's kinda horribly illegal (gr... (by sargon94)
by viliml
Which container to use?
 
Vector, deque and basic_string all seem to be very much alike. So, what are the capabilities, differences, pros and cons about each of those? I always used vect...
[6 replies] Last: Bug in your compiler or STL. (by rapidcoder)
Bitblt Question
 
Hi, I'm having problems with screen flicker and as I understand it BitBlting is the way to go. In all of the examples I see, however, they use bitmaps.... I'...
[15 replies] Last: To test this, I have implemented the following code, using a global in... (by ekisner)
Max vector size
 
Is there a maximum size a vector can reach? I know it's over 5 million chars (since I've already done that) but can it hold 25 million data points?
[11 replies] Last: Ahh, I see clarity now, gotcha. Pretty nice stuff, it'd make a heck of... (by sargon94)
June 2012 Pages: 1... 910111213... 33
  Archived months: [may2012] [jul2012]

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