General C++ Programming - December 2010 (Page 10)

by Lane
class vector of dimension n
 
class Vector { int ndim; double* data; public: Vector( int n, double d ); ~Vector(); Vector& operator+=(const Vector& q); Vector& operator-=(const Vecto...
[12 replies] Last: So Grey, in case of the operater* and ostream& operator<<(ostream& s, ... (by Lane)
static_cast - Why does this work?
 
Note the line with the //*****WHY**** comment. #include <iostream> using namespace std; class Base; class Derived; Base* pBase = NULL; class ...
[3 replies] Last: Well your code doesn't work like I think you intended. The overloaded... (by Disch)
by fukki
How to find Matrix Inverse
 
Hello, I am writing a program to make addition of two matrices and to find the inverse. I am using class and objects. Is there any snippet of Gauss-Jordan O...
[2 replies] Last: Thanks flowly, i think now is very easier to write the algorithm! (by fukki)
by fukki
Can i delete struct or class object ?
 
Hello! I study about linked stacks. I practice at a basic example. I have the following part of the code Error_code is typedef Node is a struct Er...
[2 replies] Last: Ah, thanks firedraco! (by fukki)
Counting Vowels and Consonants
 
Hi! This is my first thread in this forum and since I've got a lot of help by reading other forums, I would like to post a problem of my own. In this problem...
[3 replies] Last: ne555 and aatwo: Thank you so much!! I really appreciated it!! Our ... (by closed account 3vkz3TCk)
About Polynomial Calculation
 
hello Guys! I have a task from my lecturer to make output program like this Polynomial (a+b)^n =================== Input value n [1..9] : 2 Input va...
[5 replies] Last: http://en.wikipedia.org/wiki/Pascal's_triangle in Pascal's triangle, ... (by hamsterman)
Object that holds Objects
 
Hi, I think I have done this correctly. I have created three objects bassed off the employee class, and built them with contructor and named them emp1, emp2, a...
[3 replies] Last: ahh lol - right - my bad...i totally over looked that. and i wondered... (by imij0607)
3D stereo compatability
 
Hi, I have a piece of code which works fine to create a molecule in 3d in conjunction with a transmitter/glasses and a 6200 (windows XP). However Using the same...
[2 replies] Last: wondering what kind of input do you expect? Is it even C/C++ related? (by coder777)
template
 
Hi Is it's possible to create a class specific template function function in C++, some thing the code below. I wants to achieve something like below. Please g...
[6 replies] Last: @Bazzy Thanks alot for giving me your time and helping me out. (by dearvivekkumar)
by zordk
Im doing a program and cant figure it out
 
I cant figure out how to fix this, because it just keeps looping. if anyone could help, I would much appreciate it thank you #include <iostream> #incl...
[7 replies] Last: Change while ( option > 0 && option < 5) to while(option < 1 ||... (by naraku9333)
Compiling for testing on another machine - include error?
 
I'm early on in an image resizing/renaming program I'm making and decided to try to compile and test on another machine. Ran into an error with not having .NET ...
[5 replies] Last: Before we have 2-tier or even 3-tier or n-tier architecture, how are s... (by sohguanh)
Read/write data.file to structure
 
I'm have a very weak understanding of how to get data from a data file and store them in a string. In this project I have to prompt a list of 44 presidents usin...
[1 reply] : I didn't know there was a member function in fstream called fail(). Wh... (by Browni3141)
Creating and loading a DLL file
 
Hey guys, I've been working on trying to load a dll file in my project to make it mroe dynamic, and I was hoping that someone would help me out, you see everyt...
[2 replies] Last: It's a DLL that I have created, I am using VS 2010 and I'm not sure wh... (by joro550)
by sh4sh4
C++ file operation
 
Hello all, i need some string or char file operations i couldt make it. i have a bat file with a some writen in it. for example : mytext.bat There are m...
[1 reply] : http://cplusplus.com/doc/tutorial/files/ I think you'll find that tha... (by Thumper)
Errors in an game sudoku
 
Hi guys, I try programming an game (sudoku 9x9) but when i compile the program i see this 2 errors ([Linker error] undefined reference to `__cpu_features_init...
[no replies]
const char or char* difference
 
hii. can I have diffirence between const char or char *.When I compile following program than got following output. int main() { char *p ="abhishe...
[6 replies] Last: opps I got it.. my applogizes for missing this thing.. thx a lot for y... (by agoswami)
by MeLB
Final Grade Calculation(read ASAP)
 
Hi I have to Write a program that uses structure to store the following data: Member Name Description studentID Student ID name Student Name programming...
[2 replies] Last: I have no idea what your talking about; I need some examples pleaseeee... (by MeLB)
please assist me with my c++ program!!!
 
im making a battleship program for my class with a the grid and i was trying to find a
[2 replies] Last: how should i right out the rest of the shoot method. im really confuse... (by howardqd)
by jsmith
Think you know C++?
 
Questions of the day. Answer without compiling and running (assuming your compiler gets it right). In each case, the question is "what is the output of the fo...
[10 replies] Last: Maybe I'll read C++ Templates: The Complete Guide again it's been a ... (by closed account z05DSL3A)
Urgent! Math quiz assignment
 
Hi, I need help soooooooooo bad, I asked my boyfriend but he can't seem to figure it out ether. I have a final project for programming class due soon and I jus...
[14 replies] Last: #include <cstdlib> #include <iostream> #include <time.h> using nam... (by YellowAfterlife)
December 2010 Pages: 1... 89101112... 24
  Archived months: [nov2010] [jan2011]

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