Beginners - April 2011 (Page 50)

by gabyam
Set initializing value for all elements of an array
 
Is there a way to set an initializing value for every element in an array? I have a type int array and need a way to set every value to 0. How can this be done...
[4 replies] Last: #include <iostream> using namespace std; int main () { const int n... (by Janlan)
can anyone explain to me what is happening
 
void convert(int num) { if (num>0) { convert(num/2); cout<<num/2; } } if i put num as 17 it will display 10001 i want to know why? i don't get...
[8 replies] Last: i'm sorry. (by hunkeelin)
Binary trees
 
if given a set of numebrs what do u mean by assuming in orderly property? e.g assume the follow values are to be entered into a binary teee that is to have t...
[no replies]
Displaying and transforming objects in layers
 
Using the glDisplayfunc();, I want to display and transform individual objects in layers but its misbehaving instead. I know about how open gl executes the matr...
[1 reply] : glPushMatrix and glPopMatrix. http://www.opengl.org/sdk/docs/man/xhtml... (by hanst99)
About Functions
 
How to define a function with two arguments – string and character that returns the index of second occurrence of that character in the string or -1 if there ...
[6 replies] Last: short functions The return type is short (short int to be precise), ... (by hanst99)
Sax-Parcer
 
Hello Guys! I want to write 2 applications for analysis xml via help of sax-parcers msxml and libxml respectively. Any help greatly appreciated!
[no replies]
Tamagucchi
 
Anyone know where I can get some coding for a Tamagucchi program..........? Like the stupid key chain game from the early 90's? Not how to cheat with ch...
[5 replies] Last: I am pretty sure someone has, but it's not the kind of thing anyone r... (by turbowhat)
save and load class to binary file
 
Hi guys, i recently start to learn abt the class and now try to save and load the class in binary file.. i was trying to do 2 program, 1 was insert the class in...
[2 replies] Last: i try to change the string type to cstring and now the program run suc... (by Kageong)
use command window in VC++ 2005?
 
Hi, I am kind of learning C++ n have been trying to explore visual C++ 2005. I could not figure out what I can use command window for? and how to use ...
[1 reply] : Enter help in the command window - the help system will give you f... (by guestgulkan)
what is dereferencing?
 
What does dereferencing means? *(abc) does it mean rereferencing hte pointer to point to a certain address you want it to? or what
[4 replies] Last: thanks alot. this forum has been a great help (by hunkeelin)
How to coorperate with C programmers?
 
I am a student of EE who is doing a research about video processing.Most of my classmates, including my seniors, they deem they know c++ but always treat c++...
[4 replies] Last: Well, they don't know c++ then. A good software engineer would presen... (by jsmith)
while loop
 
Hey, I'm not brand new to C++ but I was wondering about this code: int f = 0; int j = 0; while((acinput = acinput[j++]) != '\0') if(acinput != ' ...
[2 replies] Last: It evaluates the value of x after the assignment ( which is the value ... (by Bazzy)
What is the output of the following.....
 
func(const int var) {var++} int main() { int x=10; func(x); cout<<x; }
[4 replies] Last: int func(int x){return x++;} int main(){ int x = 10; cout <<... (by ciphermagi)
function used to obtain formatted output using DB-Library
 
1.dbbind() & dbaltbind() 2.dbbind() & dbuse() 3.dbbind() & dbnextrow() 4.dbaltbind() & dbnextrow()
[1 reply] : reference: http://msdn.microsoft.com/en-us/library/aa936985(v=SQL.80).... (by hamsterman)
by shenli
Overloading pointer-to-member function
 
Dear All, I have encountered an unexpected result when overloading the pointer-to-member function. In the following code: #include <iostream> using nam...
[4 replies] Last: Thanks a lot! That answers my question. (by shenli)
Which of the following function read one charcter at a time..
 
1.ofstram::get() 2.ifstram::get() 3.fstream::read() 4.ifstream::read()
[1 reply] : You're trying to cheat in a test, aren't you? (by hamsterman)
What does fp.seekg(16) do,where fp is a file pointer
 
What does fp.seekg(16) do,where fp is a file pointer
[2 replies] Last: I would think that would do nothing. It makes more sense to me to see:... (by ciphermagi)
String array problem
 
Hello, here's the problem... /*PROBLEMS ARE IN COMMENTS*/ #include <iostream> #include <string> using namespace std; int main () { char** test = new...
[2 replies] Last: I'm realy n00b while assigning with local pointer lol; THANKS for help... (by sasanet)
comprehension problem about classes and vectors
 
hi everyone the following code generates this error message: error: request for member 'geth' in 'temporary', which is of non-class type 'Tmp()'| #inc...
[2 replies] Last: thanks very much! what a stupid mistake... ^^ (by classified)
Retruning Arrays?
 
Hi! I'm a "kind-of beginner" to C++ programming. I know all of the basics and some "semi-advanced" topics. However, I am having difficulty with returning arrays...
[5 replies] Last: Cool! Thank you! (by Programmer3)
April 2011 Pages: 1... 4849505152... 55
  Archived months: [mar2011] [may2011]

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