Beginners - January 2017 (Page 16)

cant figure out why keep crashing
 
std::vector<Tower> t; std::vector<Enemy> en; for ( int a = 0; a < en.size(); a++ ) { if ( !en .isAlive() ) { ...
[2 replies] Last: @helios damn it, been debugging for 5 hours !! thanks ! you are the on... (by xenovia12)
wait only for 1 thing
 
Hello there, i wanna know if there's a command to wait for example 20 seconds to do a command, not to pause the program, to do a thing only once at 20 seconds, ...
[13 replies] Last: Good on you Cosmin. I'm glad it worked for you mate. You might like to... (by closed account 48T7M4Gy)
Bracketing Search Question
 
Hello all. I'm on my third day of teaching myself C++, so if you see any glaring issues with this code please feel free to correct me. I'd rather learn the righ...
[17 replies] Last: @mbozzi Yes, that is a good way of putting things. There are a bunch ... (by TheIdeasMan)
How to properly read char from file into an array?
 
I need help with properly reading and storing some characters from a text file into my array. I got something going but when I run it, the output shows only the...
[1 reply] : Each character in the input file is on a separate line. This inFile.g... (by Chervil)
Useing structure name “course” in program
 
XYZ University needs a system for student’s courses and their semester details. A data entry operator needs to enter student’s data in to the system, and th...
[2 replies] Last: this is assignment and we need help in assignment. i don't no how to u... (by kamal3310)
Does C++ support default arguments to a function?
 
Can I declare a function as bool handshake(uint64_t slaveAddress, unsigned long* timeData = timeData, char* testData = ...
[1 reply] : Not like this (parameters aren't allowed as part of the initializer un... (by mbozzi)
declaring string error
 
hey guys I've taken quite the hiatus from Programming anyway I'm getting back into and was going over composition but before I even got to that I'm getting a st...
[1 reply] : In the header file #include <string> , and qualify string as std::s... (by TheIdeasMan)
Displaying all the numbers made by 2 digits in ascending order
 
The title says it all. So the program should display 12, 13, 15, 16, 17, 18 ,19, 23, 24, 25, ..... , 89. #include <iostream> using namespace std; ...
[1 reply] : for( int first = 1 ; first < 10 ; ++first ) // first digit for( i... (by JLBorges)
Least and Greatest for Array problem?
 
Hey guys, how can I find the lowest and highest number for the rainfall? I tried some things that lead to nowhere. Normally I can solve a problem like this beca...
[no replies]
Pointer to Boolean
 
I have declared a variable bool* newData = false; and I try to use it in a function void setBoolean(bool* newData) { if (this == true) &newData ...
[4 replies] Last: andy1992's declaration ///allocate some memory bool* newData =new bool... (by vagulus)
by dconc
Array Programming Problem
 
i have an assignment where i need to write a program that generates an array filled up with random positive integer number ranging from 60 to 100, and display i...
[1 reply] : Hi @dconc, First of all you might want to put the values inside the ar... (by Troaat)
C++ problem
 
N=a number introduced by us, and N natural numbers.Display the triplets of numbers read consecutive which have the last number 3 and display their number. One n...
[5 replies] Last: I will use eyenrique's solution. Thanks to you both guys for helping m... (by forta2k)
by q12
parameters; what they do and mean?
 
Hello, I am new to c++ but I coded for a while in VS c#, so I am not a complete beginner. I have 37 years - not too young either. I just installed and run Co...
[11 replies] Last: All those keywords and declarations are not from C++ or C. They're ... (by mbozzi)
assingment
 
I have this assignment and I cannot understand what I am supposed to offer (deliver) as my finished product, what is being asked in this assignment. Create ...
[1 reply] : As I understand this assignment you are only supposed to create the pr... (by Thomas1965)
How can I display a random sentence?
 
Hello, I am new to C++ and I have got the following program running fine and doing what I want so far. However, is there anyway I can produce a random sentence ...
[3 replies] Last: Haha, trains and their schedules ey! But thanks for the help! I appre... (by charlierbt)
what does ->
 
I belive the title explains a lot. What does ->?
[3 replies] Last: See "Pointers to structures" http://www.cplusplus.com/doc/tutorial/str... (by Chervil)
While loop and adding
 
I'm trying to get this loop to work and for the numbers to add together for the end. Any help would be appreciated. #include <iostream> #include <iomanip...
[3 replies] Last: that is exactly what it needed, thank you so much, i now just need to ... (by CleanerWings777)
Far Cry 2004
 
Hello, everyone! I really need help. I am new in C++, and I don't know anything about it. I want to make subtitle for Far Cry from 2004, but I don't know how. I...
[2 replies] Last: Thanky you, man! :))) (by bull head)
learning c++
 
Write your question here. can i learn c++ even if i have 0 skills in math will it be hard to learn?
[3 replies] Last: Depends on what you wanna do with C++. But don't worry about math, you... (by Golden Lizard)
Java/C++ Question
 
Rearrange the following code so that it forms a correct program that prints out the letter Q: } public static void main(String a) { } System.out.println(...
[3 replies] Last: Just save it as Q.java (by Thomas1965)
January 2017 Pages: 1... 1415161718... 24
  Archived months: [dec2016] [feb2017]

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