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

Code can't compile !
 
#include "stdafx.h" #include <iostream> #include <string> #include <cstdlib> #include <iomanip> #include <fstream> using namespace std; int checkpseudo...
[3 replies] Last: If you add #define _CRT_SECURE_NO_WARNINGS to the top of the file, i... (by andywestken)
Dev C++ Works MSVS 2008 Doesn't Work
 
Hello :D I have two compilers on my system: MS Visual Studio 2008 Express and; Dev C++. I have written an encryption/decryption program for a console app...
[5 replies] Last: That isn't fixing it. That's just a fluke. The program should work i... (by Disch)
I want to pass a multi-dimensional array by reference
 
The code is int main() { int get_no_eqn, get_no_var; //get the values for above variables by user float **matrix = new float* ; //creating a mu...
[7 replies] Last: Ok. I didn't notice it. I thought that matrix is a static variable. (by Syuf)
String problem.
 
#include <iostream> using namespace std; int main() { string StringToEncrypt; cin >> StringToEncrypt; char KeyToEncrypt = '@'; int t...
[4 replies] Last: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #in... (by Mohammed Abdul)
by naes22
Billing System program
 
i was wondering the program i made was wrong but still i can run it. my program does not undergo throught the if else statement. can you also suggest me som...
[1 reply] : Change your while statement to this: while( cont != 'N' && con... (by kooth)
Changing Item Text In Combobox
 
I'm using the Win32 API to write an application where the user can create a list of items (combobox), and when he clicks on an item in the combobox, it allows t...
[4 replies] Last: <snip>...totally misleading and spurious response...</snip> (mis-misr... (by andywestken)
Accessing public members of base class fails
 
Hi guys, might be a bit of a coward-ish question: I've got two classes, and declared all variables public. Why can't I access the variables from derived clas...
[3 replies] Last: Interesting, they should link such stuff in their tutorials! Thanks! (by ZED0815)
What does this "new" mean?
 
Dose anyone can tell me what this new do? New a ClassA with buff max? Thanks. ClassA *pA = NULL; pA = new sizeof(max) ClassA;
[8 replies] Last: oh, the first line is wrong, I forgot the "*". (by player6)
Need help debugging a program of mine
 
I made a program that was supposed to ask the user to answer 5 questions and then suggest a class for them to play in a game. When I try compiling it in Termina...
[18 replies] Last: It looks like the program does exactly what I want it to do, now. Befo... (by Greenmeep)
Operator ancestors
 
Hi guys, currently I'm trying to write a vector class with two child classes, which are designed to fit 3D for example. Some source here: template<type...
[5 replies] Last: Oh I see, thanks...! (by ZED0815)
by DSTR3A
Error C2227
 
I'm getting this error on this code...... error C2227: left of '->first' must point to class/struct/union/generic type typedef std::basic_string <unsigned ch...
[2 replies] Last: Thanks, Now more problems ;))) error C2664: 'unsigned int std::basi... (by DSTR3A)
Allocating a big quantity of memory
 
Hi, I'm programming a project in c++ which is being develop by another person using the QtCreator IDE. I'm using Code::Blocks. I need to allocate a matri...
[13 replies] Last: Are you sure it's crashing due to a memory allocation failure and not ... (by closed account zb0S216C)
enum command help
 
I have to program a Caesar Cipher for my programming class. Basically, it takes in a line: type,shift,message_text_all_lowercase (ie. e,-5,test bla bla bla) Ba...
[4 replies] Last: wow, I feel so stupid right now... Thank you!!!! =D (by albrittbrat)
Using eigs in c++, an eigenvalue problem
 
Part of a project I'm working on right now requires solving for a handful of eigenvalues (and associated eigenvectors) with the smallest absolute value of large...
[1 reply] : Can't you just get an older version of Octave? (by helios)
by DSTR3A
MAPPING
 
I'm trying to run a MAP to see if any of these strings are in the data part. It should return either a 1 or a 0. This is what I have so far. #include <...
[5 replies] Last: I've made it as simple as it can be so even a beginner can understand ... (by helios)
by muha
Check first two characters in string
 
Hi all, I would like to know how to check if the first two characters in a string are equal to a value.e.g I have a string containing 701285463257. if(first ...
[5 replies] Last: Another approach I sometimes use is 0 == someString.find("70") ... (by andywestken)
Array Question, Assistance Needed please
 
Hello i have a question on an array problem that i just dont know how to go about it, please i need some assistance on what im suppose to start with. The questi...
[5 replies] Last: Stewbond , it is highly discouraged to provide entire coded solutions... (by shacktar)
C++ Console App v Windows App
 
Hello :D I'm a beginner in C++, and I was wondering what the difference in the code would be when you are writing for a console app and a Windows app. For ex...
[1 reply] : I have 2 programs that do the same job. Console is 100 lines long. W... (by Mohammed Abdul)
How to write a recursive program for tower of Honai problem
 
pls any one can write this program. I m trying to write this prog but i couldn't write pls help me
[3 replies] Last: Hi, I know is hard for newbies to get how recursion works, so you can ... (by alex9)
crtdbg.h memory leak
 
hello, I work on a library, every thing allocated in the library is reported as memory leak even though there isn't a memory leak at all library is dynamically...
[4 replies] Last: yes, I want to ask if some one has an idea about why I get this kind o... (by afraidofdark)
September 2011 Pages: 1... 28293031
  Archived months: [aug2011] [oct2011]

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