Beginners - April 2013 (Page 70)

Beginner DirectX question
 
Im learning DirectX and was wondering if I get the header files for SDK 11 will they still be compatible with functions from version 9? My book is a little date...
[5 replies] Last: Im telling i made the mistake of learning fixed pipeline DO NOT LEARN ... (by supperpiccle)
by SmOgER
'cout' not working in reading function ??
 
Ok, here's reading function: #include <iostream> #include <fstream> using namespace std; void skaitymas (int i, int n, int lytis , int koja , int dydis ) {...
[13 replies] Last: Aghhh... Thanks a million! (by SmOgER)
C++/cli multithreading
 
Hey i'm kind of new to programming in managed c++ and am having trouble creating threads and starting them. What i'm attempting to do is to create a worker t...
[no replies]
Boost library and instream from internet
 
Hi! The function read_xml(filename, ptree) I want it to take the XML from an internet address like this one http://api.eve-central.com/api/quicklook?typeid=3...
[no replies]
return a set container
 
Hi! Just wanted to know if there is an easy and non memory heavy way of returning a set container that cannot alter the original container (or a reference to ...
[5 replies] Last: Yes it does, thanks a lot. Now I learnt something very useful :D Than... (by Jonas Wingren)
0/1 tiles problem. I need the mathematical soln for this.
 
Problem 1: 0/1 Tiles To help Lavanya learn all about binary numbers and binary sequences, her father has bought her a collection of square tiles, each of which...
[1 reply] : This is my take on it. N = 1 -> Output = 1 N = 2 -> Output = ... (by cspctec)
by vin
cin.readsome and MinGW
 
In visual c++ express 2008 cin.readsome reads and stores the number of characters available and returns the number of characters stored. cin.readsome in MinG...
[1 reply] : http://en.cppreference.com/w/cpp/io/basic_istream/readsome The behavi... (by MiiNiPaa)
cin.get(); in struct function
 
Please look at the following code. Can anyone tell me what the purpose of the cin.get(); (I bolded and underline it) in the function? If I delete cin.get();...
[1 reply] : Probably it is here to skip newline symbol which can be left in input ... (by MiiNiPaa)
I dont know why this function is not working. Could you tell me how to get it to work.
 
its a simple tempertature conversion code. I know that it is for the most part incomplete for the second half of the code. I want it to print out with the f...
[3 replies] Last: And you shouldn't use doubles in for loops. Floating point values are... (by TheIdeasMan)
Game Dev concept.
 
I feel stupid, but I need help with one simple concept. I've though of a few ways to do it, but I feel like they all are bad methods. I have two classes, Player...
[10 replies] Last: I've changed it so that the enemy attack power gets loaded in the cons... (by Austin J)
Sorting via pointers
 
In our assignment, we have to make a sort function using pointers! However, I am having a strange error with mine and I can't seem to figure it out! The populat...
[7 replies] Last: Note that the x, y, and temp on lines 6, 7, 8 are unused and can be de... (by Zhuge)
by tripke
Loops?
 
Being very new at this, it is hard to know what to use where. I can output text and store integers fairly decent, however, I have little to no experience using ...
[18 replies] Last: ok (by cyberdude)
Returning the largest value
 
I need some help with this problem: write a program that computes the maximum of four integer values. The main function should read in four integer values and t...
[2 replies] Last: You're doing great, keep studying. some clues to make it work better:... (by Marcos Modenesi)
Functions: User Chosen File, Word Count w/ missing Main Function
 
I am just starting out learning C++. I have been working on this program for several days with no success. I would sincerely appreciate any advice or guidan...
[14 replies] Last: So, since the return will be an integer, then I should use int as my ... (by mizztrixi333)
Beginning game classes
 
I'll get right to the point: I'm trying to make a game sort of like Dwarf Fortress, but a lot less complex. It's going to be text based, and you'd enter in text...
[13 replies] Last: Ah, thanks! :) (by kyranstar)
I am having issues with my greatest common denominator function in my code.
 
Ok I have been working on this for a while and little by little and with the help of you guys for one section I wrote this code so far. I wrote this to output ...
[1 reply] : Your GCD function is flawed. If you were to input 9/12, first it would... (by Ispil)
by Popanu
Call-By-Reference and Value Function
 
Hello, I'm having a problem solving the following to make it "correct". Any guidance is greatly appreciated! #include <iostream> using namespace std; i...
[6 replies] Last: Fixed! #include <iostream> using namespace std; int fun1(int& x); ... (by Popanu)
Bitwise Query
 
I promise, this is my last question for the day! I'm trying to query bits within an element of an unsigned character array. Basically, this should return true i...
[2 replies] Last: I did fix it: unsigned char mask = (int)1; int byte = index/BITS_P... (by TaytayB)
Dynamic Memory Management Within A Class
 
I consider myself an o.k. programmer but I've only taken intro courses (self-taught mostly), but this took me and the PAL(Programming Assistance Lab) at my coll...
[3 replies] Last: You are redeclaring your array in the constructor. (by IceThatJaw)
by axtyax
Allegro c++ segmentation fault!!!
 
so here is the code for the main text document (main.cpp) : #include <allegro.h> #include "map.cpp" using namespace std; int closed = 0; int ex,height;...
[1 reply] : Instead of trying to link the sources files directly, use a header fil... (by Daleth)
April 2013 Pages: 1... 6869707172... 83
  Archived months: [mar2013] [may2013]

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