Beginners - March 2009 (Page 12)

Questions about Class using Linked List
 
class LinkedList { private: struct Node { Item data; Node* next; }; Node *HeadList; public: LinkedList(); ~LinkedList(); void insertIte...
[1 reply] : 1) Yes. 2) You already declared HeadList as a member of the class, ... (by jsmith)
Trying to make a program
 
I really want to make a program where it deletes a file. The problem is I want to make able for the user to input whatever file they want to delete not just a f...
[1 reply] : an integer will hold numbers.. try using char a ; or char* a; mm if y... (by kypeswith)
bracketing confusion :)
 
I once ran into a basic ROT-13 encryption algorithm. In there I found this line byte = ((byte >= 'A') && (byte <= 'Z') ? ((byte - 'A' + 13) % 26 + 'A') :...
[4 replies] Last: Yes thanks again I got stuck on this almost two years ago what a relie... (by JC Coelho)
by bul268
How to calculate average?
 
Can anyone tell me how to calculate average in a C++ program for e.g average of numbers? I have used the following code: Average=0 Average+=Marks_Eng+Marks...
[5 replies] Last: thanks chungolongo! (by bul268)
by Jyy
Recieving info in a console application
 
Hello, Does somebody know how I can read any pressed keys? for example, when my program is open en you press left, I want my program to say that you pressed...
[6 replies] Last: Thank you! (by Jyy)
Problem with function
 
hi everyone... i have this program #include <iostream> #include <string> using namespace std; int main () { string s1; string s2; string s3; ...
[3 replies] Last: I thought it was obvious that the solution was to replace your char ty... (by jsmith)
For Loop Variables and how this would work. :S
 
Hello everyone. I am learning C++ and am currently having trouble grasping one thing to do with for loops. When you initialize a variable for a for loop that...
[5 replies] Last: Ahh, alright, thank you. Now I get it. :D Thanks. And yes, you are... (by StephenP)
by masiht
function with switch statement
 
Can anyone please tell me how can I have one function that takes an argument that represents a variable value selected in the following switch statement ? Do...
[10 replies] Last: Dear mashit, I have used void main function. you just do one thing, ... (by matanuragi)
by zydeoN
Returning default values of variables
 
Hello, im new to c++. does anyone know how do i return to the default value of a variable?..:P
[2 replies] Last: ok, thanks it works :D (by zydeoN)
Error with dev-C++ 4.9.9.2 compiler
 
hey im getting and error when trying to compile with dev-C++ compiler :|. HElp MEEE! what shuild i do ? : ) http://img26.imageshack.us/img26/6359/errorpoz.jp...
[2 replies] Last: http://www.rohitab.com/discuss/lofiversion/index.php/t27368.html (by jdd)
by Oromis
bool != bool
 
What is difference between the those two codesnippets (first one doesn't work, second does)? bool status = true; //--------------- //doesn't work: if...
[5 replies] Last: ...only slightly less clear. I like to use whitespace for clarity, ev... (by seymore15074)
return 2d array from function?
 
how to return 2d array from function to main? then can we save 2d array in 2d array of main and use again?
[1 reply] : You can create the array dynamically and then return the pointer, you ... (by Bazzy)
by Sabal
Array question
 
I am making a program for fun to test out my knowledge of different types of C++ techniques. This program takes different information about airplane tickets som...
[1 reply] : Because all of your variables are global, main already has access to e... (by jdd)
by terbor
Stopping the for loop
 
I cant seem to get a for loop to stop at the last entry. I can stop the user from entering numbers but I can't seem to stop the for loop running all the way to...
[4 replies] Last: Look up getline() [There are also many many examples of this posted... (by jsmith)
Getline, Structutres
 
I am building a small practice program for fun containing structures to help me learn them. I made the program but when it comes to the drink section it skips t...
[3 replies] Last: You can also use gets(drinks.name) to input the character string head... (by matanuragi)
example program book
 
is there a example program book or website that goes from basic to advanced while teaching c++ through examples. Ive programmed c++ before and want to get back ...
[6 replies] Last: I bought the solutions to Deitel C++ 6th Edition and the solution code... (by emanuels)
opencv webcam capture problem!!
 
My code is to display a webcam. I meet problem when it runs. I am working with VC 6.0 and using opencv , and I add a button command function ,codes as follow: ...
[1 reply] : You already have a topic on the other Board. Delete one of them? (by Mythios)
by masiht
excess to .h file
 
I made a program and save it . In the folder I can get the .cpp file but not .h file .Can anyone please tell me where can I get the .h file of my program ?
[6 replies] Last: Save the main program as a .cpp and save the header as .h. If it is j... (by eker676)
by sari
Criticism
 
Hello All, I am currently learning C++ after about a year of Java and would like some criticism (try not to be to harsh :) ). I wrote a small random guessing...
[6 replies] Last: Ah, Simple logical error, Thanks (by sari)
ArrayList type Array in C++
 
Hello, I am currently having a problem and am trying to find the best solution. This is what I am trying to do and my problem. I have a base class with multipl...
[3 replies] Last: iirc exceptions are only thrown when you dynamic_cast a reference. Th... (by Disch)
March 2009 Pages: 1... 1011121314... 29
  Archived months: [feb2009] [apr2009]

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