Beginners - May 2014 (Page 42)

Operator Overloading
 
Hi! I'm having trouble figuring out why my program crashes after the test for if the right stream works for a single value. The output/error: Right strea...
[6 replies] Last: I was running gcc in the windows command prompt. But I just tried runn... (by ECEsasha)
by Cronin
How to gain functionality in game engines?
 
Hey guys I have decided to pick up C++ as I want to move on from modding Minecraft and take the next step to developing games. My desire is to gain an extensive...
[5 replies] Last: Thanks for your detailed reply.I plan on using the Outerra engine to m... (by Cronin)
by h4ever
rename tree item
 
Hi, I use program which source code is published but it has one bug that when I copy/paste item in tree it produces some weird characters on end of the string. ...
[no replies]
C++; Better way to convert Double 4x4 Matrix to OpenGL Float 4x4 Matrix
 
Hello, I have the following code snippet that works below. Long story short, I need to convert a 4x4 matrix which is a double value to a float based 4x4 value ...
[2 replies] Last: OK, the loop idea looks good; especially if I were to write it in a fu... (by ckoeber)
by yemmh
Please Help..
 
I'm a beginner of C, now I've an assignment came out from learning course as below question... 1. The program will then produce the output selected by the u...
[no replies]
how to skip input in c++?
 
i want to make a program that skip input when user don't want to enter the detail like if he don't want to enter email he just press enter and program go to nex...
[1 reply] : Depending on how you are reading the input, you could just check if th... (by Zhuge)
Filling a 2d array using rand() function
 
I have a 2 dimensional array. I need to use the rand() function to initialize the array with random numbers in between 10 and 75. This is what I have so far. I ...
[3 replies] Last: You are only writing one column. Every time you output a value, you al... (by Duthomhas)
soccer program urgent help plis
 
I'm stucked with part of this assignment. The assignment is consisted on three programs, the first is the base of the others two, i did the first one already bu...
[no replies]
can someone please check my true/false answers?
 
I am trying to learn C++. I answered a bunch of true/false questons I got from a class worksheet. Can some please tell me which is true or false to check myself...
[3 replies] Last: Thanks, that was a great help! (by Jimmy22)
Fstream need help!
 
I try to open and read the file. The problem how can you calculate avgrate for each student? like this Z 28.2 64.5 76 66.74 95.4 Y 88.4 40 75 92 88 ...
[1 reply] : What problem are you having? What have you tried so far? (by Lachlan Easton)
help person base class
 
Write your question here. can someone help me with this project? appreciate it. Design the following classes in C++. Person class is the base class for oth...
[2 replies] Last: I need help with setting up my base class and so on. (by bosscoder)
Iterators
 
Im just starting to learn about vectors and I cannot grasp the concept of iterators and const interators and what they do. How do they work? Ive read the sectio...
[8 replies] Last: Ahhhhh thank you abstraction (by football52)
by wahhaj
Ranged based for loops
 
Write your question here. Just a really quick question about range based for loops. Is it possible to change the contents of an array using a range based for l...
[4 replies] Last: Oh my bad, I just did references yesterday, I haven't had any practice... (by wahhaj)
NEED HELP! BST!
 
I am working on getting this to run correctly. I am making a BST trying to get it to have pointers to the left and right and parent. I think I have been looking...
[1 reply] : You should use code blocks code and indentation. (by Drrockso)
Initialization a pointer to an array of pointers
 
Hi averyone! Here is a pointer to array of four pointers and we can easily initialize it in this way: char *ch ; for(int i=0; i<4; i++) { *(ch+i)=...
[5 replies] Last: keskiverto, you should read some books about organisation memory in c+... (by InLoveInCpp)
I need your help guys!
 
This is the problem. Write a program that declares three single-dimensional arrays named miles, gallons, and mpg. Each array should be capable of holding 10 e...
[6 replies] Last: Chris you are a savior! I completely missed that, thank you! (by Kevin15663)
Removing comments and spaces from a program HELP
 
Hello, C++ beginner here. I am trying to write a program that will remove all extraneous white spaces, comments(both types: /* */ and //), and new line characte...
[no replies]
heads or tails
 
i am running the case statement to randomly pick either heads or tails but says its neither. #include <iostream> #include <string> using namespace std; int ...
[5 replies] Last: dice version #include <iostream> #include <string> #include <stdlib.... (by kmtompkins)
Question about class templates
 
I'm currently rewriting a class definition (with it's member functions) to be a class template. To summarize the program, I am writing my own stack class in wh...
[2 replies] Last: That is an option, but I think my teacher wants only prototypes within... (by Kevin2341)
by merta
Preorder, Inorder, Postorder
 
The program creates a binary tree for breadth-first traversal.But i'm trying to use Pre-Order, In-Order, Post-Order Traversal and actually i can't do that. The...
[no replies]
May 2014 Pages: 1... 4041424344... 55
  Archived months: [apr2014] [jun2014]

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