General C++ Programming - September 2011 (Page 20)

several Header and C++ datafiles
 
Hi all. I would like to structurise my programm a little bit better. Therefore, I have in my mind to use one general main.cpp where I only call a lot of differe...
[15 replies] Last: Perfect! Many thanks to both of you!!! No it works and I can keep that... (by MCJamaica)
computer science degree question
 
If you want to learn C++, java, HTML, all to the point of making games and posting them to the internet (to play or download to play), is the computer science a...
[10 replies] Last: 1. Imagine a spreadsheet. In a spreadsheet, columns have letters and r... (by helios)
malloc vs new, where to use malloc ?
 
Just for gathering more thoughts on it, i would like to post this question. I have drafted some points for malloc vs new ? in my article <link for it is : http...
[2 replies] Last: The short answer is nowhere; use new . One could argue that using ... (by Moschops)
main.cpp using sphere library
 
Hey, guys. I am having problems with compiling the files, and I can't figure out the problem. Here is the code: main.cpp #include "sphere.h" #incl...
[1 reply] : which compiler are you using? if(MSVC) ensure all these 3 files list... (by aj3423)
by DSTR3A
Change Registry Value
 
I'm trying to chage the value in the registry from 0 to 3, but this code isn;t working. It compiles but doesn't change the value. #include "stdafx.h" #inc...
[7 replies] Last: Huh?? Why do you need that? I mean, you can verify if the value chan... (by webJose)
symbol '$' at x,y co-ordinates
 
this is my complete requirement, I have one array, say x and got following values 0,6,12,18,24,30,36,42,48,54,60,66,72,78,84,90 an another array of values as...
[no replies]
Class public members alternatives..
 
Hi everybody! I just registered here but I have been reading some articles in this page and the whole Internet. I'm rewriting an application using C++/Qt ...
[2 replies] Last: Thanks for the answer webJose.. I think I will use the second option ... (by Danielc)
[win32 API] Animation + custom buttons
 
#1 is there any way to insert jpg image and rotate it until I'll stop it in another part of the code? #2 how can I make custom icon for buttons? like this: h...
[14 replies] Last: I beg to differ: Code become messy when you combine with UI code. No... (by webJose)
visual c++ *.exe - Unable to locate Component
 
I'm trying to build a project that uses cURL-7.18.1 in Visual C++ 2008. I have installed cURL correctly, no problems there. I linked to the libraries folder ...
[1 reply] : Windows looks for DLLs first in the working directory, next in each of... (by helios)
strcat()
 
I am writing a c++ program that involves a bit of cstrings, and I was wondering if there is any way to check to see if strcat fails?
[2 replies] Last: What do you mean by "fails"? The strcat () function always succeeds. ... (by Duthomhas)
Pointers and Dynamic Memory Allocation
 
I have to do this in c programming and not C++.
[9 replies] Last: This is almost what you are looking for: #include <stdio.h> #in... (by bandicoot360)
Accessing an array outside of a For loop
 
I am working on an assignment for school and I'm stuck. Generate 50 non-repeating numbers between 1 - 1000. Then, sort numbers using a bubble sort. Then sort...
[7 replies] Last: If you want to print the numbers, you do that with another loop. There... (by hanst99)
cURL LNK2019 error: linking error
 
I'm trying to use cURL with Visual C++ 2008 Express... First of all, I'm using the recent release of cURL: v7.21.7. I've successfully built cURL 7.21.7...and...
[2 replies] Last: I fixed anumber of things forget the errors above...the problem now, t... (by paulmcco)
iterator for binary tree
 
Suppose you are given the root node Node root; of a binary tree. How would you write an iterator for the tree? (Note that each node node has two attribut...
[1 reply] : Traversing it recursively: void iterate(Node* node) { if(node==NULL) ... (by hanst99)
by tition
Advice on doing graphics in software
 
Hi all, I want to do a mathematics visualization project, and I want to produce a software-rendered (n-D) animation. The animation should consist of draw...
[1 reply] : Hi, This can be done using openGL. For a framework use freeglut or S... (by mik2718)
Error with Exit Value 1
 
Hello, I have a general program that compiles but does not run properly. I have set flags in the program to pinpoint where the error is. Here is the function...
[3 replies] Last: Declare "scoreArray" as static . This tells the compiler that the dat... (by Computergeek01)
Created my own string class but having couple of problems
 
OS debian 6.0.2 Compiler gcc 4.4.5 made my string using vector<char> c_str errors when -> . return only 1 letter String errors at -> . but both work ...
[4 replies] Last: with vectors i don't have to delete them and can have any non fix size... (by DrakeMagi)
Please help me with this C Project!
 
I have a project on Movie Ticket Booking System. I have to make a program on this topic within a few hours! I am almost done but still there are many problems l...
[1 reply] : Sorry to say but you are nowhere near done. :-( You barely started. ... (by webJose)
template instantiation depth
 
Hi everyone, im currently writing a template matrix class, and i got the following error message when compiling my code: error: template instantiation depth ...
[4 replies] Last: compile time assert http://www.boost.org/doc/libs/1_47_0/doc/html/boos... (by ne555)
Assigning the value of one string to the name of an int
 
Let's say I have a string: string id = "blah"; I want to make a new integer with a name that is the value of "id": int (" " is just a marker for...
[6 replies] Last: *begins googling stuff you're talking about* (by RedTheGreen)
September 2011 Pages: 1... 1819202122... 31
  Archived months: [aug2011] [oct2011]

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