Beginners - March 2011 (Page 20)

game DEV
 
Hi everybody! i new here and i just know a little bit of c++. i have a question .my project is to design a game and i have a few questions. 1) i,m thin...
[7 replies] Last: @ hanst99: This is one reason that Win32 tells you to use a callback f... (by Computergeek01)
by Rave
Writing to and reading from file in C
 
Hello, I am new to file handeling in C, so what i need to do is three things, 1. delete a specific line in the file 2. Update a specific line in the file ...
[1 reply] : Since you're writing this in C and not C++, I'll refer you to the appr... (by closed account 3hM2Nwbp)
scalar * vector
 
Hi, I'm stuck at this. I can scale a vector by a scalar (float), but I can't do it in the opposite way. vec2f a = vec2f(1.0f, 1.0f); float b = 1.0f...
[2 replies] Last: Make the operator a friend function, and overload it for (vec2f,num) A... (by hanst99)
Problem with while loops
 
I'm having some trouble with a few while loops. I've written them, and they worked great originally, however I added code to a different part of my program, and...
[3 replies] Last: No problem. (by ModShop)
Basic Calculator won't work?
 
Hi, I'm new to C++ and new to cplusplus.com. The programs I'm using to make c++ programs is MinGW and Vim. So my problem is that whenever I try to run my pro...
[4 replies] Last: Ahh! Thank you so much qtpan and firedraco! Thats what I was trying to... (by tehnawbie)
Code::Blocks and devpaks
 
There are project templates in Code::Blocks such as wxwidgets,opengl,sfml etc. But I wonder if there is a Devpak-like mechanism in codeblocks?
[5 replies] Last: I stand corrected. I guess I've never bothered scrolling to the bottom... (by Computergeek01)
comma at the beginning of a command
 
Hello all, I have found a piece of code, where there is a comma right befores the name of the class members, and no semicolons at the end. What does this com...
[2 replies] Last: I personally prefer writing the commas before the line break, cause it... (by hanst99)
AIRPLANE TICKETS IN SINGLE ARRAYS (i cant go further i need to use for loop )
 
#include<iostream> using namespace std; int main(void) { int select,select1; int price,totalprice; int i,j; int city_array ={40,60,65,100,110}; cou...
[5 replies] Last: Well, this isn't really the task for a for loop, but whatever. Just w... (by hamsterman)
Circular Shift
 
Is it possible to do a circular shift in C? I mean a bitwise circular shift. Currently 1 >> 1 evaluates to zero. [Edit-2: removed the mistake]
[1 reply] : You could use inline assembler (instructions rol, ror, I believe) or w... (by hamsterman)
New to C++? Read this.
 
Just starting off in C++? I've created an archive of C++ tutorials for you to get started. Starter Tutorials: (Written) http://cplusplus.com/doc/tutorial/ ...
[1 reply] : What about tutorials for SDL or SFML. They're pretty useful for basic ... (by anonymous23323124)
by snc413
The variable 'number' is being used without being initialized?
 
i dont know what I am doing wrong? # include <iostream> # include <string> # include <iomanip> using namespace std; int main () { int accountNumber; ...
[3 replies] Last: and the command prompt vanish less than a second and it states The pro... (by snc413)
How do i run this program in vb?
 
I need to compile this program and run it or turn it into a .exe then run it. can you explain the steps in visual studio to do this with this simple program pl...
[1 reply] : There's a video here: http://msdn.microsoft.com/en-us/beginner/bb96462... (by matsom)
Blender and c++
 
How could I make graphics I made in blender interactive with Devcpp? And how to add them into c++?
[1 reply] : http://en.wikipedia.org/wiki/Graphics_library Have a good read. Ask f... (by hanst99)
Adding files to arrays?
 
I'm writing a program that asks the user for input, and then takes that input, looks at another array, and puts the data into the new array. However, I realized...
[3 replies] Last: well, okay, I guess I (kind of) understand what you want, so, to answe... (by matsom)
Bitwise xor Operator Problem
 
I'm having problems with this short code. #include<iostream> using namespace std; int main() { int count = 0, a; for (int i = 1; i <= 10737...
[7 replies] Last: The second solution should be better because it doesn't use an unnece... (by Disch)
Need some help with a simple instruction OPENCV (windows 7)
 
Well, how you can see my English is not perfect and that's why I'm asking for help.. the problem is i can't find an instruction that allow me to show an image ...
[no replies]
by cth90
Problem compiling multiple files
 
I am having trouble linking these 3 files. I copied them directly from the book, but i cant seem to find the problem. I did some research and i found out someth...
[9 replies] Last: Everyone does stuff like that, especially me. lol (by ModShop)
Help
 
hi, im trying to make an app where it would let you put your medication in and you could hold it in the casing (i want to make the casing that goes from monday ...
[6 replies] Last: I have to make the app for a school assignment though. and it has to b... (by akakeighan)
getline() from string array not working
 
getline(cin, reminders ); cin.clear(); The getline command doesn't seem to work if I'm trying to type a message into a string array, am I doing someth...
[3 replies] Last: EDIT: Never mind, I got it to work by replacing cin.clear with cin.get... (by creatorofchaos)
Problem clearing dynamically allocated memory
 
#include <iostream> using namespace std; int *foo() { int *ptr = new int ; return ptr; } int main(){ int *array = foo(); array = ...
[5 replies] Last: Moschops, in that case, what causes the change of values in this progr... (by anonymous23323124)
March 2011 Pages: 1... 1819202122... 52
  Archived months: [feb2011] [apr2011]

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