Beginners - January 2018 (Page 20)

while (x!='<letter>') does not work, does with number
solved: || should be &&. I'm making a dieroller. I take the input in as a string, for example 1d1. ...
[3 replies] Last: x_str = ... This is the same problem as elo mentioned. When i=0 , ... (by Repeater)
C++ programming book with best practices
Hello, I am a fairly decent programmer looking to deepen my understanding of c++. Technically I am a...
[1 reply] : Since you have programming skills already I would recommend: https://w... (by Thomas1965)
Find and replace strings in HEX in bin file
Hello. I am trying to write a program changing the string (HEX) to another of the same length. I ...
[no replies]
Using Polymorphism
The code below is suppose to compile and execute. However, when compiling, an error C2280 is genera...
[6 replies] Last: Let me state the author's reason for Interfaces. Basically, an inte... (by phztfte1)
Can someone explain why i'm getting a segmentation error (core dumped)?
Can someone tell me why I'm getting a segmentation fault (core dumped)? After I compile my code, I'm...
[2 replies] Last: Ahhhhh! Thank you! I tried stepping away and I was still stumped. I ... (by smokebudda11)
by Handge
Alternative to system("pause")
I want to have a waiting or something like system("pause") , but it has been said to be evil. Is th...
[9 replies] Last: @ jonnin Your conflict of thinking prejudices yourself into claiming ... (by Duthomhas)
by benjm
Getting your bearings in a large c++ project you didn't write.
Hey guys, so I'm trying to read through the source code of an old game I'd like to port to the w...
[no replies]
Network tree builder
Number of trees
[1 reply] : Your indentation makes the code harder to read. I would go back and st... (by kingkush)
by Handge
Visual Studio ok to use system("CLS")
After searching and reading a bit about Visual Studio clearing the screen. People generally say syst...
[2 replies] Last: At the risk of beating a dead horse: The std::system function is not... (by mbozzi)
by seanFE
Dynamic Image Perspective and Cropping
I'm new to C++ but have some experience with octave/matlab. I am trying to make a program that is ab...
[2 replies] Last: Thank you very much for the detailed reply. I definitely will think th... (by seanFE)
by Handge
Access object from other file
How would I access an object from another file? main.cpp #include <iostream> #include <string> cl...
[5 replies] Last: You created t1 in main. ideally you want to have a separate file for e... (by kingkush)
Class fails to override base class function.
I am trying to develop a mod library which compiles up against a static library that contains class ...
[3 replies] Last: You're welcome - glad I could help. (by MikeyBoy)
Do these two methods of creating an object pointer give the same result?
Hello. int main() { //METHOD 1: Car *myCar = new Car; //METHOD 2 Car fredsCar; Car *fredsC...
[3 replies] Last: Line 5 creates such an object via new and assigns the resulting addr... (by Beyond Humanity)
by cn00by
NO warning signed unsigned int, with -Wall?
hello, i have some question about signed unsigned compare. Following code drops me an warning #i...
[4 replies] Last: Here's a piece to the puzzle: #include <iostream> #include <string> ... (by Ganado)
Getting strange values in calculator program
Hello, I made a calculator that can use the last calculated value over and over again a bunch of tim...
[7 replies] Last: Hello MoreUmph, This is an interesting program to work on. Even thoug... (by Handy Andy)
by mgabco
Frequency f characters
Hello. I am trying to make simple programm to decipher some crypted text (school excersise) Text i...
[1 reply] : #include <iostream> #include <cctype> #include <sstream> #include <ve... (by lastchance)
by reng
write struct to textfile.txt
I'm trying to write a struct to a textfile (txt) after the user has entered: name, haircolor, age an...
[4 replies] Last: ... ok, do this. print to the screen/console what you think you write... (by jonnin)
Passing Pointers
The coding is about passing pointers for an int and an array. 1. How do you pass the **pointer a...
[6 replies] Last: Thank you very much, Ganado! I have a better understanding of the ** ... (by phztfte1)
Using vector as returning function
Write your question here. Hello, I am new to the community. I want to ask a question about my code....
[3 replies] Last: #include <iostream> #include <vector> using namespace std; using vec... (by lastchance)
by vitcal
Insert data into array
I'm really new in c++ and i need a suggestion regarding the topic in the object. I have two vectors...
[1 reply] : Solved (by vitcal)
January 2018 Pages: 1... 1819202122
  Archived months: [dec2017] [feb2018]

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