Beginners - May 2014 (Page 12)

Reading from multiple .txt files.
 
Hi guys! I need help on how to transform my code from reading from a .txt file into a matrix, to choosing what file to read, a similar file but with a different...
[6 replies] Last: Thanks for that I will try it! (by silva1996)
by yepMe
do while not working properly..
 
Hi all, below is my piece pf code of linked list for deletion. My problem is whenever I am choosing a position to delete it asks me "do u wish to delete another...
[2 replies] Last: @disch thanks a lot :) ... It was so silly of me to miss that :) (by yepMe)
Write a program (1,2)
 
Write your question here. Please I need help with this question. I'm new to programming, and need to know this well before my end of semester exams. Writ...
[20 replies] Last: @MiiNiPaa That isn't beneficial to the OP, as it hides the procedures ... (by closed account j3Rz8vqX)
Problem with write()/read() function using pipes in Linux
 
Hello, I am facing some difficulties with the pipes, I cannot send the complete input to the receiving parent. Tried different ways but I am unable to fig...
[1 reply] : 1. What does the text look like before write? 2. Try getline instead ... (by keskiverto)
Project Euler Problem 4?
 
Hi, I'm trying Project Euler's Problem 4 and I'm having trouble finding the correct answer (I know my method isn't the most efficient, but I was planning on imp...
[2 replies] Last: When you solve a Project Euler problem you gain access to a forum wher... (by cire)
Box collision with a a vector of objects and a player
 
this is where the collision is handeled: for (auto it = shapes.begin(); it != shapes.end(); it++) { if (player.getGlobalBounds().intersects(it->getGlobal...
[5 replies] Last: Take a look at this example, which was directly inspired by: http://ww... (by xismn)
Understanding World Jumble Program.
 
Can somebody please help me understand how this program exactly works? I'm trying to understand how does it know which is a hint and which is the answer. ...
[6 replies] Last: An enum is a way to set the values of multiple ints at once. enum fie... (by Yay295)
Argc and Argv
 
My professor has posted an assignment dealing with argc and argv input/output files, but I need some clarity on how I should approach it. Have the program a...
[7 replies] Last: How would the code be constructed? i managed to have the user input t... (by Chervil)
Virtual methods in inheritance classes.
 
I have a class Quadrilateral that is made using aggregation of 4 Points (class). From Quadrilateral I have to create an inheritance chain of several other shap...
[2 replies] Last: The print 's on line 93 (of Quadritateral) and on line 49 (of Trapezo... (by ShodanHo)
Need help with converting !!
 
Hi I'm writing a small pice of code that takes numbers and convert it to string. so that's what I got int main() { char lett...
[6 replies] Last: Sweet! thanks man (by WaterLeak)
Direct access to disk via Int 13
 
Good afternoon to all. I am a old school C and ASSY programmer and am trying to convert several programs I wrote more than 20 yrs ago in 16 bit Borland C. Th...
[1 reply] : Well Gee don't everyone respond at once now.. (by ROBOSPOOK)
by Dosa
For loop not starting in sub-function
 
Hello everyone, I've been struggling with getting my For loops to "start" within a function. To help me debug I tried displaying meaningful sentences in all...
[3 replies] Last: It will execute till false. The kind of expression you are probably af... (by CodeGoggles)
list and array dont have capacity
 
I have an exercise from my book, Why don`t list or array have a capacity? For array I know as it`s a fixed size and more memory will not be needed but for ...
[8 replies] Last: Put four dashes between the code and the output: [code tag] std::cout... (by Lowest0ne)
Reading in from a file
 
I am trying to read in a txt file that contains some doubles as shown below. I have read into it quite a bit and cannot figure out how to get it to read in the...
[5 replies] Last: You created your array within the scope of an if statement if (file.i... (by Yay295)
by xx1182
Comparing a char array
 
Presume i want to compare the argv What would be the best metod? strcmp or others? i'm currently using this: std::string message = argv if(message == "Hel...
[11 replies] Last: You do not need parentesis because you do not calling function. You ar... (by MiiNiPaa)
End of stream detection
 
I am trying to read in a stream of ints of unknown length, then print each one on a separate line. #include <iostream> #include <vector> using namespace...
[5 replies] Last: That fixed it. I thought the terminal character would be added when th... (by jgreer6003)
by h4ever
solved: did you delete my question?
 
I had created a thread, question about how to convert graphics to bitmap, but the
[6 replies] Last: If you idle too long on the browser, you will, sometimes, get disconne... (by closed account j3Rz8vqX)
vector<char> to string
 
How can I initialize a std::string from a vector<char> ?
[2 replies] Last: Waw how stupid I`m I :) Thank you ;) (by closed account EwCjE3v7)
My Flappy Bird
 
This is my flappy bird game. The 'o' on the very left is the bird and you jump by pressing space key. #include<iostream> #include<cstdlib> #include<ctim...
[5 replies] Last: Hmm... your maze is wrapping and returning to the left side; which see... (by closed account j3Rz8vqX)
C++ primer 5th edition
 
Is this a good book for a beginner to start with? I know some basic programming from videos on youtube and how much of the basics of c++ should i know before i ...
[3 replies] Last: C++ Primer only introduces console programs. In fact, the only book I ... (by closed account z0My6Up4)
May 2014 Pages: 1... 1011121314... 55
  Archived months: [apr2014] [jun2014]

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