Beginners - July 2009 (Page 17)

by bobsta
Quick robust code for point in polygon problem
 
Hi, First apologies for the very general nature of this topic. I am trying to develop a quick robust graphics engine and need to determine whether a point li...
[1 reply] : Okay. I had a stab at the second method based on the psuedo code found... (by bobsta)
Scan Codes
 
I wanted to use arrows in my console program, so I found on the net about those scan codes and I was able to use arrows with this '\0H' for up arrow and so on, ...
[7 replies] Last: I guess you always wanted to say that (grasshopper) to someone :D But ... (by Amon Ra)
Error C3867
 
hi Guys when i'm trying to compile this code for some reason it wont refere to my class when i try and call it in main?? I am now totally lost with it so any...
[19 replies] Last: Just think that everyone once didn't know how to program, If someone... (by Bazzy)
Linker error
 
Today when I try to compile the .cpp files written some days ago it gives me an error [Linker error] undefined reference to '__cpu_features_init' Does i...
[2 replies] Last: Nice, I didn't notice that thread sigh :P (Oh, a new G95 gets its M... (by wmheric)
by Nelo87
Trouble understanding.
 
I'm having trouble understanding this: " The class should use a structure that stores the following information: Drink name Drink price Number of ...
[2 replies] Last: Ok, understood. Thank you very much. (by Nelo87)
simple getline not working ><
 
its my first time doing a getline statement and its not going so well. Its very similar to this example I found: char name , title ; cout << "Enter you...
[5 replies] Last: oh found the answer from past problems in this area. Grey Wolf (1134... (by kamurphy90)
Question regarding percentage progress bar
 
Hi guys, I have one simple question here. I have a progress bar. And I have a loop: for(int i = 0; i<160;i++) { progressBar.setValue(somevalue); ...
[3 replies] Last: Thank you very much guys ! :) for(int i = 0; i <= MAX; ++i) { p... (by cppuser)
How to do simple graphics in c++
 
Hi all, I just started programming (for fun) and my ultimate goal is to be able to program simple games (tetris). I was wondering how it would be possible...
[4 replies] Last: Also SDL is crossplatform. No reason to restrain yourself to only 1... (by Disch)
by Rikazu
End of chapter problem
 
I tried avoiding posting here again, since this is my fourth topic today. Spent 15 minutess gazing at the code, fixing typos. Now I cannot find any and it sti...
[13 replies] Last: You've tried to create a function (fToC) inside main(). I was going to... (by mcleano)
Quicksort crashes on large increasing arrays
 
I'm doing an analysis on different sorting algorithms with different types of integer arrays (random, increasing, decreasing, nondecreasing, nonincreasing). Bel...
[2 replies] Last: helios, Thanks for the quick response. Still not getting much farther... (by TooSharp)
by wretch
Where and how are constants stored?
 
#include <iostream> using namespace std; int main() { //const int *p1 = (int*) &(5); //error C2101: '&' on constant //cout << *p1; const int ...
[3 replies] Last: The difference is really that '5' is a single integer value, where "ab... (by Duthomhas)
Destructor confusion
 
Apparently the following program is meant to give the output: 10 10 Destructing... Destructing... But i'm only getting the 10 10 part. Can someone e...
[5 replies] Last: Ahh yes I just compiled in VC++ as oppose to dev-C++ and it worked pro... (by mcleano)
Array storage?
 
can any one tell me how to store 0 to 10 power 50 values in a 1d array.when i go above 7*10^7 my compiler says size of array too large.any help is highly apprec...
[17 replies] Last: Am I the only one who feels it prudent to ask what the OP needs all th... (by Disch)
by NGen
A Pointer Array of Arrays
 
In a program that I'm using, arrays can only be made for up to 2 dimensions, and so I've had to make a DLL to handle this. This is why I'm doing things the way ...
[1 reply] : So, are you looking for 2D dynamic arrays? If so, this article should... (by Bazzy)
by TheSte
VC++ and Release
 
Hi guys, I've made my Console program and I've compiled it with the VC++ configuration Release...this will work only for my pc...the program copy some files ...
[12 replies] Last: OK, so what should your code be doing between outputting copying file... (by closed account z05DSL3A)
by msn92
Questions about Boost::Regex
 
Hi everyone! My goal is: to read the spesific part of the text from whole text. E.g: To get all links in the html page. If I use CLR Windows Forms Applic...
[5 replies] Last: Ok, I figured it out: CString altag=L"((<img[^>]*>)*?(<br[^>]*?>)*... (by msn92)
Criticism of my programming?
 
Mainly simple stuff I've made. I would like some criticism to make my programming methods better. I would like some suggestions and comments on how I coded th...
[5 replies] Last: Ooops. Thanks for pointing that out, I would never have noticed. (by azimuth)
by tazz25
DirectX Library Linkning Problem
 
I am just learning how to use DirectX in my programs, and I am using Dev C++ as my IDE. I was having no problems until the book I'm reading told me I had to #in...
[3 replies] Last: Lol, if you are programming with DirectX use VC++. I don't know what k... (by mackabee)
Confused about libraries
 
Hi, I'm confused as to how libraries are used in C++. I understand that you need #include <iostream> to have access to some functions like cout and cin. Wh...
[1 reply] : All the headers are used as interface to a libraries Usually librarie... (by Bazzy)
why does my compiler say that I'm converting from a char to a constabt char?
 
#include <cstdlib> #include <iostream> #include <string> #include <cmath> using namespace std; double convertb10(char number ,int base) { double z...
[6 replies] Last: Instead of using strcmp do if ( number == conversion ) { ... (by mackabee)
July 2009 Pages: 1... 151617181920
  Archived months: [jun2009] [aug2009]

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