Beginners - November 2009 (Page 19)

Array of pointers to char
 
Sorry posted in wrong section b4 Ok Im just tryna to figure this out, If I type a code char *name ={"DJ","Duane","Dale"}; for(int i=0;i<3;i++) { co...
[2 replies] Last: My crappy compiler didn't give me any warning but that u soo much. (by need2no)
Passing by Reference
 
I'm writing a program that asks the user for 3 sides. Makes sure it could be a triangle, and then uses equations to figure out the area and perimeter of the tri...
[1 reply] : 1. function definitions have semicolon which should be removed. it sho... (by writetonsharma)
enum type
 
can you have an accessor function that returns an enum type?
[8 replies] Last: #ifndef HEADERNAME_H #define HEADERNAME_H //header contents #end... (by helios)
memory leakage
 
When a handle to a dynamically allocated memory is lost, there is a memory leakage. Does this leakage still persist even after the program's process is terminat...
[1 reply] : Depends on the OS. On Windows Server, 2k, XP, Vista, 7, Linux, MacOS X... (by helios)
Game of Life Program, Rules failing to work
 
Hi, I've been trying to get Conway's Game of Life code to work now for the past two days with no avail! The rules of the game are: Any live cell with fewer th...
[no replies]
Class Average
 
Hello. Our teacher has finished the loop exercice yesturday and he gave us directly an exercice to solve it. We need to calculate the average of all the cl...
[6 replies] Last: ava = (t1+t2)/2; Not right: you need a variable which will contain t... (by Bazzy)
error C2059: syntax error : 'public'
 
I'm using the GDI+ API to manipulate images in a program I'm working on. I've taken code samples from the MSDN web page, and using them almost verbatim, I'm st...
[3 replies] Last: Yes, I kind of figured that out after staring at my code long enough. ... (by steball)
dynamic array
 
# include <iostream> using namespace std ; class Circle { private : static const float pi=3.142 ; float radius ; publi...
[8 replies] Last: You can but you need a dynamic array ( or a std:: container ) (by Bazzy)
Sting manipulation
 
In my homework, I need to create a program that allows the user to enter a password. The the the program needs to change all vowels (A,E,I,O, and U) in the orgi...
[2 replies] Last: You can use the isdigit () function to determine if the character is ... (by Duthomhas)
How to join two very similar programs?
 
How to join two programes? I’ve got two well fuctioning programs. The first one counts combinations with giving the elements of them. There are 180 elements ...
[3 replies] Last: TestArray is 'int' and you cant take out its subscript which you are t... (by writetonsharma)
One equal value in 2 different ranges
 
Hi there! I'm looking for algorithm which tests whether is at least one equal value in two different ranges (for example in two vectors). Do you know any ...
[2 replies] Last: You can do this in about five lines of code, if you know the algorithm... (by jsmith)
by jojojo
loop problem!!
 
hello everyone I am anew in c++ programming and I missed my class last week it was about loop ,,I have ahomework I just found out and it due after 3 hours c...
[15 replies] Last: thank you very much ,, I found the the answer with help and i get the ... (by jojojo)
simple Dev c++ problem
 
I made a console app and don't do anything to it, but when I want to open the project properties folder it dies on me. I'm running version 4.9 I believe. Can an...
[1 reply] : Change IDE, Dev-C++ is old and bad. See http://www.cplusplus.com/forum... (by Bazzy)
Can't figure out my problem!!!
 
I can't figure out what I am doing wrong. Any ideas? Please help!!! // Min int main() { { void double minArray = {1,2,3,4,5,6,...
[5 replies] Last: alright lets see if I can get the right out this time with your sugges... (by high5nothi5)
by cdummy
#include<iostream>/how to insert library
 
Hi, when I try to create a program "Hello world", my compiler says, that I dont have the libray or can't find <iostream>/ <iostream.h>. I tryed with different...
[7 replies] Last: It's also possible this is just a path error, the compiler you use you... (by gcampton)
Compile error ~ Is a class not defined?
 
Dear C++ users, My name is Kim, and I am fairly new to C++ programing. I have worked with it, but I have little knowledge of the language itself...
[3 replies] Last: Firstly thank you to you two for replying and identifying the cause, I... (by pmasterkim)
returning arrays
 
I have read the tutorials on array, but this is an area which it doesn't seem to cover, unless I have just overlooked. It explains about passing arrays to funct...
[7 replies] Last: So in this scenario, of incrementing array size I need to have a set c... (by gcampton)
occasional stackdump created and errors on program run.
 
I'm having occasional errors when testing my program, I'm not quite sure. When this error occurs creates stackdump then will continue to produce the same error ...
[9 replies] Last: Shit, I forgot to click the submit button. Oh, well. (by helios)
Error C2440, Cannot convert from void to float
 
I'am just learning c++ (which is why Im in the beginner's section =P) so please pardon any nonconventional coding style I might have. I'm attempting to write a ...
[3 replies] Last: That worked! Thank you so much for your help. (by sethyra)
calling user-defined function gives symbol(s) not found error
 
I'm trying to print the output of a function listPerms() by passing its output (a 2D int array) to another function printPerms(). The thing is, I keep getting t...
[2 replies] Last: Dammit! Always the simple things. >_< Thanks! (by foxjwill)
November 2009 Pages: 1... 1718192021... 25
  Archived months: [oct2009] [dec2009]

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