Beginners - February 2009 (Page 2)

Arrays of dissimilar objects?
 
I need to create an array of objects of different Classes. How do I declare this?
[4 replies] Last: Can you give me a visual example (code)? Lets say the base class is... (by Blanco64)
by MPKMM
Is there an expression for ANY variable?
 
Hi, folks! I have a statistic program with several dozen variables and ten thousand iterations. The program returns a NaN in some loop every time. I want to tel...
[3 replies] Last: thanks, guys! (by MPKMM)
Quick question
 
Is declaring the variables in the functions like I did below make them global variables? #include <iostream> using namespace std; int menu(int choice);...
[1 reply] : No, using variables as parameters of functions doesn't make them globa... (by Scipio)
How to move 2 DWORD to __int64?
 
Hi. I have a FILETIME struct that contains 2 DWORD (lowtime and hightime) and, for comparations, I need to move this values to __int64. How I do this? Thanks
[2 replies] Last: unsigned _int64 x=time.dwHighDateTime; x<<=32; x|=time.dwLowDateTime... (by helios)
What is the c++ code for Two-way sort/merge?
 
example; how many input?:18 //it should be divisible by 3 input 18 numbers not in order(ascending):51 60 80 2 9 5 22 100 11 13 15 8 3 33 30 120 150 107 p...
[2 replies] Last: And post some code to show some effort. I got an A in beginning and i... (by jsmith)
what is the c++ code for folding hashing function?
 
example: enter number:12345 enter folding combination: 12+34+5 12+34+5 =51/*get the last two digits*/ final answer=51 example 2: enter number:409786 ...
[1 reply] : Post code. We don't do people's homework for them. (by jsmith)
what is the c++ code for mid-square hashing?
 
in this program, you will get the middle digits and square it: example: enter number:12345 enter mid number positions to square:234 234^2 =54756//get the l...
[1 reply] : Please post your non-working code, otherwise we don't do people's home... (by jsmith)
linked list confusion
 
Does this correctly delete a linked list? This code is included to show what everything is: typedef NodeType* nodePtr; struct NodeType { dataTy...
[2 replies] Last: deleteList looks correct. firstItem is wrong because it does not init... (by jsmith)
Global Variables question
 
I'm making a menu program and wanted to check whether it is using global variables or not. #include <iostream> using namespace std; int menu(int ch...
[1 reply] : A global variable is a variable which is declared outside the scope of... (by jsmith)
how can i make prime-number division remainder?
 
where in, a number will be divided by a given prime divisor (example:97) and extract the final last two digit decimal places. example: input number:24964...
[1 reply] : the % operator returns the remainder of an integral division 24964%9... (by Bazzy)
'c' source billinear interpolation
 
i m now corrently working on image enlargement,if anybody having the 'c' or 'c++' source for billinear image enlargement pls post.thank u
[1 reply] : http://onslaught-vn.svn.sourceforge.net/viewvc/onslaught-vn/trunk/src/... (by helios)
what is the code of digit extraction hashing function in c++?
 
The distribution of this hashing function is dependent on the distribution of the key values. the key values are analyzed to determine which digit posit...
[no replies]
what is the code for radix conversion hashing function in c++?
 
what is the code for making this hashing - radix conversion function: example: input number:123 input base: base 12 (1*12^0)+(2*12^1)+(3*12^2)= the answer...
[no replies]
what is wrong with my code?
 
here is my error my code's outputr is this: Choose Hashing Technique: (Choose number) Prime Number Division Remainder folding 2 Hashing-folding ...
[no replies]
by Faysal
Code needed!
 
How to compare a word with other word. can anyone give me a sample code for this! Just like dictionary or passwrod!
[2 replies] Last: Where the user will be asked for entering his word which would be comp... (by Faysal)
by airowe
Header file Error...
 
I need to write a program that stores user input in a vector<Person*> and a vector<Car*>. The program then traverses a vector of Person objects and adds 1 year ...
[8 replies] Last: Repost what you have so we can spot the problem quickly. (by seymore15074)
Stopping a program
 
My project is using a counter based loop. Main calls a void function and it correctly runs the 'if' 3 times and then does the 'else' correctly. During this ...
[1 reply] : If you are inside a function, you can just return to get out of it, an... (by firedraco)
by c1one
how to write this spell check program in c++
 
ok so heres the assignment Spell Checker You will write a program that reads a file and performs a spell check on the file. You should specify the name of the...
[10 replies] Last: i would but im on my normal computer i dont have c++ on it :( um ill d... (by c1one)
Function inside a function.
 
I am actually looking for help on creating two functions. I am sure there are pre defined functions out there, but would prefer to work on my own functions so I...
[2 replies] Last: tried the suggested change on the backspace structure, still not worki... (by Afupi81)
by jesusk
Using "For" in a program
 
i need to use a program that shows on screen numbers from 1 to x but i cant display multiples of 3 and i need to repeat it a 100 times and display a 10 by 10 gr...
[4 replies] Last: The while idea was the one... i found out why it was wrong, it accomp... (by jesusk)
February 2009 Pages: 1234... 22
  Archived months: [jan2009] [mar2009]

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