Beginners - October 2017 (Page 8)

Pass c++ strings to ncurses mvwaddstr()
 
Hello, i need to pass regular c++ strings to the ncurses mvwaddstr() functions. How can achive this? mvwaddstr(a,1,1,"This is window A"); Any suggesti...
[1 reply] : std::string provides c_str() method for this. (by Ihatov)
by Chriss
stack
 
Sry i make stack (becouse i wanna lern how it's working) can u check this ? And say something about it template <typename T> class Element { public: T w...
[1 reply] : Usually people here ask for help with specific problems. Do add a main... (by Enoizat)
windows 10 code blocks problem
 
I just got from windows 7 to windows 10 programming in c++ and i can't use some of the old ascii characters such as the smiley faces. how can i fix this ? thank...
[3 replies] Last: Or just use the Unicode code points: https://en.wikipedia.org/wiki/Cod... (by helios)
Need guidance
 
I have problems with this task. My code is shitty so I won't upload it. The drama theater hall plan is described by a table of units (1) and (0). 1 - means tha...
[1 reply] : My code is shitty so I won't upload it. Should we now say that our a... (by keskiverto)
by Tsaot
Just a quick question regarding the use of class objects
 
For my homework I'm supposed to make a guessing game. The instructions say to use at least one class to access and build the tree, but then the instructions als...
[6 replies] Last: Ah! Thank you! That makes sense. I did start by using just an array, b... (by Tsaot)
srand error
 
I am writing a program for a magic 8ball. I believe that I have everything I need with the exception of when I go to compile and run, I receive an error message...
[3 replies] Last: Thank you!. That worked out well! (by smitty007)
Convert do while to for loop
 
I was wondering how I could convert this section of my code to a for loop do { cout << "Enter all of your expenses for the month: " << endl; cin >> ...
[1 reply] : for (ans = 'y'; ans == 'y' || ans == 'Y';) { cout << "Enter all ... (by Ihatov)
by glof2
C++ polymorphism
 
I moved to objective c++, and i had to learn polymorphism. I understand basic. Complete basics. But when i seen something like this: void __fastcall TForm1:...
[13 replies] Last: The lastest version is free as well: https://www.embarcadero.com/de/pr... (by Thomas1965)
Help with displaying a pattern
 
I need help with this problem: "Ask the user to enter a positive number, the number will determine the number of rows in the following patterns- user enters 3-...
[2 replies] Last: This is what I have so far. I believe this is what the pattern is doin... (by hh98265)
whats wrong with my code?
 
I keep having problems with this code for this problem any help would be greatly appreciated "The payroll manager at Gerston Blankets wants a program that cal...
[1 reply] : First of all, your declaration of getGrossPay() at line 7 and definiti... (by Ihatov)
Issue with my code not calculating pie π
 
Hello, Sorry for my inexperience, i am in need of some help with my code. My task at hand is to estimate π(Pi). The 2 required methods are the Euler ser...
[2 replies] Last: as a side note, 1000 terms not getting even 5 digits is pretty weak --... (by jonnin)
Class with public functions?
 
I need to add a public member function ( addMoney ) to add money1 and money2. I'm having a hard time understanding how to access the function with money1 and mo...
[2 replies] Last: Thank you sooo much!! I understand now Money addMoney function.... (by nicoleb)
by iif201
functions issue
 
Im trying to run a program that lets the user enter a viewing code and title and then get back what they owe for that code and get the information they entered ...
[2 replies] Last: What I have done here is created working code that is similar to what ... (by heintzman)
How to have structs relative to an object?
 
Hello! I am making a Pokemon program in Visual Studio, and I was wondering if I could have specific attack structs for each Pokemon (Object). So for Pokemon A, ...
[19 replies] Last: Good luck. If youre trying to implement the actual formulas you will n... (by knowclue)
maybe simple for you but not for me MULTIARRAY
 
i have multiarray like this 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 so i want make new array an...
[6 replies] Last: @jonnin yeah you were right i dont look it from that prespective, my b... (by Ryoucplusplus)
help for save many data into array (1,2)
 
please helppp. i have data saved in file data.txt 63.067098 128.986908 0.89787897 0.97687987 0.677647643 63.067045 128.986912 ...
[27 replies] Last: @lastchance Ok perfect, thank you very much despite my question has ha... (by Ryoucplusplus)
Bank account with classes won't store new balance
 
I'm writing a bank account program using classes and I'm running into a problem. Everything compiles and runs but the account won't store the balance that a use...
[2 replies] Last: that didn't help with the initial problem, but it did help with a diff... (by jokersleuth)
Cannot convert to 'Int'
 
I don't quite understand what exactly I change in the bubbleSort function to make it work. cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_stri...
[2 replies] Last: Got it! Changed it string temp; and works perfectly. Thank you! (by Garribean)
Limit for Random #s
 
I have a random # being generated but I only want each number to be generated no more than 4 times (so like a deck of cards. There are only 4 of each number) ...
[3 replies] Last: Small sets of known values   For decks of cards and the like, just ... (by Duthomhas)
Reading a file
 
Hello, my professor gave us a file that has peoples names, current salary, and salary % increase. He is wanting us to code a program that will read the data fro...
[10 replies] Last: Try to mess around with stream formatting functionality inside the <io... (by Ganado)
October 2017 Pages: 1... 678910... 33
  Archived months: [sep2017] [nov2017]

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