Beginners - March 2014 (Page 45)

Management "heap" on one static memory area allocated before
 
Make management mechanism "heap" on one static memory area allocated before. program provides two functions malloc () and free () Who can help me? Thanks.
[no replies]
functions
 
I have been working on this all day and I just can't get it. I go back and look in my C++ companion guide as I read the chapter and this is like a foreign langu...
[4 replies] Last: Thanks Disch i'm trying (by niludown)
Finding the Average of Four Numbers
 
I'm having a problem with making this code work. I need it to find the average of four numbers that the user will submit. The code looks like it should work, bu...
[8 replies] Last: Thanks for all the help everyone. @MiiNiPaa- Tried your suggestion aga... (by mattrye)
Probemwith functions in stdarg.h
 
I dont know english very well, so lets speak in C. (= void simulation_scanner (char *name, int size, int TMP, int num, ...) { int i,j; va_list ...
[no replies]
Help with atoi.
 
Hello everyone, I'm a complete noob in c++, I can't figure out how to do this. I need to do a countdown timer, I already have the whole code, but I need to ask ...
[7 replies] Last: omg thank you tyvm =) (by dualdark)
by Hiten
Deque template class
 
So I'm trying to make my version of a deck class which has several members like addFirst, addLast, removeFirst, etc... I also want it to be iterable. So with r...
[5 replies] Last: ¿why did I bother to comment the changes? (by ne555)
Best Practices for Pointers and References
 
[Edit Note: as I made this is kind of mutated, so if there's more than two questions, or if it stays from what I told you I wanted in the beginning, please don'...
[2 replies] Last: My goodness. Thank you very much! That answered everything in a very c... (by chase993)
STL Containers Move Assignment Complexity
 
I am new to this forums, somewhat new to participating in online forums in general and also a beginner programmer. Please point out any mistakes you see in thi...
[4 replies] Last: it's constant unless POCMA is false and the allocators don't compare e... (by Cubbi)
by mrju5t
Correct a mistake when using unsigned?
 
The program works correct, but since I'm using unsigned how can I fix it so that when I use a negative input I get an error, instead of that negative value bein...
[2 replies] Last: Turn your compiler's warning levels up and don't ignore warnings (or t... (by cire)
diode problem
 
write a program following that prompts and inputs from the user the temp in fahrenheit of the diode. output to the console a table with two columns: voltage (V)...
[12 replies] Last: Well, congratulations, you have run into floating point comparsion pro... (by MiiNiPaa)
Overloading Contructors #2
 
The following code works fine and did what I wanted it to do, however if I change the double data type to float in constructor 2 parameter double height3 it giv...
[4 replies] Last: But I still doen't understand why do you need two essentually equivale... (by MiiNiPaa)
by enemy
delete z or delete[] z?-TWO ARRAYS A!!!
 
Hello! Please, what is the right way to delete the thing in that program? I thought delete z, because we acutally DO have an array in the end. Am I right? ...
[10 replies] Last: Your line with thif function: cout<<"main: "<<pus(st)<<endl; You can... (by MiiNiPaa)
I need help getting started with graphics
 
I don't have any code because I have no idea where to start. I am told that c++ is very object oriented, but all the tutorials I find do not teach me how to us...
[7 replies] Last: "With all due respect" I have learned the basics, I have actually mad... (by Codermik)
Temp conversion for a bigger problem
 
I'm trying to do temp conversion for a bigger problem but it keeps outputting the same number every time which I know is wrong. Im testing this bits at a time t...
[2 replies] Last: thank you much! Obviously I am new to programming (by crbrown91)
Code works - need advice on logic
 
Heya all. New to programming, and new to the forum. My latest homework assignment is complete and working, but I know the logic can probably be made more effi...
[4 replies] Last: Makes sense. I'll still review the <stack> class, since it seems like... (by BagoNone)
Algorithm
 
How to write an Algorithm for this? Design a loop that asks the user to enter a number. The loop should iterate 10 times and keep a running total of the numbers...
[8 replies] Last: Brilliant :) (by Codermik)
[Edited] What is "class" code?
 
What is the user code? what I mean is the code "user" itself. Do you get my point? #include <iostream> using namespace std; int main() { user user1; } ...
[3 replies] Last: classes are usually declared outside of the main function, and they're... (by Uk Marine)
by charmi
Void Function issues
 
Hey, So I'm doing an assignment(worth less than 1% of my grade) and I'm stuck on void functions. We had to write a program and then part 2 was to create certai...
[4 replies] Last: While what MatthewRock says is true, don't be tempted to use globals t... (by MikeyBoy)
const_iterator
 
Im actually having a hard time understanding what is the function of "const_iterator" Can someone help me or explain it to me? Here the code by the way. ...
[11 replies] Last: A constant iterator is just like a regular iterator except that you ... (by Uk Marine)
Multiply a matrix by a complex
 
Hey, I'm new with c++. I'm trying to do something like: Z=X+Y*i where I already have the matrices X and Y. For instance, X = [ -1 -1 -1; 0 0 0; 1 1 1] and...
[9 replies] Last: Try to print it. there you are assigning only the real part, so the im... (by ne555)
March 2014 Pages: 1... 4344454647... 79
  Archived months: [feb2014] [apr2014]

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