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...
Mar 20, 2009 at 12:50am
[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...
Mar 20, 2009 at 12:25am
[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') :...
Mar 19, 2009 at 8:53pm
[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...
Mar 19, 2009 at 8:08pm
[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...
Mar 19, 2009 at 7:28pm
[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; ...
Mar 19, 2009 at 7:00pm
[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...
Mar 19, 2009 at 6:55pm
[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...
Mar 19, 2009 at 6:28pm
[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
Mar 19, 2009 at 6:15pm
[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...
Mar 19, 2009 at 5:06pm
[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...
Mar 19, 2009 at 3:36pm
[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?
Mar 19, 2009 at 1:32pm
[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...
Mar 19, 2009 at 12:28pm
[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...
Mar 19, 2009 at 12:03pm
[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...
Mar 19, 2009 at 12:01pm
[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 ...
Mar 19, 2009 at 10:46am
[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: ...
Mar 19, 2009 at 9:04am
[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 ?
Mar 19, 2009 at 1:55am
[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...
Mar 19, 2009 at 12:27am
[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...
Mar 18, 2009 at 10:55pm
[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.
Registered users can post in this forum.