
please wait
by ronenp88
need library to convert a decimal number to fraction (rational)?
|
hello everyone, I don't know to do this myself, so I rather use a library, I need to convert decimal numbers to fractions (closest possible fraction in lowest t... |
Oct 13, 2018 at 8:23pm
[17 replies] Last: That looks fine. If it works, you're golden. (by Duthomhas)
|
by Satan
Typing subscripts on console or other custom speial characters?
|
Is there any way to implement subscripts and superscripts (besides 1, 2 and 3 which are available as ASCII values, for subscript). And how about special chara... |
Oct 13, 2018 at 8:17pm
[6 replies] Last: It is a user's environment issue, so you'll need special help on every... (by Duthomhas)
|
by vittorioc98
Adding element to vector without knowing the parameter class
|
Is there a possibility to add an element to the vector without knowing the class of belonging to the object I want to add? I mean.. if I had a "BaseClass" and ... |
Oct 13, 2018 at 6:46pm
[13 replies] Last: Why if i do vec.push_back(make_unique<Account>(object))); doesn't wor... (by Peter87)
|
by adam2016
saving a highscore in a game
|
Hi guys, lets suppose I create a game maybe a console game or even a GUI game using SDL or SFML,how would you save the highscore(make it persistent),the obvi... |
Oct 13, 2018 at 6:37pm
[11 replies] Last: Functions such as memcpy uses void* which is much more convenient to u... (by Peter87)
|
by jackos8234
Brute force Polynomials
|
The quadratic function ax^2 + bx + c achieves the value 0 for certain values of x (called the roots of the quadratic) – these depend on the parameters a, b... |
Oct 13, 2018 at 4:41pm
[no replies]
|
by Fabr
2019 error
|
Hi, I'm new here, I'm working for a game and I can't understand this error: LNK2019 external reference "void __cdecl SPRITE(void)" (?SPRITE@@YAXXZ) _SDL_main ... |
Oct 13, 2018 at 4:18pm
[12 replies] Last: Just do what my or Ganado's post said, and tell us your results. Also... (by poteto)
|
by poohbear
building errors
|
Iam getting bunch of building errors but the code is compiling can someone help Date.h #include<iomanip> #include<iostream> using namespace std; ... |
Oct 13, 2018 at 2:29pm
[1 reply] : Hello poohbear, I think your problems here are being addressed in htt... (by Handy Andy)
|
Calling main(); |
Are you allowed to call the main(); function? I've heard it's forbidden but it works. For example: #include <iostream> using namespace std; int main ()... |
Oct 13, 2018 at 12:19pm
[7 replies] Last: As I recall, amongst other things, the compiler is allowed to assume t... (by Repeater)
|
by poohbear
roomtype
|
Please help with the roomtype function. #include<iostream> #include<string> #include"date.h" using namespace std; class Reservation { private: ... |
Oct 13, 2018 at 11:59am
[5 replies] Last: Hello poohbear, Once I created ctors for the "Reservation" class I co... (by Handy Andy)
|
by BashPotato
Recursion and Return Values [Help]
|
Hello everyone, I am having some difficulty figuring out how to restart this program or "Loop it over and over" as long as the user wants to play again. Befo... |
Oct 13, 2018 at 11:16am
[4 replies] Last: I am aware I could just recursively call main() and be done with it ... (by jlb)
|
by Patch97236
STL Map container question?
|
I'm trying to plan a homework project where I have a database class and a report class, the report class will generate various reports using the data from the d... |
Oct 13, 2018 at 6:00am
[11 replies] Last: Yeah I know it was mines but I honestly wasn't sure if it was a good i... (by Patch97236)
|
by Seyter
Wrong and unexpected
|
Do you see something wrong with the code that cause compiler failure? #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main()... |
Oct 13, 2018 at 5:05am
[1 reply] : Lines 73 to 76 should be removed. Just removed. You have put semicolo... (by lastchance)
|
by jcarbo
OPening a file with a class
|
HI Guys, I have been having lots of issues not understanding why this isn't working. I'm trying to 1. Read the contents of the file into the string object ... |
Oct 13, 2018 at 4:49am
[5 replies] Last: If you require .c_str() when opening a filestream then you need to upg... (by lastchance)
|
by Neonz27
I don't understand this error...
|
I'm not sure if this is the correct place to be posting this, but I made a similiar post on Stack Overflow recently to which no one actually answered my questio... |
Oct 13, 2018 at 2:29am
[7 replies] Last: Glad to hear you got it working, good luck! (by Ganado)
|
by Mushu911
Help with C++ Reading and Displaying Input Txt file with while loop
|
Mushu911 (1) I hope this is appropriate. I'm pretty dumb. I'm very new to programming and I still don't fully understand a few concepts. I've looked up several ... |
Oct 12, 2018 at 9:14pm
[3 replies] Last: Also note, for the name, the extraction operator stops processing the ... (by jlb)
|
by adam2016
algorithm/math help
|
hi again guys, this thread will be about math and how math is used in algorithms,so most algorithms are based on math, so it's hard to avoid using simple to ... |
Oct 12, 2018 at 7:50pm
[9 replies] Last: I am guessing the parts past the decimal point are truncated right?... (by Ganado)
|
by CheesyForde1
Question on for loops.
|
Just have a question. I want to recreate this table with any percentage and number however, I looped the years but I also need to loop the number of students ea... |
Oct 12, 2018 at 7:40pm
[5 replies] Last: Guys thanks, you solved my problems. I'm not really a problem solver b... (by CheesyForde1)
|
by gjur99
Help If Else statement
|
im trying to make this program where you can choose a language between the ones given. But every time i try to run it, no matter the input it give me only engli... |
Oct 12, 2018 at 4:44pm
[5 replies] Last: thank you so much guys! @saeidsj @Ganado @Thomas1965 (by gjur99)
|
by adam2016
string was not declared in this scope
|
Hi guys, I seem to be having some problems with std::to_string function in the string class |20|error: 'to_string' was not declared in this scope| I t... |
Oct 12, 2018 at 3:08pm
[12 replies] Last: re-read what I said :) most of the issues we mentioned are legal c++ ... (by jonnin)
|
Can We Draw a Circle using ASCII? |
Hi All! Can We draw a Circle by using ASCII Codes? Need Help |
Oct 12, 2018 at 2:57pm
[2 replies] Last: there are famous pictures redone in ascii: my professor in college had... (by jonnin)
|