General C++ Programming - February 2012 (Page 9)

please helpp program star
 
jjfjf
[3 replies] Last: figure it out? (by oonej)
by boi4o9
need help urgent!!!
 
this what i got so far, and its not outputting anything . this is just part of the program instructions. Part II We are going to define a class called Pe...
[no replies]
by Nel
Uniformly random generator
 
Please i am trying to solve this problem: How to generate an exponential r.v. with parameter lambda from U(0,1)? Show all your calculations. Write a short piece...
[2 replies] Last: excel can read csv files. Just output the file in this format and s... (by Disch)
Removing an element from a table
 
Hi, why is deletion challenging, once an indx in hash table is gone, here is the readingi on hashing I found: Removing an element from a table using open add...
[4 replies] Last: Less of an oracle, more of a way to get you to research it. (by ciphermagi)
Invoking Function Operator via Thread Creates a Copy
 
I'm playing around with std::thread and using it to invoke a class instance's function operator. I have noticed that you can invoke it from more than one threa...
[1 reply] : I'll answer my own question. You construct the thread using std::ref.... (by William Swartzendruber)
triangle classification hair-splitting troubles
 
Hi, I need to write a program to test the triangle type: to output either: scalene, isosceles, equilateral My question is, (I know this is more math but I c...
[1 reply] : Hmmm, ever tried to draw a triangle where the longest side is > sum of... (by mik2718)
by dalawh
Static clarification
 
Is static variable just one variable no matter how many times it has been created? What is the difference between global and static?
[2 replies] Last: Well, thanks for that. Static is individual and global is all the same... (by dalawh)
Modifier Help
 
Ok, I'm here to see if anyone could help me do a little assembly I'm really new to c# or any code other than web... i need to edit the modifiers in the exe to ...
[6 replies] Last: so would anyone suggest how to find the main encryption in the exe ? ... (by necrowolf)
Undefined Reference Problem When Using Multiple Files
 
So on one of my project programs I am having an issue trying to get rid of this error: main.cpp:(.text+0xc9): undefined reference to `void readCin<int>(int&)' ...
[7 replies] Last: @Disch its working.. i think i did not build it first time .. thanks ... (by bluecoder)
Static variable defined globally
 
Hi, im a beginner in C++. if a static variable is defined globally , what will be the scope of the variable in any of the functions used ... will the scope of ...
[8 replies] Last: So it doesn't pollute the project. When you've got several cpp and d... (by ne555)
Conceptual recursion question
 
Let's say I have a list of items (any kind, but I'll use strings here) and I want to create a recursive function that tells me where in the list an item is. My ...
[10 replies] Last: do not pass a counter The return value is the counter. it's ve... (by Disch)
Program crashing when a string is entered
 
I just wrote a find and replace function, but it doesn't seem to work properly. Here is the code that I am using: #include <iostream> #include <string> us...
[2 replies] Last: use some other name for your funsction, like myreplace (by viliml)
Enum difficulty
 
I'm trying to create a Turtle for an OpenGL project. My professor recommended using this in the class: enum Pen_States {UP, DOWN}; struct Turtle_State { ...
[1 reply] : Is Pen_States inside a namespace (other than the one your implementati... (by hanst99)
by ALEX10
ANISC
 
WHAT IS MEAN BY ARRAY?
[3 replies] Last: char word ; word is now a pointer to 10 chars. pointer will ret... (by Stewbond)
Raptor2 and Redland error
 
Dear friends, I were Installed Rapro2, rasqal, redland and sqalite . when I compiling my program the following error is coming , I could not f...
[1 reply] : it means that: In function `librdf_free_world' you refer to `lt_dlexi... (by Stewbond)
by ALEX10
C++
 
WHAT IS A FLOWE CHAT
[4 replies] Last: I think he meant http://www.flowerchat.com/ (by hanst99)
how to std::sort with a custom comp belonging to a class ?
 
Here is what I would like to do (I simplified it) and which fails to compile : #include <algorithm> class Toto { public: int mSize; int mpV ; Toto...
[11 replies] Last: Thanks. (by lalebarde)
by jorgen
Alglib 2d array
 
I'm a bit confused about using the setlength() function of real_2d_array in alglib. Below is a code example: int main() { using namespace alglib; int ...
[1 reply] : actualy, the last 2 colums should be random, becouse you make this: 0|... (by viliml)
Wrapper Classes??
 
Would anyone know a way of explaining or could you direct me to some material regarding wrapper classes? I don't understand them at all. Every explanation I r...
[5 replies] Last: Two ideas of "wrapper" classes occur here Wrapping to control acces... (by mik2718)
by Srija
printing error of array
 
hi........... i have the following code written in MSVisual Studio C++ 2008 express edition. As the code says to print 20 but it is printing 27 why??? #...
[3 replies] Last: I will show you a more interesting program that does the same. Your co... (by vlad from moscow)
February 2012 Pages: 1... 7891011... 43
  Archived months: [jan2012] [mar2012]

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