Beginners - January 2010 (Page 23)

by yasser
How to add the user to file ?
 
Hello , I have problem when I want to send the user name of a computer to file that made before .. witch means ( I'm programming a c++ program that sav...
[no replies]
by nix
Object Oreintied Program using jasaw
 
hi I need to create a application which does the following The application should save a list of Jigsaw puzzles that can be re-loaded at run time and edited....
[3 replies] Last: I have started the design and urgently need help I am completely stuck... (by nix)
what is a reference to pointer intended to do?
 
Hey, folks,I met a block fo code in my book, and I don't understand why we need a reference to pointer? It seems like pointers can do anything that references t...
[10 replies] Last: i mean is BTnode a pointer to a reference? or a reference to a pointer... (by blackcoder41)
by tick
Reading from a file / MySQL Database
 
I have some information that I need to have stored and later be retrieved and/or modified. I have come up to two ways of doing this. One is to use MySQL Databas...
[1 reply] : if you want a simple app then just use a text file, if you need to sto... (by blackcoder41)
do you have to re-type "virtual" in derived classes
 
Do you have to re-type the "virtual" keyword in a derived class for the overridden methods (where the methods are virtual in the base class): eg: class base {...
[3 replies] Last: I agree with Bazzy on re-typing it. It is a convenient reminder or a ... (by moorecm)
by zappa
Read File Into Array
 
Hi I am the beginner for C++. I want to know how to wrtie a code to read a file "abc.txt" and read the integer and count how many integer inside the file. A...
[4 replies] Last: http://cplusplus.com/doc/tutorial/files/ the example at the bottom ... (by gcampton)
Something really strange in the parameter list of a member function !
 
This declaration is in the class definition, and it appears very strange! ostream& print( ostream &os = *_current_os, void (BinaryTree<...
[2 replies] Last: Oh, I see, thanks ,man! (by akilguo)
Prime Numbers
 
A prime number is defined as an odd integer that is not divisible by any odd integer less than or equal to the square root of the number. So to translate that ...
[14 replies] Last: I guess the definition was put to rest in the 1970's from what i am re... (by BettyBoopTS)
What is the difference between strings and cin?
 
Like for example: Cout << "UHHHHHHHH" << endl; cin >> x; cout << "UHHHHHHHH" << endl; getline(cin,x); What is the difference and when do you use ea...
[1 reply] : if x is a string, cin >> x; will read only a single word, getline(c... (by Bazzy)
Organisational experts :)
 
This topic doesn't really fit (kind of). I'm wondering how people organize their code on there computers and backups. Because at the moment I have c++, java fol...
[no replies]
Dev-C++ or MS Visual C++ or Ather Program
 
Hi, I have MS Visual C++ but I was wondering which one is better or should i say simpler because i like simple kind of things and MS Visual c++ dose not work si...
[3 replies] Last: code blocks is good, very simple. and also runs single files. or ... (by gcampton)
Looping (1,2)
 
Is looping constantly this complex? I couldn't design something like this if my life depended on it. #include <iostream> #include <iomanip> using names...
[24 replies] Last: There are 3 forms of pow. Each form is an entirely seperate function.... (by Disch)
returning an array using pointer
 
#include <iostream> using namespace std; char * userInput() int main() { int i; char filterInput ; char *(getInput) = userInput(); cout<<"0: ...
[2 replies] Last: whoa! thank you very much Disch. I never thought about that! (by olredixsis)
Find Mth to last node on a singly liniked list...
 
I have a question on which algorithm is more efficient (time & space) on solving this singly linked list problem: #1: Have one pointer go through and find t...
[6 replies] Last: You shouldn't have to loop through the list more than once: firedra... (by Disch)
by Mazd
Challenges for biggeners
 
months ago i was bussy teachng my self how to program using c++,i wrote quadratic equation solver as my first challenge.Now i think hardly to find another probl...
[5 replies] Last: I learnt from my physics teacher,that better way of studying hard subj... (by Mazd)
Simple pointer question...
 
Is the following code valid for removing the first node of a linked list? Node *temp = head; head= head->next; delete temp; temp= NULL; On line 2...
[3 replies] Last: It only makes sense if the pointer will continue to exist later. For e... (by helios)
How to check if memory allocation failed?
 
For a linked list/any dynamic memory allocating object, what is the best way to check if the mem allocation failed? If "new" fails, does it return a null poi...
[1 reply] : If "new" fails, does it return a null pointer? Only if you use t... (by Disch)
Calling a char Function
 
Im know im doing some wrong here, And thats its probably something really stupid but here goes, Im Trying to call the fRead char Function. Its suppose to Open ...
[6 replies] Last: Thank you for the insight, that really clarified a ton of what I learn... (by yoked88)
would like better implementation
 
I just did a small text encryption example. But I am unsure how I can make it better. eg. If I read in a text file how to have more "random" series of encryptio...
[14 replies] Last: [quote=bazzy]There's no difference, a string literal is a char array ... (by blackcoder41)
by GRH
Route problem (1,2)
 
There's an array of structs, containing the different routes between each points. For example: http://img693.imageshack.us/img693/9682/96931372.png Now what...
[22 replies] Last: I've already solved that problem Disch, but thanks :) Now I'm display... (by GRH)
January 2010 Pages: 1... 21222324
  Archived months: [dec2009] [feb2010]

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