Beginners - February 2016 (Page 20)

Two Stupid, Beginner Questions
 
To begin, I have everything I need working, so no worries. Don't worry, most of my questions are related to, "Why does it do this?" I have one error related to ...
[2 replies] Last: OK, so you're saying that by my using "x" it's like putting the \0 (I ... (by Yawzheek)
What am I doing wrong? find_max function
 
I have tried running my code with both the commented statement and the non-commented statement and they both give me the number 2293484 as the result. The prog...
[2 replies] Last: Woah thanks. Just realized that dumb mistake =) ; I knew about the ret... (by Psalazar2016)
How to get while loop to not accept string statement
 
I want to get my while loop to run an error everytime someone inputs a letter or word into something that requires an int input. I don't know how to get it to w...
[1 reply] : You can use cin.fail() or !cin #include <iostream> using namesp... (by TarikNeaj)
Please help send variable output from header file to main.cpp
 
Here are my codes, hope someone can help. It maybe a little messy, and it does not have many notes as others posted, but I hope it is clear. The program works i...
[2 replies] Last: SI found ways to make functions and classes outside the program on tut... (by Psalazar2016)
question on pointer to new array structure
 
Hi I'm attempting to create a pointer to a memory location for a structure. I am able to create such a pointer for an integer, but having problems with a struc...
[2 replies] Last: thanks, modified and it worked, Why is it that for the new pointer t... (by bluefrog)
Nested For loops help!
 
Hello, I am learning about printing shapes using nested for loops in c++. I'm comfortable printing triangles and rectangles but I have come across and assignmen...
[no replies]
File processing filtering negative and positive numbers
 
Hi, i was wondering if you guys can help me my problem is that the numbers in "numbers.txt" wont filtered when i try to run the program the numbers inside the n...
[3 replies] Last: I dont understand clearly was have you said Ok, maybe it was too a... (by Thomas1965)
how to keep a randomized value from an array randomized?
 
hi! Let's jump straight to the code: #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <ctime> #include <string> ...
[8 replies] Last: Hello again! I have been working to sorting this issue out on my own, ... (by Boneman)
C++ Program
 
Write a complete C++ program that will do all the following tasks. Each type of loop (while, for, do/while) must be used at least once. Create a loop that wil...
[1 reply] : Double-post: http://www.cplusplus.com/forum/general/184902/ You have... (by cnoeval)
by qsqais
Creating a matrix from an input file
 
Dear C++ users, I am very new in C++. I have a question concerning reading an input file, where I have to create a matrix from same elements of the data if a c...
[6 replies] Last: Dear TarikNeaj, Sure I can post the code. I slightly changed input f... (by qsqais)
Noob Help
 
thanks
[3 replies] Last: It's because of integer division - percentMore = float(num_first_gr... (by TarikNeaj)
by tgau
Output binary shadow map with openGL
 
Good morning all, Here's my issue: I'm looking to detect shadow in a 2D picture. It so happens that I have a three-dimensional object of the scene (obtained ...
[no replies]
What does += do?
 
I know that for example iA++ is iA = iA + 1, but what does += do?
[3 replies] Last: x += y is equivalent to x = x + y (by guatemala007)
by macast
very confused on coding assignment.
 
I'm very new to C++ and have an assignment that is due tomorrow that i really need help on. The prompt is this... Prompt the user for two calendar dates. A c...
[1 reply] : You should create Date class . Create constructor that throws excepti... (by etrusks)
by Cooper
Linked list that needs multiple data fields
 
Hi all, I am trying to make a linked list of assignments, one that would keep track of homework. I was told to do it in the form of a doubly linked list, where ...
[1 reply] : I don't understand what makes it harder having four data values instea... (by Peter87)
How class point to another class ?
 
Hi there, I want to create a class called Train and class classed Car. The Train class represent whole train: contain pointer to engine and car class for ea...
[1 reply] : int * car; explain (by ne555)
Class inheritance format question?
 
I am trying to figure out how to link my function prototype to my actual function using templates. I am very confused on how to do this correctly. Could anyone ...
[2 replies] Last: void insert_item(const T&); T OListType<T>::insert_item(const T&)... (by ne555)
Triangle word
 
How do I get the last section to match the following output form? Program Progra Progr Prog Pro Pr P ...
[3 replies] Last: @plsalinas Yep. That's correct. (by whitenite1)
while loop not working
 
Problem: You have just purchased a stereo system that costs $1000 on the following credit plan: No down payment, an interest rate of 18% per year (and hence 1....
[4 replies] Last: thank you SO much. I spent hours so confused by this and was getting n... (by strawberryunicorn)
How to count white spaces in a string
 
I'm trying to figure out how to count the white spaces in a string. So far I've managed to come up with the following code. #include <iostream> #include <s...
[3 replies] Last: Thank you so much for the help! I appreciate it. (by plsalinas)
February 2016 Pages: 1... 1819202122... 46
  Archived months: [jan2016] [mar2016]

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