Beginners - December 2009 (Page 9)

by meer
character array - Segmentation fault
 
Hello, thanks for taking the time to look at this. I'm trying to assign new values to elements of a char array and getting an error as a result. char *...
[2 replies] Last: Hey Helios, Thanks for the reply and great explanation/tutorial. (by meer)
Game Data Classes
 
Hello All! I am trying to make one or two classes that input the opponent name and the home score from a data file. I already have a function that fills...
[2 replies] Last: This is the method I had written for this problem. OpponentName and H... (by lkegley)
by Wander
Problem with Beep(,)
 
I'm trying to make a program that allows the user to create a short tune. To do so I need to allow the user to type in two numbers (x and y) and combine both of...
[4 replies] Last: AWESOME THANKS GUY!!! ALL OF YOU!!!! IT WORKS! :D (by Wander)
Basic Encryption...output file name gets truncated
 
Hello all at Cplusplus. I am looking for possible solutions to a code problem in my file encryption source. Can anyone please review and assist. Any CONSTRUC...
[1 reply] : why don't you just save the filename in a string? that way you don't h... (by gcampton)
Return array of strings
 
My goal is to make a dll file with a single function that will return the IE url history from the local computer. I found some code at: http://www.codeguru.c...
[4 replies] Last: OK, I will try to move on from there. Haven't worked with arrays befor... (by skybomb0)
assertion failure when deleting pointer
 
I'm getting an assertion failure error when I attempt to delete a pointer at the end of my code. If I remove the delete statement there is no error.Any idea why...
[3 replies] Last: thanks Disch - that is much easier and you explained it perfectly. (by hansfordmc)
design pattern for global object access
 
Hi, I'm creating an application in an object oriented way. What I would like, is to have a global container of objects with the same type. I know this could ...
[4 replies] Last: The singleton design pattern does tend to get frowned upon by OO puris... (by jRaskell)
call by reference
 
Hi . I want pass my array to function with reference , but I cannot pass array to a function . What is my mistake ????? #include<iostream> using names...
[5 replies] Last: arrays aren't passed by value anyway. They're passed by pointer. You... (by Disch)
by JoeyS
Am I using array pointers in functions correctly here?
 
Hi, I'm relatively new to C++ and trying to write a program to aid in a physics project. I'm a little unsure of my understanding of how arrays are used in func...
[2 replies] Last: Thanks. My usual compiler does not give any errors and the program wo... (by JoeyS)
how to use sound
 
I want to use sound in my program. what I have to do.Using dev C++. Please help...
[no replies]
MY FIRST TEMPLATE
 
Im newby in C++, can you evaluate my first template code. Thanks. //============================================================================ // Nam...
[1 reply] : It's a good start, but a few comments: 1. No need for the virtual des... (by kbw)
problem about member function overloading
 
In my project, I want implement a child class which inherits from parent class and overload a member function in the parent class which has been overloaded in t...
[1 reply] : The int version is hiding the string version. You can "unhide" it w... (by Disch)
Vectors!!!
 
i have to write a program that(prompt the user to enter them one at a time) an unspecified number of temperatures in Celcius from the keyboard. Add each value t...
[4 replies] Last: tyvm you guys rock!! (by drcarmen)
output data files!
 
Hey guys, i'm fairly new to this so i'd appreciate any help. i have to read in the information from a data file with the info car# miles gas mpg 5...
[5 replies] Last: i ended up writing this and it works fine. #include <iostream> #incl... (by drcarmen)
Problems with an array project im working on.
 
This is what i have so far. I'm not completely sure if this correctly assigns the random numbers to the array, so if it doesn't let me know. But I need a simple...
[7 replies] Last: hey jdawg, ok, i changed the program a bit , one thing that was chan... (by BettyBoopTS)
Microphone seeding RNG
 
Hello all, I'm not a beginner by most standards, but I'm wondering about something a little outside the scope of my usual encounters in the world of C/C++. I...
[2 replies] Last: Well, I'm trying to code this as a software Proof-of-Concept for an em... (by Garandy)
A couple of Arrays...
 
So...having an issue with the below program. int main () { string fooditem ; int calories ; int z = -1; string productlookup ; do { z...
[2 replies] Last: Thanks...I imagine booleans may be a better way to do this. I will see... (by thebenjamins)
Beginner that is fighting with code
 
I can compile this code, but when i try to execute it i encounter an error, any ideas to fix it? /*#include <fstream> #include <iostream> using namespace...
[5 replies] Last: countValues isn't counting the values, it's doing something else-check... (by demosthenes2k8)
reverse words
 
hi guys please iv done my best involving few people already. program has to pick up words from 1file plikwe.txt, reverse them leaving a white spaces in a right ...
[5 replies] Last: guys i really do appreciate ur effort..just came back from work and le... (by simon79)
Mistake
 
Please remove this post...
[1 reply] : Uh yeah, and what are you supposed to do? Anyway we can't just give y... (by tummychow)
December 2009 Pages: 1... 7891011... 23
  Archived months: [nov2009] [jan2010]

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