Beginners - June 2011 (Page 40)

by Ali89
Where should we free the dynamic memory if we do a "new" in one of our methods ?
 
Hello, If we request dynamic memory in the constructor of our class, we have to delete it in the destructor. But Where should we free the dynamic memory if we ...
[1 reply] : You delete things when you don't need them any more. If, for example... (by hamsterman)
by AGNuke
Alternative way to write the function
 
Hi all! I wrote a program which factorises a number to its prime factors. Therefore what I obviously needed is a function which can do so... Here is what I wa...
[7 replies] Last: @Mathhead Thanks buddy for telling me where I was fooling around with ... (by AGNuke)
by firix
C + + Builder on linux
 
I want to write C++ code on the linux(opensuse) operating system. which I use the C + + Builder? Visual Studio on Windows will be like.
[4 replies] Last: thanks (by firix)
by rucafe
inputing data into classes
 
I have a file that contains thousands of numeric entries sorted into four columns. The structure of the data looks something like the following: \\ {Energy, ...
[1 reply] : Have you ever looked at a vector ? http://cplusplus.com/reference/stl... (by ultifinitus)
Can u help me make a simple game?
 
Hi programmers! I am new to c++ programming but have a sound knowledge till classes. I made a tic tac toe game and it works perfectly. Now, I want to make...
[2 replies] Last: gotoxy sounds like an attempt to do it on the console, which leads us ... (by Athar)
by osfar
Need Help To diplay data from txt file correctly
 
Hi i'm now workink on phonebook program that insert delete display search update records i have no problem with iinserting data into file and each r...
[1 reply] : Well if you can't figure something out that has to do with files or st... (by ultifinitus)
by AlecC
GUI QT for C++
 
Hi, I'm a beginner at C++ and I was wondering if I could get some help with making a gui using QT. Well not really help on making a gui more like help on seeing...
[16 replies] Last: Oh my god thank you that just solved 2 hours of me struggling with thi... (by AlecC)
openCV in 64 bit machinesopenCV in 64 bit machines
 
Hi , I have generated a dll and a ctf in Matlab 2008 ,using visual studio 2008. This ctf contains many of the openCV dlls as well. The whole thing is compile...
[no replies]
making an OS, please get me started in the right direction
 
i know that i WILL NOT be able to make an operating system right now but i want to make one in the near future. i have a question about operating systems... is ...
[2 replies] Last: thank you so much, this will help me A LOT. (by NiNjAassasin545)
please help me find a GREAT compiler
 
hi, im new to programing and im starting with c++. can someone please tell me what the best compiler is (in your opinion). i have dev c++ but it doesn't work wi...
[3 replies] Last: Dev-C++ doesn't keep the console window open after the program termina... (by Athar)
Searching a file
 
Hello, I am working on a practice customer database program. Everything is ok just Im dumbfounded on how to do the search function I have no clue where to start...
[2 replies] Last: How about SQL? http://w3schools.com/sql/default.asp :D If you don't wa... (by ascii)
Need help with switch and arrays!!
 
I am trying to make a program with a menu, using a switch statement. It contains arrays to store numbers. I am in the early stages and have hit a brick wall and...
[3 replies] Last: Thank you for your input matsom (by nicbono)
Warn the User
 
Okay, with console programming, I want the user to hear an alarm every 5 seconds they do not answer a question. So, how do I do this? cout<<"2 + 2"; cin>...
[5 replies] Last: Thanks for uploading (or future uploading) Xander :D (by Shay9999)
Matrix Class with Arrays of Arrays Plus Template
 
I am quite lost with this one, it is lab for class. Been working on it off and on for three weeks now, professor is never there for questions so it is quite fru...
[4 replies] Last: that's probably a good idea because your example actually uses many C+... (by kfmfe04)
Clock timings
 
Hi All, I have to find the time each of the function takes. Unfortunately this has to be done for many functions and the whole program comprises of 3 threads...
[1 reply] : I have to find the time each of the function takes. Unfortunately thi... (by helios)
Simple Program With one argument
 
Hi, I am learning c++. I believe I have an easy to answer question. I have an opencv program which simply takes a video and shows it. It takes the video as an ...
[4 replies] Last: Hey Athar, Thanks for that quick and easy solution. I dragged the vide... (by designer303)
String into Int
 
hello, string str = "17462309"; int a; a = str.at(0); cout << a; // 49 cout << str.at(0); //1 my question is why is a 49 and not 1? and i kn...
[1 reply] : (int)'0' seems to give the position of the character '0' on the ASCI... (by Audie)
by Pankz
Allegro and Visual C++ 2010
 
Hi, I am not new to the forums but I decided to finally get an account because I am getting back into C++. I am wanting to soon make a 3D RTS game and that is c...
[no replies]
by Audie
Very stuck with eof() related problem
 
Hi C++ friends, I'm studying Problem Solving with C++ 8e by Walter Savitch, on Chapter 6 "I/O Streams as an Introduction to Objects and Classes." One of...
[4 replies] Last: If both content_1 and content_2 are true and there's no break, the... (by Audie)
Checkers
 
WE have been given a semestorial project...and i am trying to make checkers game... i wanted to give it a graphical look but i know nothing about graphics...can...
[5 replies] Last: thanks ! (by ChanGeZi)
June 2011 Pages: 1... 38394041
  Archived months: [may2011] [jul2011]

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