Beginners - December 2010 (Page 4)

by ARWA
couldnt connect 2 algorithms...
 
hi,i jot 2 ideas about constructing atree (inorder) with out using recursion now this is the first: void insert<Type>(Type info) { TreeNode<Type>* newNod...
[2 replies] Last: i did the constructer as u said,so i have missed smth very important .... (by ARWA)
Outputting end element of a vector
 
Hi everyone I have used the stable_sort algorithm to place a vector into ascending order. However I need to out put the largest value ( which will be the end...
[2 replies] Last: Thank you so much! :-) (by assemblyman)
by ogward
[alphabetical order]Insertion Sort
 
Hi there! I'm studying for my exam and I've came across a problem... How do I use insertion sort algorithm if I have an empty 20 slot array that is going to...
[2 replies] Last: Ok, thanks a lot (by ogward)
File separation w/ templates & structs
 
Hello, I'm using Mac OS X version 10.6.5 Xcode version 3.2.5 I've been using c++ independently for years, but I'm just starting out separating files. I'...
[1 reply] : template functions/classes have to be defined in the headers. unless ... (by hamsterman)
Searching through text files
 
I had a program installed when I was younger that would save my old AIM conversations. I want to write a program that will search through them for different wor...
[1 reply] : string search; ifstream inFile; string line; inFile.open(test.ht... (by Null)
having private copy constructor and assignment operator
 
what are the implications of having private copy constructor and assignment operator?
[1 reply] : It helps prevents objects from being copied and assigned to each other... (by guestgulkan)
by ARWA
trouble while constructing a tree....
 
hi every one,im having some difficulties in constructing a tree linked list i didnt yet study data structer.now if i want to construct a tree and i dont care ...
[5 replies] Last: after some search i found that using stack will help me ...thanks gays... (by ARWA)
by linoch
How to program inputs for these?
 
Enter person's name (last,first): Smith,John Enter January income: 3560.39 Enter February income : 3557.84 Enter March income : 2788.43 Quarterly st...
[9 replies] Last: Actually, firedraco, technically, he didn't post the solution. That's ... (by Albatross)
Binary to Decimal
 
hey, what is the problem with it? #include<stdio.h> #include<conio.h> #include<math.h> #define size 4 int main() { int array ; int i,input,j; d...
[1 reply] : what is the problem indeed. I don't see any just by looking at it. w... (by hamsterman)
What Compiler for Windows and Mac
 
Hello, I am new to C++ and this forum. I want to write some C++ programs. I have an Intel based iMac at home and I also have a Windows 7 Professional 32 bit ...
[1 reply] : If you transfer the code as text files and just compile it at each mac... (by Computergeek01)
by gilit2
print the line number in the source code
 
How do I print the line number of a specific line in the source code ? It is needed to find the location of an error message .
[1 reply] : there's a macro __LINE__ that gets the current line, thats two undersc... (by quirkyusername)
arrays and pointers
 
i use this code void arrive(int **Mem_in) { .... } int main() { int Mem_in ; for(int i=0;i<100;i++) { for(int j=0;j<5;j++) Mem_in =0; } ...
[6 replies] Last: Hi You can eliminate the size of only ONE dimension. There a possi... (by gilit2)
getch() alternative - NOT getchar()
 
Hey hey C++ forum, I'm finally back! Exams are done and I finally have time to code again :D So I'm making this little addressbook app in the console. I nee...
[6 replies] Last: Sigh. http://www.cplusplus.com/forum/articles/7312/#msg33734 Also:... (by Duthomhas)
can int operator is overloadable?
 
Hi, I have saw the small snippets of code where they overload the "int" operator ... #include <iostream> using namespace std; class CB{ privat...
[5 replies] Last: ...which drives me nuts, because the compiler should be smart enough t... (by Duthomhas)
A reference
 
Hello Is there something that I can use as a reference. For example I type "cout" or "cin" and it shows me a page with information like syntax, example and oth...
[8 replies] Last: Thank you SOOO much!!! (by headbuster)
reciprocal in cmath
 
what is the reciprocal in the cmath library. isn't (1.0/(tan (59.0))* 1.0/7.0) the same as 1 / (RECIPROCAL(tan 59)) * 1 / 7 however ...
[3 replies] Last: Another possibility... 59.0 looks like an angle in degrees. The cmath ... (by closed account D80DSL3A)
Problem with deallocating vector of pointers
 
Hi guys, I don't know what's wrong with the following code! I am deleting all pointers, but when I use the "top" command to watch the memory, I can see that st...
[4 replies] Last: Hi! On Windows the memory usage is deallocated after delete section... (by screw)
graphs in xy - axis
 
i have to write a code to display the graph for function y=x*x in xy - axis any ideas? :P
[1 reply] : get a graphics library. sfml for example. then for(float x = graph_le... (by hamsterman)
Linking LIB Files
 
Hi, I have a programme that uses code contained in a LIB file. At the moment I can only get the programme to compile if I physically copy the LIB file into ...
[4 replies] Last: Brilliant Luc; many thanks... (by freakalien)
Rate calculation
 
I got the entire program to work. However, for some reason, I can not get the program to calculate the occupancy rate. It continues to display 0.00. Any help ...
[1 reply] : dude, occupied and room are integers. int during the division, th... (by Blessman11)
December 2010 Pages: 123456... 35
  Archived months: [nov2010] [jan2011]

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