Beginners - August 2008 (Page 7)

pointer/array of classes.
 
Hi guys. I am trying to explore all the different ways to use pointer with classes. However I am stuck with the following thing. 1. Calling an array in the ...
[1 reply] : It says that it has a problem with the new: syntax error : 'new' P... (by Mitsakos)
PlaySound() blues
 
PlaySound(TEXT("laser.wav"), NULL, SND_FILENAME); I tried this, but, unfortunately, I got a linker error. Any ideas?
[15 replies] Last: Alas, I'm out of ideas. I don't know what is wrong with your system...... (by Duthomhas)
by quant
How to calc offset and read header binary?
 
I have binary image file gif format. How to simpless to take width & height my image? I try get it next, but unsuccesful. lseek(Data, 0x6, SEEK_SET); ...
[14 replies] Last: I think you need to spend some time looking through some tutorials on ... (by Duthomhas)
by mws535
Using Multiple Namespaces
 
I've just tried using two namespaces in a project at the same time, using the "using namespace ... ;" syntax for each namespace. MinGW threw errors claiming var...
[3 replies] Last: That doesn't solve the problem. MinGW doesn't throw random errors. If ... (by Duthomhas)
Segmentation Fault
 
I still pretty bad with pointers and passing by reference but i know a segmentation fault is a problem with memory somewhere. I am getting a segfault error any ...
[5 replies] Last: I get what your saying ... that worked thanks (by bluegray)
by gAaRa
Need a Time Delay Loop (Turbo c++)
 
Guys i use turbo c++ 3.0 and borland compiler 5.5. Can anyone teach me how to insert time delay loops in programs. I heard that these loops delay the executi...
[7 replies] Last: jmc: The whole point of wait() is not to use Sleep() or any other un... (by helios)
why doesn't the compiler recognize the class i created?
 
i wrote a small code to check if a real number is an integar or not...tried to use classes. Created three files- ----file 1--- #include <cstdlib> #inclu...
[3 replies] Last: had it fixed !!! (by newkidonthebloc)
by man156
problem about division & modulus
 
i have a calculator programme but the division is not accurite. for example 5/2=2 & modulus is 1 i need help to finish this programming. please any one help...
[3 replies] Last: You may want to cast your divisor or your dividend as a floating point... (by jmc)
by Gonen
Question about #define
 
Hello, if I have a function like that int func(int n) { if (n==0) { return 1; } return n*(func(n-1) } (a simple factorial function) and I w...
[5 replies] Last: what I did wrong? See the post above - macros don't work with ellip... (by exception)
Need Good Quality Exercises
 
NOCONTENT
[4 replies] Last: i was looking for something similar...checked out above assesment ques... (by newkidonthebloc)
How to save stuff ?
 
First off I'm sorry about my stupid title. I sat here for 5 minutes thinking how to word it but everything sounded incorrect and stupid. =P Ok, so I'm talkin...
[10 replies] Last: Probalby the programs he mentioned doesn't just have a couple of confi... (by Mitsakos)
array subscript
 
How do you assign an array subscript value to a variable
[4 replies] Last: yea.. simple mistake. heh. i = lowMonth; You just keep re-assignin... (by Aakanaar)
random numbers
 
i want to create a function that will loop 10 times and see how many of each number occurred but i think im missing something for my code will not compile but i...
[6 replies] Last: i want to create a function that will loop 10 times and see how many ... (by Zaita)
Can we create an object just with constructor name without ()
 
Hello, I saw someone uses the constructor like this: class Foo { Foo(); } int main(){ Foo f= new Foo; } what is the difference between Foo...
[8 replies] Last: No worries. For the longest time it never occurred to me they were di... (by jsmith)
problem with large char** arrays
 
i am trying to write a program that will parse a relatively simple configuration file. example: var=value some_var=some_value another_var=another_value ...
[4 replies] Last: ifstream fConfig(FileName.c_str()); it creates an ifstream (input... (by Mitsakos)
stl list interface
 
Hi all, Very stupid question, but I cant seem to get around it, a little help would be appreciated. I am reading threads/semaphores and have come across...
[6 replies] Last: @Duoas/@mahlerfive, Thanks very much for your answers and links. ... (by ladesidude)
EMACS on XP cannot recognise "make" command
 
hi i am very new to programming & am trying to learn C++ programming on EMACS on XP as that is the OS i am used to. when i try compiling a program on emacs on ...
[5 replies] Last: http://www.gnu.org/software/emacs/manual/emacs.html (by Duthomhas)
by idono
cool math multiple program funtion problem
 
this cool program i thought of this program determines for a pair of integers whether the second integer is a multiple of the first.but it is not compiling it s...
[11 replies] Last: That's a very common style. I've done it myself when the code is fairl... (by Duthomhas)
by kacko
Repeat then ends??
 
int recieveFirst() { char input = {"\0"}; cin.get(input , 5); if(isalpha(input )) { if(input == 'h' || input == 'H') { help(); ...
[1 reply] : Line 4 use cin>>input ; instead of cin.get() (by anilpanicker)
still problems >.>
 
iv taken all your feedback and corrected on my mistakes(btw i forgot bout using the for loop to show my array before lol) but despite that im still havn problem...
[4 replies] Last: Ok. Some feed back: Line 55: Error, it should be int i = 0 not i... (by Zaita)
August 2008 Pages: 1... 56789... 14
  Archived months: [jul2008] [sep2008]

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