General C++ Programming

by admin
news Welcome to this board! closed
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any t...
[no replies]
post Initializing Static Member Arrays
 
class MyClass { static int arr ; }; int MyClass::arr ={13,42,35,75,68}; ...
[no replies]
post Reversed Integer Using Arrays, My friend told me its to complicated
 
The assignment everyone has done before..lol...reversing digits. How do i make my code more simple (...
[4 replies] Last: You don't need an array. Using a 5 element array limits you to 5 char... (by Disch)
by mnunez
post arrays
 
I'm having trouble trying to figure out what the best way to declare an array that will hold up to 1...
[2 replies] Last: or........ int ArrayName ={0,1,2,3,4,5,6,7,8,9}; // ele... (by buffbill)
by nrose
post Moving elements in my array
 
im trying to write a program that will shift the values in my array one space to the left. im not su...
[5 replies] Last: Have a look at memmove(p1,p2,n), which copies a block of memory from p... (by buffbill)
post how does array size affect compiling speed?
 
so my current program uses two array variables, each of size 250x250, and I use the ofstream functio...
[10 replies] Last: In that last snippet, once t=0 , you don't need to test an... (by PanGalactic)
by CQ75
post Linking error using a class list.
 
I recieved the error "1>List.obj : error LNK2019: unresolved external symbol "public: void __this...
[1 reply] : None of the member functions of list is defined, only declared. (by helios)
question [c/c++] video library...
 
hi everybody!! i would like to write a program that can open, show and modify a video. actually at...
[7 replies] Last: VLC (the player) uses a framework called libVLC. (by helios)
by mnunez
post array
 
#include <iostream> int main() { using namespace std; int i, numbers , max; ...
[4 replies] Last: ha i missed that thanks. (by mnunez)
question reading in file and displaying fields
 
So i started off on the wrong foot with this assignment, i started by using a set ammount of student...
[3 replies] Last: Well you have just read in the number of students, the number of gra... (by Galik)
post singleton design pattern
 
My singleton class looks like these #ifndef _SINGLETON_H #define _SINGLETON_H #include ...
[1 reply] : Singleton* Singleton::instance = 0; must be in a sourc... (by PanGalactic)
post Why integer booleans?
 
I find that many people redefine integers to be booleans. As a boolean can easily be represented as ...
[4 replies] Last: As a boolean can easily be represented as a single bit with 0 o... (by jRaskell)
post Debug / Release problem.
 
Ok so I'm using SDL / openGL but I don't really think this is the issue. The game runs fine. Everyth...
[7 replies] Last: yes there is... Boehm-Demers-Weiser garbage collector. This can be use... (by writetonsharma)
by aas029
question Friendship is not inherited
 
Hello, The common/classical explanation for the statement "c++ friendship is not inherited" is t...
[5 replies] Last: Hello Beta, Thanks for you help. Btw, I asked the question on anoth... (by aas029)
post Sound Application
 
I have a question. I've been researching sound APIs and libraries to realise that I don't seem to un...
[5 replies] Last: Alright. I'll be posting an example after school. There are plenty of ... (by computerquip)
by helios
post Data compatibility across compilers
 
I have this code that just won't compile on VC++, so what I'm going to do is generate a DLL with Min...
[4 replies] Last: It uses FFmpeg. The problem isn't really that it doesn't compile. It's... (by helios)
post Kind of want to write a study program for math
 
So I was thinking of writing a program that would help me memorize different formulas for math that ...
[1 reply] : How should this program work? Can you give an example? (by Bazzy)
by mogha
post Container in STL
 
Is there is any container in STL which can accept three parameters. Like for e.g. container<int,int...
[10 replies] Last: I think OP is looking for something that would allow for log N lookups... (by jsmith)
post main() never executing. an academic exercise
 
Frequently I have heard the question, "Can you write a program without main()?" The answer is yes......
[14 replies] Last: You are confusing layers of abstraction. Everything has an e... (by Duoas)
by depak
question getch()
 
hey guys i want to enter an array element with getch(), with followig statement name =getc...
[1 reply] : The end of line is two characters on Windows, carrage return (13) then... (by kbw)
by mar11
question object instance
 
hi, please consider this code: ============== // file1.h #ifndef C_1 #define C_1 ...
[8 replies] Last: any suggestion please!!! (by mar11)
post template class
 
Hello, how to make a template class with an array of X items So far I have: template ...
[4 replies] Last: Thanks for the help! (by binarysolo)
post Binary search on an array of doubles
 
Question Details: I'm not sure if this is right or not. Can someone please check this for me? Wr...
[2 replies] Last: Got it! Thanks. (by binarysolo)
post .* and ->* operators
 
Just a quick Q: is obj.*memberVariable ptr->*memberVariable Equivalent to...
[2 replies] Last: They are the the pointer to class member dereference operators. Bu... (by guestgulkan)
post Scoring Students
 
I need to write a program using arrays and strings.Here is the question. A class of students takes ...
[no replies]
by b33p
post Input validation multiples of 100??
 
Hi guys, I am suppose to write a code to make sure the users input is between 0 and 4000 and also a ...
[5 replies] Last: (a && b || c) is the same as ((a && b) || c), not (a && (b || c)). (by helios)
post FILE * to istream??
 
I am using popen(3) in cstdio. it returns a FILE * can I somehow convert that to an istream o...
[3 replies] Last: #include <cstdio> #include <string> #include <iostream> #incl... (by PanGalactic)
by onur
question Interface design
 
Hello, I want to create a MessageQueue class. My current interface looks like this: c...
[3 replies] Last: writetonsharma is right -- don't re-invent the wheel. Most people hav... (by PanGalactic)
by NGen
post Static Variables in DLL
 
Is it possible to use them? In my DLL, I have a static vector defined in the global scope, and wh...
[9 replies] Last: I have a feeling that the whole problem is just because I accidentally... (by NGen)
post array of one class in another, both children of same abstract class
 
Hello, Suppose I sell thingy's online. I accept orders of one or 10 thingy's. If the order is f...
[1 reply] : I would question if inheritance is the right solution to this problem.... (by Disch)
questionsolved Java to VC++-MFC conversion
 
Does anybody know if its possible using any tool/software to convert a Java project into a project i...
[5 replies] Last: Thank you guys, I decided to learn Java. Its honestly lot more easier ... (by luckycusp)
Pages: [1] [2] [3] ... [19]   Archived months: [sep2009]

Registered users can post in this forum.