Beginners - October 2008 (Page 2)

What does API refer to?
 
Question is as above
[2 replies] Last: Read this for more informations: http://en.wikipedia.org/wiki/API (by Bazzy)
by Djanvk
How to search a binary save file?
 
Ok I think I understand how to save information to a binary file but how do you recall a certain record in a binary file. For Example: A address book, you ha...
[2 replies] Last: a simple example (using C but the principle is the same) typed... (by anders43)
by g0dwyn
what does a static function do?
 
Hey everyone, So I've seen examples in source code, etc, where a function's return type is declared as static, such as static int foobar(); or someth...
[4 replies] Last: A static function inside a class is a function that can be called with... (by jsmith)
by wy737
New student
 
Hi, Dear. void foo(int x, bool flag /* = true */) { ... } what mean is this "flag /* = true */" ? and bool foo1 ( int *a, int x, bool y = true ) { re...
[4 replies] Last: Great, Thanks All ! (by wy737)
by Flinch
Need assistance with beginner collision code
 
I have taken quite a few hours to investigate this myself. I am very new to C++ and have only found trouble when trying to fix this. Perhaps someone can help. ...
[9 replies] Last: No worries. Have left myself a message to post it tonight when I get h... (by Zaita)
Reading into 3 arrays
 
Hey guys. I'm trying to write a function that opens a file called "scores.txt" that has the format as follows exam1 score for student1 exam2 score for stud...
[4 replies] Last: Hah, ok. I was getting some basic stuff confused there. Thanks a l... (by acevans2)
how to compare input with array element
 
hey guys; i have program that i should get string input from the user check if it is in the array if not store the string in it and if it already in the array ...
[4 replies] Last: @firdraco Yes, sorry, you're right. A stuppid beginnersmistake from m... (by Scipio)
c++
 
hi.. i just wanna ask one question. my question is what term we will used if we used a functions in a program?
[2 replies] Last: umm....i think thats called a function call (by ja23jr)
For/while loops
 
I need to write program that asks a user for two numbers and then computes and outputs the sum of all of the consecutive numbers between the two numbers. Like i...
[5 replies] Last: @ Bazzy I don't disagree with you, but many, many, MANY students will... (by jpeg)
Confusion with a deceleration equation?
 
Hi I was wondering if there are any other equations for deceleration/acceleration other than (v1-v0)/deltat with just those variables. I've wrote it in ...
[4 replies] Last: It's cool, we've all been there. Post if you have any more problems. ... (by jpeg)
by DNRN
How to print a map sorted by value
 
Hi I'm working with the book C++ Accelerated, and working with maps. I have defined a map<string, int> where string are words and int are how many times they ap...
[6 replies] Last: I really don't know... I sorted some vector strings earlier, I might s... (by DNRN)
alternative to cin
 
Most of my assignments thus far have involved accepting some input from the keyboard with cin. The problem is that cin always requires the user to press enter,...
[1 reply] : In conio.h you should find getch() . By using it you could get eac... (by Bazzy)
by bagri
C language
 
hello dear, I love C and C++ language, and I want to learn it but I don't know how to write a program and where to write, my question is where can I write my pr...
[2 replies] Last: Also, you can read the tutorial on this site for steps to get you star... (by firedraco)
typedef void *pointer
 
I am not clear about this type? When we use this type, do we need to allocate memory for it? Thanks!
[2 replies] Last: void* points to any type of data; in order to use it, you must cast it... (by Zhuge)
by Ruddo
Problem with rand()
 
HI all, I'm having a problem with rand() , in that every time I use it, it returns the same value, 1804289383. Can anybody explain this to me, please? ...
[14 replies] Last: rand() implements a linear congruential random number generator which ... (by jsmith)
a problem for printing my array
 
hi every body, i need some help please i don't know why i cannot print my elements in my arrays. i don't know why? i have a struct Word whith 2 element one i...
[1 reply] : sorry to distrub you guys i find the probleme it was my compare in thw... (by tukuniata)
If, Else, And Cin
 
Hi, I am having a problem understanding simple if, else, and cin commands. What I want to do is make it so I give the user a choice or a question, and dependin...
[1 reply] : if conditions should be (x==1) and (x==2) , not (y) and (z) ... (by Bazzy)
by faizlo
C++ code with conio.h
 
Hi, I am new here and new to C++. I am using a book to learn C++. I had this code from the book which contains conio.h library. I know this is a window thing...
[2 replies] Last: Just remove line 5 and replace line 26 with cin.get(); (by Poke386)
BST question
 
I am trying to print the elements of the tree but am not getting anything to print Driver program: #include "BST.h" #include "header_file.h" template...
[5 replies] Last: OK i changed it to this: #include "BST.h" #include "header_file.h" ... (by bluegray)
someone can see this and someone can't see the magic on STL vector
 
hi all, first of all I am very new to the C++ programming and the STL programming. But I did this exercise on C++ STL vectors. This is the exercise that I h...
[2 replies] Last: Why don't you just declare the vector as vector<vector_element>... (by anders43)
October 2008 Pages: 1234... 20
  Archived months: [sep2008] [nov2008]

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