Beginners - January 2011 (Page 33)

I want to make things generate more frequently
 
I have built a simple flashcard like console program to help me study. What I would like to do with it now is to make the questions I get wrong come up more fr...
[1 reply] : You could add a "primary" random number generator that will have a pro... (by Albatross)
by plams
Access violation
 
Hello, I have started using environment mapping in OpenGL. But this kind of error occurs: Unhandled exception at 0x00000000 in EnvMap.exe: 0xC0000005: Acces...
[no replies]
References and Multidimensional arrays
 
Is is possible to make only a portion of a multidimensional array constant references and use the rest as normal? int array int multiArray I want to...
[7 replies] Last: I hope, I've got the point. The code I've proposed maps three success... (by lionishy)
by ogward
Selection sort with names
 
Hi there! I'm studying for my programming exam and I'm now stuck with my selection sort. I have a menu that allows the user to add a cell phone. ex. Mo...
[7 replies] Last: I don't see anything wrong with those. You compare the strings but swa... (by hamsterman)
Writing a 2D class wrapped as a 1D array
 
I'm trying to make a 2D array class so I can deal with them more easily, by creating a dynamically allocated a 1D array. I've gotten up to writing the () operat...
[3 replies] Last: @ PiMaster Oops, I should a reference there. Thanks! So in your examp... (by pabloist)
by yts
vector
 
#include <iostream> #include <string> #include <vector> using namespace std; class student { protected: vector<string> subject; string ...
[10 replies] Last: kingdof, Wouldn't that ruin the purpose of doing the homework, whic... (by Albatross)
Pancake Glutton (I prefer waffles, myself)
 
ok, i need a little help on the pancake glutton exercise, i have posted the instructions for it in my code. i am only doing the first "part" right now, i will t...
[4 replies] Last: ok, thanks quirky, i will definitely keep that in mind. thanks again :... (by AceFace)
Pointers Question
 
This piece of code is supposed to run a function do_file on some text documents, and store the results from each as a new array. Then I want it to go through ...
[7 replies] Last: Allocating memory sounds dangerous: This will cause a segfault if you... (by lovefromussr)
Inline relation to stack
 
When I call an inline function (assuming it's properly compiled as inline), what is the behavior on the stack? For example, inline void InlineFun(){ ...
[3 replies] Last: Well, the "local" pointer is still local, but the int you created with... (by Athar)
Array Passing Problem
 
Basically, I have a function that requires 2 parameters: 1) An index. 2) The array to access. What the function is supposed to do is: access the specified...
[2 replies] Last: Thanks Zhuge!. I changed the code and now it now works. #includ... (by closed account zb0S216C)
Declaring str
 
Thanks to your tutorials, I've been able to teach my self how to do a simple program that solves the determinative of a matrix (though I can't get it to work wi...
[6 replies] Last: so how does this work, in this circumstance? The string streams are a ... (by personak)
by chenco
can u see the prob
 
#define STUDENTS_NUM 80 #define MAX_IN_LEC 20 #define LECTURES_NUM 4 #include <stdio.h> int convert_grades(float a ,char b ,float over) { int c=-1,l...
[1 reply] : badCode.cpp: In function ‘int convert_grades(float (*) , char*, floa... (by Moschops)
File Sizes
 
I know that when you compile the libraries you use are compiled into your code making the file a lot bigger. Having said that can anyone tell me why a file that...
[14 replies] Last: Alright, Thanks a ton! (by tehrealbinglebob)
double vs long double -- any difference?
 
Hi, I think my problem is quite basic, but I still don't get what's happening... I need to deal with precision higher than double, so I figured long double...
[13 replies] Last: I'd suggest you read up on some implementations of the long double typ... (by chronokitsune)
Templates
 
On Line 25, it states that Bigger is not a type - why is that? #include <iostream> using namespace std; template <class AnyDataType> class Bigger { ...
[5 replies] Last: Thanks! That solved it. (by waqqassheikh)
Include .dll files in DEV c++ priject
 
Hi, I have some function in WSN.dll , I want to include the function in run time .. How to include this in DEVC++ compiler . I have the wsn.dll file ,.. the...
[1 reply] : It's advised that you change you're IDE to a more up-to-date IDE such ... (by closed account zb0S216C)
VS 2008 is "stdafx.h" a nucence?
 
I hawe a qustion and i hope you guys can help me out just starting out whit C++. I wase working on: http://www.learncpp.com/cpp-tutorial/111-comprehensive-quiz...
[1 reply] : Try this: // io.h #ifndef IO_H #define IO_H #include <stdi... (by closed account zb0S216C)
Multidimensional arrays
 
Hi, im abit confuzed on how multidimensional arrays arrays work. If i put, char board ; what would i be doing, would there be arrays IN arrays, which mean...
[2 replies] Last: So to put it simply, it is like making a table, if it were , then th... (by TpOreilly)
Random numbers?
 
Whenever I run the program that I am creating, a Calculator for the game "RISK" it compiles fine but when i enter the values to test it, I get numbers that i th...
[4 replies] Last: if you know how many elements you need you could use reserve to alloc... (by stereoMatching)
How to work with copy and istream_iterator?
 
std::copy (std::istream_iterator<string>(cin), // beginning of source std::istream_iterator<string>(), // end of source ...
[no replies]
January 2011 Pages: 1... 3132333435... 42
  Archived months: [dec2010] [feb2011]

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