Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
54% Quality Score
Upvotes Received
55
Posts with Upvotes
45
Upvoting Members
30
Downvotes Received
59
Posts with Downvotes
38
Downvoting Members
22
32 Commented Posts
~92.7K People Reached
About Me

I live in Romania somewhere near Bucharest.I'm currently working as a cinema projectionst.

Interests
D&D,RPG,RTS,TBS games and of course .. programming
PC Specs
Windows Xp Sp3 using Borland 5.5 C++ and MinGW compilers.Linux Mint 11.
Favorite Forums
Favorite Tags
Member Avatar for Tomi1988

Hi! I am not too expert in C++ programming. I created a class (Pig), then I created an object (Jack the Pig). In the function Kill, I call the destructor, but it doesnt't "kill" (destroy) my Jack the Pig, because in the next line, I can feed him. So my …

Member Avatar for S_915
0
4K
Member Avatar for Violet_82

Hi there, I am trying to do an exercise from a C++ book. It goes: Develop a program that will move the knight around an empty chessboard. The chessboard is represented by an 8-by-8 two-dimensional array [ICODE]board[][][/ICODE]. Each of the squares is initialized to 0. We describe each of the …

Member Avatar for yaer
0
3K
Member Avatar for restrictment

Well we all have seen the common questions on creating squares and hollow squares out of asterisks in C++, but how about creating a program that prints out a circle in asterisks? Obviously this would look like an oval due to line adjustment, but it would be quite interesting to …

Member Avatar for CharlieCap
2
2K
Member Avatar for pittdaniweb

Hello everybody, I was asked by an interviewer the following question. but I was not able to answer. Please get back to me if you know the answer. thank you in advance. Que: What is the exact difference between the "for" loop and "while" loop in C language ?

Member Avatar for rajii93
0
795
Member Avatar for Kirielson

In C++ it seems like every single time you open a file, the inner contents get deleted quickly. Is there a way to open the file at the end of the last character while keeping all contents within the file? I've been looking at something with the End of file …

Member Avatar for ankit1990rana
0
8K
Member Avatar for XerX

Hello! Can someone please give me some advice where to begin this program from and how. Thanks in advance. [quote]Given set of points in the plane, you have to write a program in C++ that computes the following values: 1. The minimum distance between two points. 2. The maximum distance …

Member Avatar for Bob
0
634
Member Avatar for freedomflyer

I am running into (pretty serious) valgrind issues as I run my application. As far as I can tell, my BST has some memory loss, to put it rather clinically. I've tried to create the right destructor on my BST<T> class, which contains BSTNode<T> nodes (both are shown below in …

Member Avatar for mike_2000_17
0
583
Member Avatar for triumphost

Am I wrong that the answer is 2?? Teacher refuses and says that it's 3 because the compiler spits out 3 for ans.. but if I do it manually with pen an paper or with the cout<<v2%v1++, it spits out 2 which is what I get on paper.. [CODE] #include …

Member Avatar for mike_2000_17
0
306
Member Avatar for ruval002

i need help with my makefile. This is my first time dealing with one.I have ,ll.C and main.C, and one header file called ll.h main.C has the header file ll.h included and some other libraries ll.C has the header file also. and when i compile it i get this error: …

Member Avatar for caut_baia
0
157
Member Avatar for im abcd

So i wanted to build a program in which scientific sums are solved along with the steps .I tried but i failed . Here is the code ~ [CODE]#include <iostream> #include <cstdlib> #include <windows.h> #include <conio.h> using namespace std; int main(){ int reply; int u ,v ,t; int a = …

Member Avatar for im abcd
0
261
Member Avatar for vic s

hi, my name is vic...i got one problem cannot fix....output for the number of times each of the tasks has been invoked...i run 3 times each of the tasks but the output always is this program has run 1 times..... #include<stdio.h> #include<stdlib.h> void doTaskA(){ printf("Start of Task A\n\n"); int input_1, …

Member Avatar for vic s
0
184
Member Avatar for tformed

I have created a program without using sqrt and the pwr function but instead have used logs and exponent. The professor said that math.h is not allowed. I am aware that this library is important for computation, but how do I compute the math without using the math.h? Would I …

Member Avatar for mikrosfoititis
0
1K
Member Avatar for caut_baia

Hi everyone.I'm trying to compile a resource file ".rc" for a Win32 application but i'm getting this error "use "" to put " in a string".Among other things , i'm trying to define a MENUITEM with a string that looks like this "&Save\t\"Alt+S\"".i have tried escaping the '"' character with …

0
142
Member Avatar for caut_baia

Hi.I get the following error "g++: error: CreateProcess no such file or directory" whenever i try to compile a program.I have installed the MinGw 7.2 version at work on a windows machine and the problem does not occur , however after installing windows SP3 on my home computer i get …

0
197
Member Avatar for totalanonymity

Goals of exercise are: [LIST=1] [*]Output the value of PI (3.1419, as per exercise). [*]Prompt user to enter radius, r, and store it. [*]Calculate surface area of sphere: 4 * PI * r ^ 2 [*]Calculate volume of sphere: (4/3) * PI * r ^ 3 [*]Output the surface area …

Member Avatar for WaltP
0
3K
Member Avatar for caut_baia

Hello.I've been looking for a free C++ compiler for windows which supports the new standard features but i had little luck so far.Does someone have any knowledge of one? Thank you in advance.

Member Avatar for caut_baia
0
433
Member Avatar for alle

I am converting a program written using Borland Turbo C to M$ Visual C++ 2010. I have created a Win32 application, and have now managed to write to a window. But the font that has come out is a proportional one, and I need a fixed font for everything to …

Member Avatar for amyuni
0
536
Member Avatar for owenransen

As far as normal ascii is concerned can I compare a wchar_t with a char type to see if they are equal? I think, but do not know, that the most common ASCII chars have the same integer value in char and wchar_t. Is that true? Do I need to …

Member Avatar for owenransen
0
2K
Member Avatar for crapgarden

I have this code: [CODE]#include <iostream> using namespace std; int main() { enum foxtrot {green, yellow, red}; foxtrot colorSelect; cout << red << endl; [COLOR="Red"]cin >> colorSelect;[/COLOR] cout << colorSelect << endl; } [/CODE] Line 10 gives me the result 2 as expected, but line 11 gives me a compile …

Member Avatar for ashishseo
0
205
Member Avatar for efigen

I have been trying to write this code that calls a text file in the command line, it then reads the file and if the file has integers that look like this (1+2+3+5)it takes there sum and outputs it into a different text file, if it looks like this (1+2 …

Member Avatar for WaltP
0
150
Member Avatar for Coffee_Table

I am trying to run what i thought was a pretty basic program to solve a problem concerning strings (besides the point). It turns out that my algorithm works properly but i am stuck on a detail; the following segment of code is the problem: [CODE] int cases; string line; …

Member Avatar for Coffee_Table
0
585
Member Avatar for kutuup

Hey all, Just trying to build a program in VS2008 using the Allegro library. When I try to build (debug or release), the build completes, but when the program tries to run, I get an error saying that a file called "MSVCR80D.dll" is missing and suggests reinstalling the program. I …

Member Avatar for kutuup
0
657
Member Avatar for coolbeanbob

Hello, I am trying to get the return value from the next_number function up to the makefile function. I am getting an error that says next_number does not have a class type. EDIT: the error is "return statement with a value, in function returning 'void'" I don't understand why it …

Member Avatar for himgar
0
114
Member Avatar for caut_baia

Hi.Someone asked a day or two ago for a way to extract the square root of a number without using the std::sqrt function so i thought about writing my own.Here it is and please feel free to criticize.

Member Avatar for maninaction
0
386
Member Avatar for jerryvdk

Hi, Iam newbie in visual c++. I want a windows application such that when i click the executable file it should ask for the file to be opened.How can i dothis ?

Member Avatar for caut_baia
-1
80
Member Avatar for thecoolman5

hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions?

Member Avatar for thecoolman5
0
336
Member Avatar for zhackon

Look, Im planning to make a payroll program using Turbo C++, i'm a beginner. please help me or just give me steps on how to create my own program please?,,,,, :confused: :confused::confused:

Member Avatar for zhackon
0
308
Member Avatar for marvolo1300

Hi, I'm just trying out something with returning values to a variable and I've encountered a problem. Basically the program is supposed to return the value of [CODE]string x[/CODE] as either true or false from the [CODE]isEven[/CODE] function, then the [CODE]void output[/CODE] function should output the value of [CODE]string x[/CODE] …

Member Avatar for marvolo1300
0
92
Member Avatar for PratikM

Hi guys, I need to make a c++ project for my camp and i'm stumped and don't know what to do. I only know the very basics and i don't want to make any card games like black jack or RPG's cause people are already doing that in my camp, …

Member Avatar for pseudorandom21
0
107
Member Avatar for caut_baia

Hi.I have a piece of code that compiles without even a warning on the borland 5.5 compiler yet complains bitterly when compiling with g++.I've heard that g++ emits more portable code but shouldn't they both be standard compliant?From what i've read in the '98 standard book this should be legal …

Member Avatar for mike_2000_17
0
627