Beginners - January 2019 (Page 11)

Writing an array to a text file
 
Does anyone know how to output a 2d unsigned char array to a text file? I have been trying things...
[2 replies] Last: outputFile << (int) ARRAY << " "; (by ne555)
want to start learning c++
 
hello everyone.I want to study c ++ where should I start. Can you advise me?
[3 replies] Last: It will be good if you practice with creating clones of simple games l... (by Observer)
Setting lmits for float
 
A simple one.... but what is an efficient way to set min and max limits you want for float, double, ...
[5 replies] Last: There's really not much else you can do [outside of external refactori... (by Ganado)
Trying to make a function that returns a value
 
I'm trying to make a simple calculator that sends some values to a function and returns the value ca...
[2 replies] Last: Thanks! I didn't know I had to write int two times. I used a link to s... (by Cheesmeet)
by plus29
Program ends halfway after implementation of polymorphism
 
I'm trying to implement polymorphism in the code below, it works fine without polymorphism(calling w...
[4 replies] Last: Fixed the error, many thanks. (by plus29)
Some bug in template with enum parameter
 
Hey. I want to write a helper function `count` to give me a int back, basing on the template paramet...
[2 replies] Last: I come up with my solution. Hmm I think we have 5 * 3 situations. (5 f... (by CakeByTheOcean)
Reading numbers from .txt
 
Hello, I have a text file like this 5 1 2 0 3 5 0 2 7 1 8 9 1 4 6 0 And the code is ...
[4 replies] Last: Since there're spaces between the numbers white spaces are ignored. F... (by coder777)
Personal power point application
 
I want to try to write code for my own power point application that I will make myself. Does anyone ...
[3 replies] Last: Making your own powerpoint presentation software from scratch sounds l... (by Ganado)
CODECHEF LONG CHALLANGE
 
Any problem from the contest would be interested now as the contest is over.
[1 reply] : In MATCHIT problem i got 43.394 points. Anyone who got more than this,... (by blackmamba)
by Bopaki
Not getting the correct output when testing my program
 
I was asked to include a derived class on my clockType time. When I test the program after adding t...
[6 replies] Last: Thanks very much LastChance!!! it works like a bomb.... (by Bopaki)
error: use of ‘this’ in a constant expression while using helper funciton
 
Hello everyone. I had a problem when I try to call a helper function from my a::util namespace. My c...
[3 replies] Last: It looks like it will not be able to deduce the template arguments so ... (by Peter87)
Help
 
Can you help me to solve this? "Create a program that allows to type a old password then it should...
[2 replies] Last: #include <iostream> #include <cctype> #include <string> #include <alg... (by lastchance)
Undirected graph with weights
 
Question- https://www.hackerearth.com/practice/data-structures/trees/binary-search-tree/practice-p...
[no replies]
hospital billing with overloaded functions
 
This is what the program requires. I'm having a little bit of trouble with understanding how functio...
[3 replies] Last: Thank you both so much this really helped me understand functions and ... (by sidsthekid678)
Cant cout an array
 
Hi I've made the array cs1 to be equal to array cs. But I cant get the output. The compiler tells t...
[1 reply] : Hello Alex009988, In the future when you have errors that you do not ... (by Handy Andy)
Read text file for classes object
 
Hello everyone, I want to read my shape, and also the inheritance rectangle from a text file. I got ...
[4 replies] Last: I edit my code because i forgot to put the constructor rectangle. the ... (by closed account iN8poG1T)
Why std::copy changes my pointer position?
 
In the following context. `data` is a `uint8_t*` representing sequence of bytes. `Col` in a std::ve...
[4 replies] Last: You should post the complete code. (by helios)
I got infinite loop
 
Hello everyone, I try to read the text file which contains length and width for some area. I can rea...
[3 replies] Last: Thank you so much!!! @salem c @ducth I just realized i didnt set the v... (by closed account iN8poG1T)
Guessing game c++
 
Hi i am new here,i am trying to learn c++. I am making a number guessing game, the game check for va...
[4 replies] Last: i have managed to reset count and managed to get other numbers randomi... (by maksoud)
Won't calculate correctly
 
Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service c...
[3 replies] Last: GOT IT!! Thanks guys! (by ames1951)
January 2019 Pages: 1... 910111213... 17
  Archived months: [dec2018] [feb2019]

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