General C++ Programming - April 2011 (Page 16)

by Vita
Cant Load array from File correctly??
 
Hi, I have recently tried to make a simple game. I have based the level file like this: NUMBER_OF_OBJECTS X Y IMG X Y IMG X Y IMG Example file: ...
[1 reply] : Solved! Here's the correct code: #define MAX_OBJ 100 #define MAX_PRO... (by Vita)
by manni
Arrays? having some trouble!!
 
i'm trying to write a simple program to perform matrix multiplication, using the array structure effectively as a matrix. i ran into trouble because i don'...
[4 replies] Last: ok thanks, looking at it now and trying to make sense of it. (by manni)
Programming Practice: Multiple symbols with the same name
 
I have two nested classes named Level and OStream. The OStream class has a member of type Level: class Log { class Level { ... }; class OStream {...
[5 replies] Last: Ah, OK. Very well, I shall put an m in front of the member variable th... (by anonymous23323124)
Global Class Object Extern Fails
 
Hi, So I have tried to follow the tutorials on how to utilize a global class object. I have, in global.h, #include "ABV.h" #include "ABVstate.h" extern ABV ...
[3 replies] Last: std has nothing to do with 'ABV'. Since I don't know what ABV is I can... (by coder777)
by Ace70
Fibonnaci Using While Loop Help
 
I'm looking for any hints or tips ( because this is homework ) for correcting my program. The purpose of this program is to output the fibonacci sequence up to ...
[8 replies] Last: typing error while loop should be while (count<num) { } and the leng... (by necsky)
by rrataj
c++ homework help
 
Hi, im learning about floating point values right now. I understand how they are used in averages and other numbers with a decimal. i also know they dictate bet...
[1 reply] : int count = 0.0; // I would use simply int count = 0; In the 'while' ... (by Acr)
char arrays
 
i want a statement that will read input from a file and store it into char arrays. i know it is getline but i cant figure out the parameters...
[6 replies] Last: thanks it works good @hamsterman (by mahinkhan22)
borlandc compiler configuration?????
 
hi, im working the problem of c im wanted to compile and generate the .com file of a .c or .cpp file but the compiler giving me the error ,im working on borlan...
[2 replies] Last: thanks for reply, dear i reinstall it but the problem remain the same... (by sehrish)
changing the display function
 
I am beginner in OOP. I want to use the cout function instead of display to print an object of a class. i was told that i have to overload some operators but i ...
[1 reply] : Google "c++ overload output operator", first hit or any of the followi... (by Athar)
by Acr
set difference
 
Good day. I'm trying to get the set-theoretical difference of a map: Example dataset: 1 3 1 6 2 3 2 4 2 5 4 6 difference(1,2) would be all elements that are ...
[4 replies] Last: I fixed it. For those interested: /* Set-theoretical difference of n... (by Acr)
by ivanBG
OpenGL problem
 
Hi,I am trying to make a little program with Glut, with DEV C++. I did configured the linker libopengl32.a glut.lib glut32.lib and compiled the program. ...
[4 replies] Last: I solved it with removing glut.lib from the linker, leaving only glut3... (by ivanBG)
C++ file handling
 
Hi, I am using std::fstream for file for manipulating the file. Is there any way by which I can set that file attribute such that no other process can open ...
[2 replies] Last: That's a feature of the OS so to actually lock out access from other p... (by Computergeek01)
Cannot convert `double*' to `double' for argument `1' to `void dotProduct(double, double, int)'. - ERROR
 
I hope I posted this help request in the correct forum, if not I'll get it right next time around. Any case onto my problem : The following program is suppos...
[4 replies] Last: No problem :) (by Acr)
exponential and factorial
 
hi all, i've been trying to sort my problem which is cannot figure it out what was the mistake. been trying to run the program and the debugger become slower. ...
[6 replies] Last: Your algorithm is bad. Note that to calculate e x your code calculate... (by hamsterman)
by gpfs7
binarysearchtree
 
...
[1 reply] : Did you mean to pass it to Load as a parameter (like was done for inse... (by moorecm)
by jorgen
Pow function and exponent
 
Does the pow(base,exponent) function check whether the exponent is 0 (thus returning 1) before computing, or does it compute the base first? The reason I ask is...
[3 replies] Last: Ok, thanks for answers! I will change my code to something like Disch'... (by jorgen)
C++
 
Hello I am new in this field. So i want to ask that C++ is object oriented programming or not?
[1 reply] : C++ is multi-paradigm. So yes, it can be object oriented, but it does... (by Disch)
by Kady
isNumPalindrome(int)
 
I was having a little trouble with this programming assignment for my computer programming class. We use the C++ program and was asked to do the following assig...
[3 replies] Last: it would easy to write a function to reverse the number and then numbr... (by necsky)
by jorgen
Multidimensional arrays with unknown dimension as argument
 
Look at title: is this really impossible in c++? I can't pass a multidimensional array as an argument to a function if its dimensions are unknown? What I wan...
[6 replies] Last: Oh, I didn't realize more people had posted, thank you fun2code for mo... (by jorgen)
help to end plugin
 
i want link url php with downloaddone class if this 101 Acoount Is Active 102 No Code 103 Wrong Code 104 Expired Code this thing's i have it on php but...
[2 replies] Last: help plz (by sultan1985)
April 2011 Pages: 1... 1415161718... 37
  Archived months: [mar2011] [may2011]

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