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

code not working the way i want it to! pls reply fast!
 
#include<process.h> #include<stdio.h> #include<iostream.h> #include<dos.h> #include<conio.h> #include<string.h> #include<iomanip.h> #include<fstream.h> #inclu...
[4 replies] Last: Please read the link. Some comments will be good too. Also, change yo... (by ne555)
2d pointer changes values involuntarily
 
i am fairly new to c++ and i am having a problem with a 2d array pointer: i have a class Matrix- 2d array is supposed to keep values derived class Rotation...
[2 replies] Last: wow. it worked the first time. thank you so much, i really appreciate ... (by intmain311)
Setting Specific Bits to Reflect a Variable Value
 
Hello, Up until now, I haven't had any problems with my C++ or VB classes. However, bitwise aspects of C++ are not my strong point, so I was wondering if I ...
[6 replies] Last: I sucked bitwise operators until I learned to read binary well, and re... (by ascii)
Please help with some errors
 
ok I am really confused with this program.I have edited it so many times trying to get all of the errors. please help!I cant find where my errors are. If someon...
[1 reply] : employeeNumber is undefined, compiler error should tell you about this... (by agile)
Problems with SQL commands
 
I'm finishing a college project but I'm having the following error: [C++ Error] PersistenciaCategoriadeTanque.cpp(17): E2316 'ExecSQL' is not a member of 'TS...
[2 replies] Last: Lines that are giving problems are these: are not being identified E... (by Renan Victor)
Problem of #import "C:\Program Files\Common Files\System\ado\msado15.dll" \
 
I am new ADO. I was trying a tutorial related in ADO. Meanwhile, I encounter this problem. Import code has red under line and when mouse was over it, repres...
[2 replies] Last: #inport is a directive, like #include, so single backslashes are what ... (by andywestken)
C++ copy constructor
 
I am staring at the following code: template <typename T> class A { public: A(const A &src) { *ptr = *(src.ptr); } private: T *ptr; } Is the above ...
[10 replies] Last: @computergeek01: oops: I messed up copy constructors - just found out ... (by tition)
How can I add a directory path to my makefile?
 
This what my makefile looks like now. CXXFLAGS = -m32 all: p2 p2 : CreatureClass.o HumanoidClass.o MonsterClass.o CreatureClass.o : CreatureClas...
[3 replies] Last: If you are using gnu make then you can specify where to put an object ... (by mik2718)
by Thanz
The largest value from 100s values in C++??
 
How can v find out the largest value from 100s values in C++??
[no replies]
by Thanz
How can we communicate quickly??
 
Hey, I'm new at this site n wona to take help in C++ from the legends at this site...I've seen this site today n really impressed by the intellectual ppl here f...
[1 reply] : I personally doubt that those would be faster then just posting on thi... (by Computergeek01)
by tk2373
error: expected identifier
 
this is my program 1 #include <math.h> 2 #include <stdio.h> 3 4 int main(int argc, char* argv ){ 5 float r; 6 float z; 7 float M_PI; 8 ...
[1 reply] : M_PI is a constant #defined in one of those header files So after the... (by mik2718)
Problems with GetShortPathName
 
Hey guys! I am trying to get the 8.3 (short) filename of a long (standard) filename, because an old program that we are still using uses those short filename...
[4 replies] Last: Again, thanks for the replies! I think that my UNICODE is defined, bu... (by dlani094)
by eypros
Template metaprogramming problem
 
Hello, I am experimenting with Template metaprogramming (TMP) and I was working on a "basic" TMP program like factorial calculation. The code is this: ...
[4 replies] Last: The entire point of TMP is to calculate non-trivial values at compile-... (by Athar)
class problems
 
First I have three files. TreeNode.h, TreeNode.cpp, and animalGame.cpp. In animalGame I ask to get the item from a class instance of TreeNode named root. Howeve...
[4 replies] Last: Probably a fault in your including-order. You should find yourself a t... (by Gaminic)
by edbtzy
Problem with cin >> and getline
 
Below is a simple function i created for my program but i am running into a problem. When I build the program and this function gets called, it totally skips t...
[2 replies] Last: Thank you i really do appreciate your help. That fixed the problem. (by edbtzy)
toolchain elf blackfin GCC LD Linking Problem: undefined reference to `_sbrk
 
Hi Guys, I tried to chase up this issue on Blackfin forum without success. Could you help me understand what I do wrong. Bellow is the link to the whole conv...
[no replies]
by LazyJ
Need a pointer.
 
i am quite confident with c++ i have been making programs for years now...but i want to make a game, i have made many mini games but now i want to make a "Year ...
[2 replies] Last: For rendering the graphics, you can use SFML. You don't need a book to... (by Athar)
Can someone test my game?
 
I am making a console "life simulating" game. I know it's not that good, but when I sent it to my friend to play, it had tons more glitches than when I where to...
[4 replies] Last: I did play the game, yes. It seemed fine; no immediate problems. Altho... (by closed account zb0S216C)
Randomzzz
 
I need a program to generate random numbrs between 65 and 90 how cn i du tht?
[1 reply] : Step 1: Include <cstdlib> & <ctime> if you are using a new c... (by Nisheeth)
by Srija
Socket Programming
 
Hi everybody.......... I decided to go for Socket Programming. I don't know so many concepts in c++. Is is possible to create Socket Programming??? What a...
[2 replies] Last: Unix/Linux use socket. Windows use Winsock or Winsock2. (by sohguanh)
September 2011 Pages: 1234... 31
  Archived months: [aug2011] [oct2011]

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