Beginners - June 2011 (Page 35)

Tellg () ???
 
Hi I am writing a program and I used function tellg I thought tellg () returns curent possition of curssor in file but this is not true. Letter I try one simple...
[1 reply] : Because the member function "string::length()" returns the number of c... (by Computergeek01)
Demoting Integral Values
 
So I was looking at windows api today and I see this macro: #define LOWORD(w) ((WORD) (w)) Analogously, #include <stdio.h> int main(int argc, con...
[3 replies] Last: Well, you could look at C++ language standard. About this it says If t... (by hamsterman)
Layers of tiles or 1 layer with multiple sprites per tile?
 
Title says it all really. I'm not sure how to design my map. At the moment I have in my map object a vector of layers, which in their turn have a vector of til...
[11 replies] Last: I see, so I now have a std::map<int, void (*)(int)> to store my event ... (by xander333)
Array help
 
For my homework assignment I have to count, avg, get the square sum and then find the variance of a array of numbers.Except for the decimal points which I need ...
[7 replies] Last: The program is running except that it keeps coming up with junk number... (by defcon18)
by Dmax
bitmap to draw in a dialog windows
 
Hi guys , Im a total noob when it comes to windows programing ,and only have basic skills when it comes to C++, I have programed a few simple apps that ran ...
[4 replies] Last: Thanks so much for your help guestgulkan its now working :), now I can... (by Dmax)
Reading files from a list of filenames
 
Dear Sir, I am having the following problem while writing a root macro (in C). I have some .root files in a folder which I need to analyse (fit histog...
[no replies]
how to?
 
how to use windows forms in VC++ 2010 express? i can make some simple applications in dos but not in windows form how to make them in windows forms?
[no replies]
Codeblocks to dev-c++
 
Hello, I want to ask something.I have a code, written with codeblocks, and the problem is that I see several files, not one like it should look like if it was w...
[11 replies] Last: iirc the goal of IDE's such as Visual C++ is 'making complex codes eas... (by matsom)
Random Integer 0 or 1
 
Hi, For God's sake, can someone please, CLEARLY, tell me how to generate a random INTEGER between 0 and 1 (i.e. 0 or 1). I have searched all over the net, and ...
[8 replies] Last: #include <time.h> // So we can use time() function #include <iostrea... (by TheNoobie)
General basic question about optimisation in loops
 
Hi all, I have a general question that probably doesn't have a single answer. In the frequent occasion in which you have a variable that is used temporarily ...
[2 replies] Last: Thanks Disch, that pretty much clears that up. (by Bogdanovist)
by cdd
open video file help
 
Hi, So far much of the programming i have been doing just involves output into the console. Now i want to write a program that when placed in a folder compr...
[5 replies] Last: A quick way would be to use system... Quick, but not a very good w... (by king214)
summing array values
 
I have an assignment to do a simple array program that lets the user enter in 10 grades and then the program will average them and output the average. I need to...
[4 replies] Last: Yup :) Though not very common in C++ a for each loop is awesome for ... (by ascii)
Processing String Streams
 
Hi I am trying to extract a number and a string of letters then individually process that string but i am having trouble with the string stream. My input is (1...
[7 replies] Last: Er, well, that complicates it. You'll have to do as moorecm suggests... (by Duthomhas)
"\n" or endl;
 
Hello, I am new to C++, and have seen some tutorials use "\n" to start a new line and some use endl. In general; which one should I use?
[10 replies] Last: what if we have to?My research field is video processing I/O operatio... (by helios)
why std::cout not declared?
 
I am trying to compile two cpp files with a header file. myHeader.h is: #ifndef ADD_H #define ADD_H void myFunc(double &Num); #endif File...
[5 replies] Last: Never mind. hamsterman's reference explained all. (by snufflehound)
mac compiler
 
i am having trouble finding a free mac compiler for c++. i am looking for something that works with eclipse.
[12 replies] Last: you can get the xCode 3 for free (by strongdrink)
SFML - Continuous Motion (Xander314?)
 
I'm trying to make a Zelda-ish RPG game. So far I'm just trying to get my sprite moving smoothly... When I press the button, it moves once, waits for half a se...
[19 replies] Last: For your tiles, you could stop hard coding, use an image manager, and ... (by ultifinitus)
Help with "easy" program.
 
/ Fields.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tm...
[8 replies] Last: Thanks alot guys, I got it to work now. :) (by Ephasis)
by finchh
simple question?
 
Hi all ive just started learning programing and i was wondering whats an after parameter list??? :D
[1 reply] : That's something old people do. It's something carried over from C I t... (by Computergeek01)
Abstract Data type
 
Please provide me some information about abstract data types in C++.
[2 replies] Last: Polymorphism isn't quite the same thing. Abstract Data Types aren't a... (by kbw)
June 2011 Pages: 1... 3334353637... 41
  Archived months: [may2011] [jul2011]

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