Beginners - October 2018 (Page 19)

Help in sorts
 
Write your question here. I have to write a bucket sort and a merge sort using vector and lists, i think i did it but when i test me it gives me a segmentation...
[3 replies] Last: Dear friend, Your Bucket sort is not bucket sort because you used your... (by saeidsj)
optimization
 
minimum of these four terms-((4-2a),(4-b),(6-2c),(20-4d)) where a+b+c+d = 12
[2 replies] Last: Forget it, Jake. It's Codechef. (by MikeyBoy)
Function inside a function
 
Can you call a function inside a function? For example: #include <iostream> using namespace std; char end; void function() { cout << "Do you...
[5 replies] Last: void foo() { if ( something ) { foo(); } } Yes, and that... (by keskiverto)
by Tduck
Multiple definitions of header file
 
I'm making a text game for my players in DND right now, and I can't figure out why I'm getting the error: multiple definitions of functions.cpp I'm running it...
[1 reply] : The way you have it, it will "work" if you only compile the main file.... (by tpb)
Embedding txt file to DLL file
 
Hi there, I am trying to embed a text file with 40k records in C++ project, that exports DLL file. I tried this in visual studio string myFile = { ...
[2 replies] Last: Do you know how to deal with custom resources like icons and bitmaps? ... (by closed account E0p9LyTq)
help
 
I want to put a c++ function into age, injury type, and severity of injury. basically 3 categories. but I'm not sure how to get started, any suggestions would b...
[13 replies] Last: Documentation: http://www.cplusplus.com/reference/vector/vector/push_b... (by keskiverto)
by Rento
New, Help.
 
Hi, I started learning from this book and I am trying to generate a random number from 1-100. The result is generated in a line and I am trying to make it in a ...
[4 replies] Last: OP has a 2d array. I thought the numbers should fit inside the array f... (by Manga)
by Seyter
y/n function
 
My y/n function is not working. If you run it you would understand how it looks. #include <iostream> #include <cstdlib> using namespace std; int main()...
[3 replies] Last: int main() { while ( true ) { int a, b, c; //... (by lastchance)
by AL88
How can I write this without putback or peek?
 
My book is asking me to rewrite this without putback or peek. Can anyone shed some light on some alternatives for me? Thanks. #include <iostream> int...
[5 replies] Last: #include <iostream> using std::cin; using std::cout; int main() { ... (by lastchance)
by quete5
calculator-like program not displaying correctly?
 
Hello, I'm having issues figuring out why my program won't come out the way I want it to. It needs to 1) let the user pick 1-4 from the menu, and if the input...
[4 replies] Last: your code format hurts my eye. (by Seyter)
by Seyter
Displaying user input with array
 
So, what I'm making here is a program where users enter the input, then the output is displayed of what the user entered. As you can see, I am attempting to use...
[3 replies] Last: Alright, I manage to find out the source. But I don't really understan... (by Seyter)
Need Help please
 
Suppose the membership at a fitness club is $500 for individual, $800 for couple and $1200 for 4 people. Every month, the manager at the club says that guests ...
[4 replies] Last: Hello nikkismith, Thank you. That is a start and a help. Andy P.S. ... (by Handy Andy)
Reading/writing vector of struct containing vector of struct to/from file
 
Hi! My name is Marcos, I am a beginner c++ programmer trying to work my way through my first functional program. Thank you in advance for your help! The prog...
[10 replies] Last: you can put vector of properties in main and pass it to all functions.... (by jonnin)
Write the code that will create the following output using nested for loop:
 
Write the code that will create the following output using nested for loop: console output: 0 0 0 0 1 2 0 2 4 I kinda have no clue on how to do this...
[2 replies] Last: #include <iostream> int main() { // try changing the value of N ... (by JLBorges)
Array task(dont get logic)
 
Hello! I just finished learning about very basics in C++ using lynda.com and next chapter is arrays. I got this task there, which I don't understand. Maybe th...
[2 replies] Last: Write C++ program in which user has to enter whole number array. Crea... (by keskiverto)
Google Testing CopyCode
 
I'm writing a Google test for an implementation of a Map class but I can't get the output I'm looking for out of it. TEST(MapTest, eraseOfExistingKeyRetur...
[1 reply] : So far you have tested the insert and erase functions. You also should... (by Thomas1965)
Looping question?
 
I really need help on looping, I don't know if for loop will be used. My program looks like this: Choose a product: Candies Junk Foods Soft Drinks ...
[2 replies] Last: Maybe they are still doing something while buying candy? (by EtherVae)
by m2020
creating two normal random variables with specified corrcoef(rho)
 
Hello everyone i have question about generating correlated random variables...is there a way to generate x1(0, 1), x2(0, 1) which are normal to have rho = 0;...
[3 replies] Last: I've checked your expression for Y in the correlated case and as far a... (by lastchance)
odd and even and counting until 30
 
I am trying to ask the user to enter numbers until the total is more than 30 and counting odd and even numbers. I am really stuck any help would be appreciated....
[3 replies] Last: Well, obviously I should have proofread that before I posted. My bad- ... (by brian818)
October 2018 Pages: 1... 1718192021... 28
  Archived months: [sep2018] [nov2018]

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