Beginners - February 2014 (Page 28)

"Map" printing with nested for loops
 
I am trying to print a "treasure map" for a class. Because my program works well without the map portion, I've removed it to work on it separately. The goal is ...
[2 replies] Last: That is it! Thank you so much; I'm not sure why it didn't occur to me ... (by SheldonFan)
Reading text file into an array
 
Unfortunately, I am in a different class right now, so I do not have my source code until I get home, but I am running into a problem. I have an encryption ...
[no replies]
STUDENT PRORGAMMER NEEDING HELP GETTING STARTED WITH A PROGRAM USING A CLASS.
 
I am writing a program for class and i need help. The instructions say; Design a class called Heading that has data members to hold the company name and the rep...
[5 replies] Last: Or rather: Heading( const std::string compName = "ABC Industries", ... (by keskiverto)
by htx281
Void Functions
 
My program runs perfectly fine until I get to the void functions. The output for the void funtions is "000-1.#IND" What am I doing wrong? Any help or tips are a...
[4 replies] Last: I'm not completely sure but maybe you could try using int functions in... (by axtyax)
Creating object in 2D board, using dynamic array
 
I try to create 2D board with random object (#), but the position of "#" do not equal with cords (showing by function show_wall). What I do wrong? My second que...
[no replies]
error fstream
 
I have some problem with the ifstream/ofstream both in the two functions. This is my class: using namespace std; class 78{ public: 78(){} void codi...
[1 reply] : Class names can't start with a digit. If you have other problems ple... (by Peter87)
Reading in from a File
 
How do I modify a program to read in a specific part of the file? For example, "zip: 00000", from a very large file. The code below reads in the entire file and...
[1 reply] : How do I modify a program to read in a specific part of the file? Yo... (by Computergeek01)
set calculator
 
my program is not running and i cant find the problem in it please help. It is a set calculator #include<iostream> using namespace std; void Input(int ...
[3 replies] Last: This: int *A=new int(size1); //creating dynamic array int *B=new int(... (by kbw)
by sheep
Big Number Problem
 
Hi, I'm currently having a few problems with the following code. My knowledge of coding is pretty limited so I'm not sure what to do. The program below runs ...
[2 replies] Last: The current program works for values of N up to several thousand. Howe... (by sheep)
Trying to input matrix from text file into Array
 
Say I have a text file named "matrix.txt" and it looks like this... 3 5 7 10 5 3 2 0 6 8 The first number on the line is the number...
[5 replies] Last: I just dont know how to input the matrix... 3 5 7 10 5 3 2 0 6 8 Whe... (by blackvelvet77)
Removing Elements From an Array with Overloaded Operators
 
I asked this question last night and I didn't get any replies. I figure I'd give it another go. I'm writing a program that works with two sets of numbers put...
[1 reply] : insert() should deal with duplicates and ordering. Why does operator+... (by kbw)
HOW TO GET ALL COMBINATIONS OF ONE ARRAY?
 
does anyone know how to make a sorter for example we got 7 numbers from 1 to 7, what should I do to print out this: 1, 2, 3, 4, 5, 6, 7 1, 3, 4, 5, 6 ,7 ,2 ...
[6 replies] Last: JlBorges thank for your contribution, thats what i was trying to do to... (by closed account ivDwAqkS)
MIPS assignment question for arrays
 
Working with MIPS in college, never seen this before. Last assignment worked out well, this one is a tic tac toe game with arrays. I used my previous working ...
[no replies]
by aju33
Functions and time
 
Gee, I have a doozy this time. I can follow along in class, and then the homework pulls the rug out from underneath me. I spent so much time writing out just ...
[5 replies] Last: Hey! I figured out where to put the IF Statement to print out either A... (by aju33)
program crashes for unknown reasons
 
when option 2 is run the program crashes. option 2 is designed to generate a set of 23 number, sort them in order from smallest to largest and check for a depu...
[8 replies] Last: > I've translated your problem into c++. the original code was valid c... (by ne555)
My first program
 
So, I recently found myself growing a passion for learning the c++ language after reading how hard it is (I like a challenge) and found myself giving it ago in ...
[10 replies] Last: > Is there any specific reason as to why the variables need to be init... (by JLBorges)
How to find Number of Palindromes
 
I have made the following C++ code, It tells me if a String is Palindrome or not. How do I make it to work that it tells me how many different Palindromes are t...
[5 replies] Last: It does look like the OP actually wants to type a list of words and ex... (by keskiverto)
Difference of 2 #s using static variables
 
Hi. I'm doing this homework assignment for my c++ class and I'm (for lack of a better word) stuck. Basically, I need to write a function named range- which r...
[4 replies] Last: Too much code. 1. Initialize the static/global "min" and "max" sensib... (by keskiverto)
Bsearch Linear Search User Defined function.
 
Can anyone rectify the following code by me. I wanted to do Linear Search through User Defined Functions, The code should tell whether the an Item (inputted by ...
[1 reply] : #include <iostream> #include <conio.h> bool bsearch(); void main() ... (by Smac89)
Assigning random values.
 
Hello forums, so i need to create a linked list in which each node is assigned a random value consisting of 0,5,20,100,500,1000,5000,10000 or 25000. So my quest...
[6 replies] Last: Like i said in the OP, i need to create a linked list in which each no... (by bbunn77)
February 2014 Pages: 1... 2627282930... 60
  Archived months: [jan2014] [mar2014]

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