Beginners - October 2012 (Page 57)

by oak
heap
 
here is a nice heap information: https://dl.dropbox.com/u/2430001/heap-thoery.pdf help you understand between max-heapify and increase key ( or min-heapfi...
[1 reply] : Yeah, Thanks for spreading the word. Aceix. (by Aceix)
C++ compiler
 
Hi Is there any c++ compiler for i-phone 3gs or ipad? So that I can type and run programs in my phone itself.
[2 replies] Last: Thank you Aceix Ill try and let u know (by vichu8888)
Can't figure out what means int player = 1,i,choice;
 
Okay I know this is a super newbie question so I will give you some background. I am breaking down a tic tac toe source code to see how it works. For me tha...
[8 replies] Last: Thanks guys Because I know I am jumping way ahead of the level of st... (by ebonygeek45)
Float and Double
 
Hi Im also new to C++. What is the difference in the following? float number = 1.5; float number = 1.5f; double number = 1.5; Are any of them the...
[8 replies] Last: Here's an example of why it's best not to mix float and double: ... (by Chervil)
by Aceix
Simple logic behind C++ statement
 
Hello World, Can any of you explain how this statement works--ie: the logic behind this statement--especially the underlined part(the part before the condition...
[3 replies] Last: Thank you all for the help. Aceix. (by Aceix)
by nahla
How would I type y = x + 3/4 - 2 in c++ lang.?
 
How would I type y = x + 3/4 - 2 in c++ lang.?
[4 replies] Last: @cppbeginer123 (8) x / 4 + 3 - 2 // according to order of the operat... (by TheIdeasMan)
why this strtok doesn't work?
 
Hello, This is a part of c code, which I used in a shell script to do the math. #include <iostream> #include <math.h> #include <stdlib.h> #include <...
[1 reply] : The problem is that you try to pass a null pointer to atof. You can si... (by Peter87)
by elmimo
How, in a subroutine, convert String to Char?
 
Hello, Converting from String to Char is easy with... #include <iostream> #include <string> void main() { unsigned int i; string StrName = "TheFile.txt...
[6 replies] Last: Actually, I tried and it is okay. Crossing the street without looki... (by cire)
File write issues
 
I am making a program for a password-protected journal with the option to leave it locked or unlocked. (they can leave it non-password protected as an option) ...
[3 replies] Last: Who's on second. What's stealing home? Uh. Sorry, dumb joke. I put w... (by newbieg)
by htown
Allocate
 
I'm trying to return a pointer to the new process that was just created, but i get an error because it's a void function. So what is the correct syntax? -Thanks...
[1 reply] : You need to change it to: process *allocate_pcb(); // This is the prot... (by coder777)
writing functions
 
I need help writing the functions for this code that reads from a file. the directions are in comments below. I thought I knew what I was doing but the more I a...
[2 replies] Last: I need help writing the functions for this code that reads from a fil... (by cire)
Problem with while loop and output files
 
Hello, I have an assignment for class where I have to write a program to do the following: 1. Read a list of integers inputted by the user (list terminated by...
[3 replies] Last: Ah ok. I solved all the errors. Thank you for your help freddy92! (by NotAnOcelot)
multiple file reads to get values for linked lists(matrices)
 
Hey guys, I'm trying to debug a big project i have and I think I've encountered the first problem. right now the problem lies with getting list values from text...
[2 replies] Last: Or just use a 2D array with nested for loops. (by TheIdeasMan)
by marena
Need some help
 
An airline online booking ticket. Anyone can help me how to do it?
[2 replies] Last: Must be in the same class. http://www.cplusplus.com/forum/beginner/81... (by leftcoast)
Polynomial Class and Fstream
 
For example I have a polynomial class, can I use fstream in main as input for the coefficients? Instead of changing my polynomial class?
[6 replies] Last: Great, thanks! I'll see what I can do. :) (by Amethyst)
Change date from numerical to literal
 
I have a program for a class that i am really struggling with. Unfortunately the pre-req classes i took, were taught by a professor dying of cancer. It is sad, ...
[4 replies] Last: In addition to what codewalker has stated, I think it would be easier ... (by error1f1f)
Prime Number Program
 
I am trying to complete a prime number program, and i have the tests to do so, but i can't figure out the syntax or just like loop structure i guess to make the...
[2 replies] Last: It looks to me like more or less the right lines of code, but not nece... (by Chervil)
timeclock program
 
im writing a program that creates an output file with employee name and time of punch. Its working fine only thing is with every new punch it replaces its self ...
[2 replies] Last: perfect that worked thank you (by LucasCarioca)
Passing 2D arrays
 
After trying to run some code, the code seems to compile, but during run time, i get the following error message: Unhandled exception at 0x777e15de in Hot P...
[4 replies] Last: Thanks again (by anonymousy)
I need help with tracing.
 
I need help with tracing two programs: #include <iostream> using namespace std; int func(int p, int q); int main() { int a = 1, b = 6, c = 4; ...
[4 replies] Last: Thanks so much! I eventually figured out how the first one works. (by bainofmyexistance)
October 2012 Pages: 1... 5556575859... 84
  Archived months: [sep2012] [nov2012]

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