Beginners - March 2014 (Page 72)

Calendar formatting
 
Having problems formatting this calendar, I am getting: Welcome to crainey2's calendar program. Please enter a year: 2014 Please enter the name of the m...
[no replies]
error: read-only variable is not assignable
 
first part is the header and the other is the class the class i'm receiving a error message GradeBook.cpp:48:19: error: read-only variable is not assi...
[2 replies] Last: ahhhh i'm a dumbass thanks that fixed the problem (by gto11520)
by cozier
Beginning I/O
 
Apparently I missed an important day of class due to weather related reasons. There is an inclass assignment we were given (First day of I/O streams) that I wou...
[4 replies] Last: Thanks JLBorges, This is what I ended up with. It seems to be working ... (by cozier)
What is wrong with this script?
 
I looked a project on this site (grading project) and it basically asks the user to input a grade, and your program will decide whether it is a A, B, C etc etc....
[2 replies] Last: Wow, thanks man. Solved everything. (by Retraction)
How to make a frequency generator?
 
Is there a way to generate a sound frequency in c++? Like type in a number and it plays the frequency (a.k.a 40 hertz)
[no replies]
Functions
 
So I am supposed to be programming a basic number guessing game, however, I am having some difficulties. When you run my program it will not tell you whether yo...
[no replies]
C++ Class Templates
 
Hello, I wrote this code, and I am supposed to add template classes to it so we can put any data type (int and double)and the program would still work. I've...
[1 reply] : I fixed up a couple of things: http://coliru.stacked-crooked.com/a/240... (by long double main)
Confused when using Pointer to array of structures
 
I was doing some exercises in my C++ primer plus and one exercise wanted me to use a dynamic array of structures. The program creates a car catalog. The user in...
[no replies]
A small c++ interpreter
 
A Small C++ C++ Interpreter (ASCCI) Description: ASCCI is an interpreter of a subset of C++. It reads a very simple C++ program and interprets the latter. ...
[1 reply] : To write a program in C++ that can read and interpret the source code ... (by Catfish666)
by mdeeza
polynomial class issues
 
Hello, I'm currently trying to wrap up a polynomial class project which allocates memory and all of my solutions make the cmd prompt stop working with 0 error m...
[2 replies] Last: driver program #include <iostream> #include "poly.h" using namespa... (by mdeeza)
by Chiron
Need Help with an assignment
 
Write a program that calculates a customer’s monthly bill. It should input customer name, mailing address, telephone number, the month, which package the cus...
[no replies]
Codeblocks Help!
 
Does anyone know how to write this: Generate the odd numbers from 15 to 53 (inclusive)? In a FOR loop as well. I have no idea how to make this program. I trie...
[2 replies] Last: Also if you want multiple statements within a loop, you need to enclos... (by wildblue)
If statement ignored/ Selection structure failure
 
I need to write a program that computes a telephone plan bill according to the plan selected. There are three plans to choose from. My program will function pro...
[2 replies] Last: Thank you. It worked (by Evan8632)
dequeue all but one item from queue
 
How do I use a while loop to dequeue all but one item from a queue? I only have enqueue(), dequeue(), isEmpty() and peekFront() methods. void countOff (Li...
[2 replies] Last: Thank you. That part is now working as intended. (by avanhoes)
Need help with my code
 
Hello Cplusplus community, I'm new here, and i'm also new to C++ and programming in general. I was reading a little course on C++ in spanish (CConClase) and aft...
[3 replies] Last: Thank you. I know understand the problem. The course says now to read ... (by Fedelway)
by dnulho
Combining arrays
 
When I try to combine these arrays, the enemy array overwrites part of the player array inside of the enco array leaving me without a player. I can't seem to ge...
[2 replies] Last: Yes I have stepped through it with a debugger, but I don't understand ... (by dnulho)
Maze Traverse
 
Hello, I've been trying to write this program for my Object Oriented Class with C++, but I can't figure out how to solve this problem. So I have my code here, I...
[no replies]
by dioing
Recursive Function and Array
 
Hi ! I have a problem , what I want with my code is to output the biggest array value, but only ready the first value . There is my solution #include...
[1 reply] : You should try stepping through the code with a debugger or on paper s... (by firedraco)
No using string objects :/
 
I'm having trouble with this assignment that does not allow me to use string objects. So everything below is represented as arrays(c-strings). I was suppose to ...
[3 replies] Last: Sorry, your use of strtok seems fine after all. The structure of your... (by keskiverto)
Intro to Basic C++ Commands and how to use them
 
Hello, as the title suggests I'm looking for a guide to beginner C++ commands how to use them. I haven't been able to find one online that is able to help me wi...
[no replies]
March 2014 Pages: 1... 7071727374... 79
  Archived months: [feb2014] [apr2014]

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