Beginners - March 2009

How can i make loops post a 10 by 10 square of stars
 
I need to write a program that displays a 10 by 10 square of stars....can you help?(ima newb)
[3 replies] Last: @gumber: Don't just give solutions please...just give hints, people le... (by firedraco)
What one to use, your opinion...
 
After seeing so many people say that using gets() is a bad idea I decided I may aswell start doing it properly so my question is, is it better to use <string> a...
[2 replies] Last: sorted.... thanks :) (by mcleano)
by tjinx
Amicable numbers in a range...
 
Code Guidelines and Requirements Given two numbers, if the sum of the proper divisors of the first number is equal to the second number and the sum of...
[3 replies] Last: Change your isAmicable function to this: bool isAmicable(int start, ... (by eker676)
by masiht
problem in a program
 
I have made a simple program using classes but It is not running . Can anyone please tell me what is wrong with it. #include<iostream> using namespace std;...
[3 replies] Last: Thank you jdd ! you cleared my concepts ! (by masiht)
The end of my program won't display.
 
I'm writing a program for class that plays the game 21 pick up where players take turns picking 1-3 stones and the player that takes the last one wins. My prob...
[2 replies] Last: There are a number of different ways to keep the console from closing ... (by jdd)
Teacher/Mentor/Free
 
Obvisously if you are reading this, You didnt come in the post thinking, Yea i'll help you, for a price. I need a free teacher/ or mentor. Im not talking we ar...
[3 replies] Last: Start with the tutorial on this site. It is comprehensive. (by seymore15074)
String Error
 
Hi everyone, I'm trying to compile this simple RPG game on Dev C++ and get an error at the commented places below. The confusing thing is I've gotten the string...
[3 replies] Last: Awesome guys, sorry for not posting the error message. I got it to wor... (by midnight)
Sorting in descending order, how do I output correct order?
 
Hi, I have an assignment where I have to read in data from a file and then output the original order of the data (which I have done), and then I have to sort th...
[4 replies] Last: hope you are successful in fetching data from the file.. correct? the... (by writetonsharma)
Factors code
 
Hi, i've written some code that returns the factors of any number inputted by the user. There are a few problems i'm having though. The main one is that the cod...
[10 replies] Last: Thanks for your reply guys, i'll have a read of that article later! (by mcleano)
dynamic array in sub-subclass
 
i can see the array in my subclass, but not my sub-subclass. im working on another project and it took me a while to find out that this was the problem...please...
[2 replies] Last: thanks, u were right, when i put void myFunc::subclass(int* arr){ ... (by dulahdaglace)
by mukhan
Socket Programming
 
Hi, I need to read information from the file that is on internet. For example, if you click the following link, the window will pop up and ask you if you want...
[1 reply] : You could use the wget source to save the file to memory instead of th... (by helios)
by Tepes
newb :S
 
hey all im seriously new to C++ and struggling a bit. im trying to write some code to change roman numerals to Arabic numbers. this is what i have done so f...
[4 replies] Last: Also, main needs to include an empty parameter list and an opening bra... (by jdd)
read from and write to binary files: array of structures
 
Hey, I've made an array of structures. I did so by making an pointer to an array of pointers (by dynamic allocation),and allocate the address of a structure to...
[2 replies] Last: Hey thanks! It turned out well! I changed the reading-code: infi... (by nicolasfranck)
A problem with "include" definition and makefile
 
Hello everybody. Help please to write makefile with simple program that is divided into different files. MyConnection.cpp #include "MyConnection.h" #...
[5 replies] Last: thanks a lot (by junketeer)
Tricky problem about getline() function
 
Hey guys, I have a tricky problem about getlien() function. I tried to use getline() to reading a whole line from a .txt file, but the returned string is only h...
[4 replies] Last: The getline function can be used to read multiline strings by supplyin... (by Xenophilius)
Function returning
 
Hello again! I've been messing around with functions lately. I'm trying to understand return types with functions but It's not really working. Heres my probl...
[8 replies] Last: A pointer stores basically the memory location of a variable while a r... (by Xenophilius)
by masiht
nested structure
 
I have studied structures and a little confused about nested structure. I will be very thankful ,If anyone fix this program and give me more examples of nested...
[1 reply] : pfriends is global variable. Just move line 17 into main(). (by pet)
trying to create dynamic file names
 
hey guys, im trying to create a program for an assignment that allows the user to create a file on the hard disk. I'm trying to let the user set a bunch of attr...
[6 replies] Last: The reason why cin >> (string) does not work is because it is not defi... (by firedraco)
by masiht
constructor questions
 
I am reading the tutorial here.I read the constructor part but I didn't get alot. Can anyone please tell me which line in this program shows the constructor an...
[1 reply] : #include <iostream> using namespace std; class CRectangle { ... (by Gumbercules)
Sorting through data in descending order
 
I have a problem with my code... First of all, is there a way (in very basic fstream) to store values in a dataset directly to an array that I can display in m...
[no replies]
March 2009 Pages: 123... 29
  Archived months: [feb2009] [apr2009]

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