General C++ Programming (Page 38)

graph strategies for binary file output
I've written a multigraph template class implemented as an adjacency list. I would like to be able t...
[1 reply] : You can guarantee sizes of integral types: (by LB)
by xystus
Calculating % chance to win against something.
Basically i want to enter in certain values (in my case k/d ratio, and accuracy are 2 examples) for ...
[11 replies] Last: You could let players rate the fairness of other players. The issue is... (by LB)
by Micard
How to create a loop?
Hey there, I have this piece of code. How do I make it read the file line after line? Now it only re...
[2 replies] Last: It is working PERFECTLY well. Thank you very much! I think I understan... (by Micard)
How to change my bubble sort program to sort from a text file?
I am new to programming and for a class project, we are to create a bubble sort program. The program...
[1 reply] : Please do not post more than once: (by LB)
by montop
Account Class Link errors
My class recently switched from C to C++ and I have been having some trouble with class "permission"...
[10 replies] Last: Yeah, I not creating the destructor was the source of my problems! Tha... (by montop)
How to Match Values Within Arrays
Hi I'm trying to write a function that will match the values within an array and the other; for ...
[3 replies] Last: Conceptually this task can use an equivalent of std::string::find See ... (by keskiverto)
Printing out value of 2147483647
I am reading in a string of ints (1112, 1234, 1892, 1987) and for the digits that are greater than i...
[4 replies] Last: Why is integer int? Make it a string and you don't even need to conv... (by coder777)
Matrix Class Error
Hello all, this is my first time of using cpluscplus, nice to meet you all. I am writing a matrix c...
[2 replies] Last: Hello LB Thanks I realised that yesterday and now it is solved, thank... (by nocod123)
Stream Read Buffer Content
Hi, I'm new to the forum, but I've been referencing this websites forum for help with my program. I ...
[12 replies] Last: Try: #include <iostream> #include <fstream> #include <chrono> #includ... (by JLBorges)
File Output
I am creating a program reads a name from a text file "text.txt" loaded as a cstring. It will then ...
[8 replies] Last: ok, that solves my problem entirely thank you. (by lordseanington)
by Ugan93
question about while loop and for loop.
Write your question here. here i have question and i really dont know to do.. confusing. write a...
[8 replies] Last: Why do you care if the user enters anything other than 'Y' ? You give... (by LB)
How do I calculate and return the value of pointer to max element?
I'm Having extreme difficulties with this question. Here is what i have coded, but it wont work. The...
[1 reply] : Please edit your post and make sure your code is [co de]between code ... (by LB)
Decimal to Binary conversion (16-bit)
I need help with a C++ programming problem, for some reason I can't even think of a way to start on ...
[3 replies] Last: Digits in binary have a "weight" of 2 n , where n is the bit number. ... (by Disch)
my little game and still a bit new to classes and how to access one class from another
alright I have a class for shooting(shots) in my game, also a player, map and game class. so I ha...
[6 replies] Last: thank u I did get it to start working, now the tough part of getting t... (by morngrym)
How to pass a non static function as argument
How to pass a non static function as argument? struct A{ void a(void b()){ b(); } ...
[1 reply] : Use std::function and keep in mind that an extra first argument is a... (by LB)
string::compare not working?
I don't know if I'm using string::compare right.. I am using insertion sort to sort some records tha...
[9 replies] Last: Found the error.. I didn't have an = operator after while(j >= ...) (by namesjj)
2147483647 maximum integer
How do I use a vector to store a number that's bigger than 2147483647? I'm reading in an insanely la...
[6 replies] Last: @pattrick128 Instead of reading the numbers into a vector<int> and the... (by naraku9333)
by jhunge
Find the word with most vowel, and the word with most consonant
Write a program that ask for a long string and determine the word with the most number of vowel and ...
[5 replies] Last: You should use std::getline instead of that strange while loop const... (by LB)
How can i call the data type from the function of a class
Hello, everyone. I defined a class as well as member function. And now i would like to call the data...
[1 reply] : I'm not sure what you mean? Could you try rephrasing or providing a be... (by LB)
writing reduce function more efficiently
Hi I was wondering how I could re write this code so it will make my program more efficient and it w...
[6 replies] Last: Yes, what I asked you to try was editing the size of the numerator and... (by Militie)
Pages: 1... 3637383940... 44
  Archived months: [feb2015]

Cannot post in this page. To post a new message, go to the first page.