49,761 Topics

Member Avatar for
Member Avatar for Xnoudas

I would like to get all the elements of a string array and I just get the last one followed by a "zero" element. void DrawFonts(int num, int x, int y) { Char Buffer [20]; CString ss; num = 15; //or whatever more than 2 elements itoa( num, Buffer, 10 …

Member Avatar for Xnoudas
-1
126
Member Avatar for Der_sed

the typical question which ask user to display THIS * ** *** **** ***** ****** ******* ******** ********* ********** using a single cout<<"*" & cout " " with the help of [B]for loops ONLY[/B]. :) ive come to this this prgram but can anyone tell me where i am going …

Member Avatar for Der_sed
0
109
Member Avatar for Young Teck 06

I need some help, what would everybody out there recommend for a C++ Compiler. I am thinking about paying $110 for Visual C++ "Standard". Does anybody know if this software is great and what are the best features of it. Other recommendations are also welcome.

Member Avatar for vegaseat
0
355
Member Avatar for suma2411

:D can you please help me in writing a program(c++) for finding factorial of a number using * operator overloading?

Member Avatar for jwenting
0
78
Member Avatar for SelArom

Hi I'm Josh and I'm new to these forums, and new to c++. I hope that I can get some great hints and help from the community. thank you in advance! I'm trying to create and use a hashtable class that uses a linked list for separate chaining. I've completed …

Member Avatar for SelArom
0
208
Member Avatar for slavic1

Hi, I'm a new member who is fairly new to C++ and need a little help getting some bugs out of an assigned matrix project. I am running VC++ 6.0 and have no compiler errors. Also, I have managed to run the program successfully for small matrices. My probelm occurs …

Member Avatar for Narue
-1
154
Member Avatar for JoBe

Hi guys, Just wanted to ask you're opinions about this program I had to write for evening school, the idea is when you enter a phrase wich isn't longer then 80 letters, the programm will count the amount of each letter wich is written :!: It doesn't have to keep …

Member Avatar for JoBe
-2
377
Member Avatar for dontcare

I would really like to learn how to debug my programs. The book I'm using does not have much info on debugging and my instructor hasn't said much on the topic either. I ended up re-writing my source code because of seg fault error. The program works fine now, but …

Member Avatar for Chainsaw
0
117
Member Avatar for boujibabe

I have a problem which states that good people all have last names that be begin with the letters G through L; all the others are bad. The program must differentiate the good people from the bad. Does neone have any design ideas? output:Name? Farley Farley is a bad person

Member Avatar for boujibabe
0
141
Member Avatar for jamievmi2

Hello, this is my first post, so i'm sure i'll fumble it a little bit. I'm writing a program that has a switch, a nested if, and an output choice of console or new file on a:. I feel like all my switch and nest is good, but i'm missing …

Member Avatar for jamievmi2
0
326
Member Avatar for Degenerate

Microsoft Windows XP Home Edition Version 2002 Service Pack 2 Hewlett-Packard Pavilion Intel(R) Celeron(TM) CPU 1300MHz 1.30 GHz, 512 MB of RAM hp pavilion 502n ----------- When I turn on my computer and either let it sit for a while, or I start opening programs - games, Word, my Wireless …

Member Avatar for rasputinj
0
427
Member Avatar for Intro2Prog

1) Read an integer # from the file [I]balance.dat[/I] that represents the balance on your checkbook (Assume integer #'s only) 2)let the user enter an amount to write a check. 3)If there is enough balance to write teh check then display the message ([B]OK to write check[/B]) if the check …

Member Avatar for Narue
0
109
Member Avatar for skeet123

I am having a very hard time trying to solve this problem.Here are the instructions to the assignment: Implement a Priority Queue using a heap. The heap should be implemented as a class that has a private member which is an array. The array is statically allocated and the size …

Member Avatar for skeet123
0
159
Member Avatar for phr0stbyt3

this program is supposed to create a box with a horizontal line of the limit that a user inputs from 2-9... for example a limit of 5 would create: 5$$$$ $5$$$ $$5$$ $$$5$ $$$$5 an input of 4 would create: 4$$$ $4$$ $$4$ $$$4 and so on... i cant seem …

Member Avatar for iumair
0
122
Member Avatar for dontcare

The program is supposed to pen and read a file with student’s scores for a semester. Display a chart with the average and median scores for each section and each lab. Example: CS 111 this semester has 7 sections and 10 labs. The output will be a chart with 7 …

Member Avatar for jasweb2002
0
120
Member Avatar for dkm30

I'm new to C++, and I'm trying to solve a problem to compute an exponent of an integer to a float. The following is the psuedo code: Declare x as a float Declare y as an integer Declare i as an integer Declare result as a float Input x //any …

Member Avatar for frrossk
-1
106
Member Avatar for missy

hi guys i ask for help but know one responded, so i figured i will ask again. this is the first problem and why i can't print out a rectangle, triangle and diamond. i need know what am i doing wrong with both of these questions. someone please help me. …

Member Avatar for Narue
-1
87
Member Avatar for sweetbaby

hi, all. i have some problems to do array. i am supposed to get the average and sum in given number of array. but, i only got 1 in my all answers. please, tell me what was wrong in my program. thank you. //hw for array #include <iostream> #include <iomanip> …

Member Avatar for jasweb2002
-1
118
Member Avatar for old lady

I'm told you are never to old to learn something new but right now I don't believe that. I thought I understood this but the program I wrote just doesn't work any suggestions? Write a program that asks the user to enter the price of an item and the sales …

Member Avatar for Coach_Nate
-1
110
Member Avatar for Marauder

Greetings, I have my first assignment for my programming class to do, but first, I will say that I am aware of those people who post entire problems requesting members to do their homework for them. This is not really what my post is about. I'm having a little problem …

Member Avatar for Marauder
0
240
Member Avatar for ze_viru$

hi guys, I want to create a class called DoubleSubScriptedArray.this array should be able to take maybe a 3 by 5 array or 1 by 3.My program is giving me a problem when i try to overload the stream-insertion and stream-extraction operator.Below is my program pliz help me to get …

Member Avatar for Narue
-1
225
Member Avatar for hopeolicious

[code]#include<iostream.h> #include<stdlib.h> const int MAXCHARS = 500; char st_line[MAXCHARS]; char ch_option; int i_va; int i_ve; int i_vi; int i_vo; int i_vu; int i_word; int i_count = 1; int i_number = 0; int i_vowel = 0; char ch_char; void getdata(); void vowels(); void words(); void putdata(); int main() { do{ getdata(); …

Member Avatar for hopeolicious
0
98
Member Avatar for kerrigan88

Alright, mine's a long one. The error I keep on getting is bin_search local funtion defs are illegal. Think there is something worng with my binary search. Anyone see what's worng with it? I'm sapose to have it display 1. The number of searches completed 2. The number of successful …

Member Avatar for Narue
-1
118
Member Avatar for hopeolicious

Can someone give me a start of my program I have to write a program usig functions that will read in an array of text and using the case statement determine the number of capital and lowercase letters(a, e, i, o, and u's) found in a string of text with …

Member Avatar for Chainsaw
-1
121
Member Avatar for BlackPhoenixVII

i can not figure out a way to let the user save their own file name in the ofstream i tried to do this... string SaveName; std:: ifstream input("finale.txt"); std:: ofstream output(SaveName); and then a prompt asking user for SaveName i know this doesn't work but i dont know what …

Member Avatar for BlackPhoenixVII
0
76
Member Avatar for lost_c++_dude

I've tried everything but this program won't run. If I plug in numbers for length, width, and depth it won't tell me the cost to resurface. Any suggestions? //prb01-1.cpp //This program calculates the total surface area of a pool and the cost to resurface it #include <iostream.h> #include<iomanip.h> //using namespace …

Member Avatar for alc6379
-1
132
Member Avatar for wangstarr

Hi, I am stuck and my head is spinning with this project that I am working on for my beginners c++ class. Can someone show me how to work this? Here is the problem: Write a function that uses an array parameter to accept a string as its argument. It …

Member Avatar for Narue
-1
2K
Member Avatar for Rasmo

Hi all, I'm a total beginner at C++, and I'm planning on trying out by writing a small, text-based game with a command line. The game has different areas which are described in pure text, and I guess a good solution to put all the pure data (descriptions and so …

Member Avatar for Xnoudas
0
115
Member Avatar for epsos

hi everyone i have been using ict for about 6 years now and want to learncomputing e.g programming and was wondering where to start becaause people post codes and i have no idea what they are on with and was wondering if there is any good sites where u can …

Member Avatar for epsos
0
184
Member Avatar for phr0stbyt3

im working on a program that generates a random number and asks the user to guess what it is. right now im stuck on checking to see if the number is between 1-20. how would i make it continuously loop back until the user enters a number between 1-20? the …

Member Avatar for phr0stbyt3
0
175

The End.