General C++ Programming - July 2012 (Page 16)

by Armand
Xml for new programmers
 
Hello all, I would like to read a xml file using visual studio 2010. I need you help. I have no idea how to do it thanks
[3 replies] Last: Well, like I said, you could consume the COM object MSXML.DOMDocument.... (by webJose)
by devync
Getting "undefined reference to 'takeTurns(bool, int)" and don't know why
 
Hello, I am making a tic tac toe game, and when I try to compile I get the above error. http://pastebin.com/bsZscw6B on line 32 is the error. And when I comm...
[2 replies] Last: Thanks for the speedy reply, that fixed it. Cheers! (by devync)
by tzortz
Programming audio spatialization techniques (handling multiple outputs)
 
Hello all, I've hardly started writing a code using audio spatialization techniques (mainly wave field synthesis and binaural rendering), that in a nutshell ...
[9 replies] Last: About targeting any audio library - it is quite a general comment. By ... (by KRAkatau)
by clros
Pass shared_ptr trough functions
 
It is possible to use a standard (C++11) smart pointer to allocate memory for an object into a function (in ordinay function or in a dynamic library function),p...
[9 replies] Last: No, not the way you want it. (by Peter87)
Changing User Agent for webbrowser control
 
nevermind
[1 reply] : This is the documentation, it is a very simple function: http://msdn.m... (by modoran)
Problem with determining prime numbers
 
#include <iostream> using namespace std; int count=0; int s(int n){ for(int i=1;i<=n;i++){ if(n%i==0){ count++; } } if (count==2){ re...
[2 replies] Last: Sorry for bad code,I just dont know what to do when i get all the numb... (by kasper1300)
a program to call a simulator
 
Hi i need to write a program (in C++) to call a simulator in a another .cpp file. how iam gonna do this?
[1 reply] : If you are talking about function calls you could do this. Include the... (by ch01)
How would i do this?
 
okay, anyone here who owns an XBOX 360 probably knows of the programs modio, 360revolution, or horizon. what i am wondering is, how would i make ONE save editor...
[3 replies] Last: I dont really play XBOX 360 games so I cant really give you a specific... (by Owain)
Downloading a picture.
 
Hello poeple, I've trying to download a picture via my programm for some days. I don't know what to do any more. Here is the code I use: void downloadFile( s...
[8 replies] Last: Hello again people, I've made now the normal saving thing. Now I want... (by Kmitska)
code not working properly
 
it try to make my own code for touperr() function but their is some problem which i am unable to figure out so help me out. code id as follows: #includ...
[4 replies] Last: Adding to everything said above. This condition is incorrect and will... (by KRAkatau)
sorting
 
Hi Need a little help!! This is the usual manage the hotel program. What I need to do: REPORT 1 lists all the occupied rooms and which customer is in each roo...
[1 reply] : Without seeing the definition of your Room and Customer classes, it's ... (by AbstractionAnon)
memcpy question
 
Hello people, I've here a warning/error which I can't solve. I don't know why this doesn't work: char strOne = "Ah"; char strTwo = "ba"; m...
[4 replies] Last: The reason why your example doesn't work is that the compiler allocate... (by AbstractionAnon)
Unicode characters / UTF-8 hexadecimal / printf %x
 
Hello and thank you for reading my post. I am simply using the following code to print UTF-8 encoded Unicode characters on the console in hexadecimal format:...
[3 replies] Last: Hello and thank you for your answers. @kbw Thank you for the link. Yo... (by Lea Massiot)
First c++ program and I already said hello
 
Im trying to create a program that calculates the number of integers in a given range that are not divisible by three primes and then gives me their total (i.e ...
[2 replies] Last: now i feel stupid (by Kis Vyra)
Structure initialization, huh?!
 
Can someone explain what this code means? Because I have no idea. I was playing around with structs and found out I can do this... and does the word 'mystruc' ...
[4 replies] Last: Thanks for your responses ^__^ (by turtlemaster)
Segmentation error from variable to string?!?
 
I have an odd problem... My code down there is me just testing sdl stuff... but my problem is in the code... When i compile this code, it gives me "Segmenta...
[12 replies] Last: Make sure font is loaded correctly? If TTF_OpenFont can't find the fi... (by Peter87)
Structures problem
 
Hi, I don't have a lot of experience using structures and I think that's why I don't understand where I mess it up :/ I get an error saying there's no match...
[10 replies] Last: You can have your compiler stop after the preprocessor stage and exami... (by Moschops)
by morle
Using a constant from another file in a typedef.
 
Hi, I have a header file where I store all the typedefs. One of these typedefs uses a constant that I need to initialize in another .cpp . The code that I ha...
[17 replies] Last: TemplatedClass expects an integral value for its second template par... (by closed account zb0S216C)
Initialize pointer to an int[]
 
1.) How to declare and initialize the pointer to an array of integers ? There is error in 2nd line after main() : scalar obj array requires one element in init...
[5 replies] Last: does this help... the name of the array is a pointer to the first thin... (by DysFunqTional)
page tables
 
Hi, I need to implement a page table structure that stores data in a 2D array, and can be accessed in a 3D manner. Also it needs to be a multi-level page table...
[2 replies] Last: well, think about an image. It's a 2D array of bytes right? now you co... (by Yours3lf)
July 2012 Pages: 1... 1415161718... 30
  Archived months: [jun2012] [aug2012]

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