- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 55
- Posts with Upvotes
- 45
- Upvoting Members
- 30
- Downvotes Received
- 59
- Posts with Downvotes
- 38
- Downvoting Members
- 22
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.
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 ? |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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: … |
|
Re:
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 = … |
|
Re:
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, … |
|
Re:
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 … |
|
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 … |
|
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 … |
|
Re:
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 … |
|
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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; … |
|
Re:
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 … |
|
Re:
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 … |
|
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. |
|
Re:
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 ? |
|
Re:
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? |
|
Re:
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: |
|
Re:
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] … |
|
Re:
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, … |
|
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 … |