General C++ Programming - September 2019 (Page 6)

Shell project for portfolio
 
Hello, I'm a student starting my 3rd year in CS. I haven't landed a job yet, so I have no experienc...
[2 replies] Last: there is much OS and little C++ in a shell. Unless you go all-in, a ... (by jonnin)
Segfault while reading/writing to binary files
 
Hi guys, I'm using the g++ compiler on a Ubuntu virtual machine it could be 32 bit but not too su...
[6 replies] Last: > also lets say I wanted to create some c style strings on the stack i... (by ne555)
How would I convert a string to a float?
 
Having trouble converting a string to a float in main in this program. Using Visual Studio 2017. Any...
[17 replies] Last: > Only thing I need now is error checking for not accepting letters as... (by JLBorges)
by Frrag
Reading from file
 
Hello, I have problem with reading from the prices.txt file (file look like this) https://pastebin...
[1 reply] : Show us what you've tried. (by Ganado)
How to detect a text in output?
 
For example: I get output like this (2nd below) and I want to output cout << new8.xml <<endl...
[10 replies] Last: Only if you can guarantee no one will EVER touch any of the files, els... (by Duthomhas)
Inheritance - 2 Classes - Questions
 
I am trying to learn more by practicing doing simple exercises on classes. - I have made a Player...
[3 replies] Last: #include <iostream> struct properties // properties common to more ... (by JLBorges)
lengthly example on how to make save points please
 
Hi, I would like to know how to make save points in a script so the saved data can be accessed at a ...
[3 replies] Last: Create a struct or class that holds your data. Create read(istream&) a... (by dhayden)
creating a tron game in c++
 
hey guys hit a bit of a challenge. i am writing code to to create a tron game. i have it all functi...
[2 replies] Last: thanks for that, solved the problem. cant believe i missed that thanky... (by willz100)
Cannot read string with space by using getline
 
void Product::Input() { SetName(); SetProductionYear(); SetOriginalPrice(); } void Product::S...
[5 replies] Last: Thanks you guys it actually worked perfectly like what #fiji885 said. ... (by PoorBoiz)
by herad
Counting number of repeating characters in a string?
 
If I got a string like "bookkeeper", how can I count the number of following characters that are rep...
[4 replies] Last: Yes , that helped fix the problem. Thanks very much Albatross. (by herad)
how to put file or files on usb drive for other computer use
 
hi everyone, how do i copy a file( or files ) on a main computer and paste it on a usb drive to be ...
[5 replies] Last: tried it, Ganado, it worked, thank you, copied and pasted it (by nubcakeTotal)
Test driver development questions and which book to read?
 
Hello! I want to learn test-driven development but I can't find any resources on the internet (to...
[4 replies] Last: I still don't get how to design this if most of the classes have comp... (by MikeyBoy)
Advanced C++ exercises.
 
Hello everyone. I'm a computer engineering student, actually on the third semester. By now I think I...
[12 replies] Last: I've pretty much dropped GCC from my builds these days, except as requ... (by Duthomhas)
I have problems for calling a function. I don't quite understand why it couldn't work
 
void Order::Input() { Product::Input(); cout << "So luong: ";// quantity cin >> quantity_; cout...
[6 replies] Last: #coder777 Thanks a lot now I understand. (by PoorBoiz)
Access row in vector<vector<int>>
 
I'm stuck on an innocuous problem that just isn't going away. Consider this: class Trollop { ve...
[15 replies] Last: In one of my other projects, where I was implementing the same sort of... (by VMsrVT2Tyc)
GCC 9.2.0 C++ and Threading Building Blocks (1,2)
 
I have installed GCC 9.2.0 C++ compiler on Windows 10 Laptop. g++-9.2.0 command is working fine and ...
[21 replies] Last: As shown below, I have commented out TBB specific code and re-built an... (by AlexCantor)
Could anyone explain the problem that I have here. I think I don't have enough understand about class
 
#pragma once #include "product.h" class Order : private Product { private: int quantity_; // So l...
[3 replies] Last: #ne555 #Albatross oh I see, I just forgot that GetVAT() just a functi... (by PoorBoiz)
by M22878
Display a color for each audio file?
 
I have this little program I made that randomly plays audio files. Does anyone know the easiest way ...
[5 replies] Last: Okay, I will try that. But how do I assign each color to an audio fil... (by MikeyBoy)
C++ Epochs
 
I want to share the new CppCast episode: https://cppcast.com/vittorio-romeo-epochs/ Rob and Jaso...
[no replies]
by frek
Cross work
 
Hi all, Where to find a cross work job for a C++/Qt programmer? What are the best ones in your p...
[2 replies] Last: Yes, I mean to get hired and work remotely for a company. For the prob... (by frek)
September 2019 Pages: 1... 4567
  Archived months: [aug2019] [oct2019]

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