General C++ Programming - April 2012 (Page 26)

by rollie
Direct3d help
 
(moved from Windows programming, since this forum seems to get a lot more use) Okay, so I brushed off a d3d9 app and I'm trying to spruce it up a bit. But, I h...
[no replies]
Dice toss program
 
I am in the works of learning how to use classes and objects. I am trying to create 2 dice tossed rolling a random number between 1 and 6 on each die when the u...
[1 reply] : anyone have any ideas?? (by ironreaper)
migrating from VS 2005 to VS 2010
 
Hi all, I just update my version from VS2005 to VS2010 and I got loads of error after trying to compile my project in VS2010. The errors regarding the follow...
[2 replies] Last: 7.0a is the version of the SDK which comes with Visual Studio 2010 If... (by andywestken)
by kwm12
My First Program and have some compiling issues.
 
I will write a program here and please let me know what is the issue as it gives an error: cc asgn2.c -o asign2 /tmp/cckFXXe0.o: In function `main': asgn2.c:...
[6 replies] Last: I have been told, I cannot use goto statement here in the program........ (by kwm12)
Linker error?
 
I use Visual Studio 2010. I read that the solution to my problem may be in the Linker settings of the Solution Explorer properties. In Linker, it is set to Wind...
[1 reply] : Are you looking under the Project Properties section? I think that is... (by kooth)
Pointer problem
 
Hello! I started learning C++ and I just discovered pointers. Well, it's a little bit hard for me to understand what's the point of it so I'll just explain my ...
[4 replies] Last: Post your code and we will be happy to put you down and tell you every... (by Need4Sleep)
by ced
Using Constructor of base class for constructor in derived?
 
Hi! I'm trying to understand how the inheritance works but ran into some issues. I've been able to solve most of them with other forum threads but I have a fee...
[4 replies] Last: Accessing "mat" for a member of Eye from within Eye works, but I coul... (by Athar)
by Malcom
I am need help on array
 
#include<iostream> // required for cin , cout #include<cmath> // required for sqrt() using namespace std; int main() { const int size=56; double R =...
[3 replies] Last: It is my first time using this forum...I will post it with code tags (... (by Malcom)
string
 
When I declare: My_String a; //My_String is the class// in main, what makes 'a' a string? Is it because the system eventually converts 'a' to ASCII? How should ...
[2 replies] Last: In programming, everything is just a bunch of numbers. What those numb... (by hamsterman)
Need help importing .dat file and sorting using vector
 
I am a CS1 student and have had no issues until this point in the class really. I have been working on this for awhile now and cannot figure out how to get thi...
[4 replies] Last: Thank you SO much for that help! I got it working! Here is the compi... (by weeziefoo)
Const vs Define
 
I know that #define is a preprocessor directive, so it doesn't take up any memory. All I know about const is that when you define a constant variable, you can't...
[5 replies] Last: #define is best used for header inclusion guards and macros (when nece... (by moorecm)
How to send non-'char*' information with winsock (1,2)
 
How would you send and receive 'double's or 'int's across a socket because the functions send and recv only accept 'char *' buffers?
[26 replies] Last: Hm, sorry then. (by S G H)
Problem with getline
 
I tried to get in input a line with more than one word, and to do so i used the function getline(cin,text), but when I compile the program and run it, it skips ...
[2 replies] Last: Tried that, but didn't work... But I solved it anyway: here is missing... (by SpamBot)
arrays in function
 
I want to write a function that creats a 3d-vector. I don't know how I should declear the 3d-vector. I've tried this: vector <int> a ; That works fine ...
[6 replies] Last: In any decent C++ book, for example the C++ Primer: http://www.amazon.... (by Athar)
Some questions..
 
1- Is it possible to define a #define using lots of defines ? Example: #define c_a a #define c_b b #define CONDITION c_ac_b // CONDITION must be "ab". 2- Is...
[8 replies] Last: OK, thank you. (by Kitiara)
H
 
int main ()
[1 reply] : You say 'besides one at a time' but this doesn't really make any sense... (by quirkyusername)
Priority queue order
 
So in the textbook I'm reading about priority queues and one of the side questions that stumped me is this: Suppose that after you have placed several items ...
[2 replies] Last: > How can you adjust a heap if a single priority value changes? Recal... (by JLBorges)
by Zastin
Minimax Tictactoe HELP NEEDED
 
I can't seem to figure out what went wrong, I'm trying to get this game to work on a ten by ten board but the computer doesn't even make any moves at all. Any h...
[no replies]
by mowali
Help in printing out the fourth column in a 3x4 matrix
 
=
[4 replies] Last: Try this: for(int i = 0; i < rows; ++i) cout << matrix [cols - 1... (by Telion)
Subscript notation to pointer notation
 
I got this assignment the other day in which I had to convert this project I had done from subscript notation to pointer notation. I dont really understand the ...
[3 replies] Last: bhai aap ki multiplication ka function galt ha ,,is me 3 nested loop l... (by Agha2793)
April 2012 Pages: 1... 2425262728... 49
  Archived months: [mar2012] [may2012]

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