
please wait
by rhaegal21
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... |
Oct 12, 2018 at 2:47pm
[3 replies] Last: Dear friend, Your Bucket sort is not bucket sort because you used your... (by saeidsj)
|
by FrostGiant
optimization
|
minimum of these four terms-((4-2a),(4-b),(6-2c),(20-4d)) where a+b+c+d = 12 |
Oct 12, 2018 at 2:35pm
[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... |
Oct 12, 2018 at 11:32am
[5 replies] Last: void foo() { if ( something ) { foo(); } } Yes, and that... (by keskiverto)
|
by Sagar Khati
please give some valid test cases for this problem
|
Oct 12, 2018 at 11:26am
[1 reply] : [quote=MikeyBoy]If this is a Codechef problem, you should know that th... (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... |
Oct 12, 2018 at 2:33am
[1 reply] : The way you have it, it will "work" if you only compile the main file.... (by tpb)
|
by anasmourad
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 = { ... |
Oct 11, 2018 at 11:35pm
[2 replies] Last: Do you know how to deal with custom resources like icons and bitmaps? ... (by closed account E0p9LyTq)
|
by EMA833060
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... |
Oct 11, 2018 at 7:27pm
[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 ... |
Oct 11, 2018 at 5:48pm
[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()... |
Oct 11, 2018 at 4:31pm
[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... |
Oct 11, 2018 at 4:22pm
[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... |
Oct 11, 2018 at 4:13pm
[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... |
Oct 11, 2018 at 3:14pm
[3 replies] Last: Alright, I manage to find out the source. But I don't really understan... (by Seyter)
|
by nikkismith
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 ... |
Oct 11, 2018 at 1:24pm
[4 replies] Last: Hello nikkismith, Thank you. That is a start and a help. Andy P.S. ... (by Handy Andy)
|
by EtherVae
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... |
Oct 11, 2018 at 1:16pm
[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... |
Oct 11, 2018 at 12:57pm
[2 replies] Last: #include <iostream> int main() { // try changing the value of N ... (by JLBorges)
|
by weathergood
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... |
Oct 11, 2018 at 10:47am
[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... |
Oct 11, 2018 at 7:02am
[1 reply] : So far you have tested the insert and erase functions. You also should... (by Thomas1965)
|
by kramsuiluj
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 ... |
Oct 11, 2018 at 12:59am
[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;... |
Oct 10, 2018 at 8:17pm
[3 replies] Last: I've checked your expression for Y in the correlated case and as far a... (by lastchance)
|
by brian818
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.... |
Oct 10, 2018 at 5:14pm
[3 replies] Last: Well, obviously I should have proofread that before I posted. My bad- ... (by brian818)
|