Posts
 
Reputation
Joined
Last Seen
Ranked #258
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
85% Quality Score
Upvotes Received
17
Posts with Upvotes
16
Upvoting Members
15
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
14 Commented Posts
~40.9K People Reached
About Me

I'm a student, freshly passed out of school, and waiting for college to begin, and very, very interested in programming, 'specially in C++. I also love the realm of Web Development, and enjoy animation (in-fact, I'm now taking a course on it) :D

PC Specs
System: Linux, Ubuntu 10.04 LTS Lucid Lynx Computer: Intel(R) Pentium(R) 4 CPU 2.66 GHz 1024 MB RAM…
Member Avatar for BobRoss

Hello, I'm writing a simple shift cipher which reads from plain.txt, encrypts, and writes to cipher.txt. It works, but only for small plain text lines of a couple of words or so. If the plain text lines are long, then the program does not respond (freezes). Any help would be …

Member Avatar for happygeek
0
1K
Member Avatar for sillyboy

I usually listen to music while I'm browsing here, what are you listening to right now? EL-P - Fantastic Damage

Member Avatar for Helianthus
0
5K
Member Avatar for FraidaL

The code is really long so I don't want to post all of it, but I'm posting the part I'm having an issue with. This is part of a fraction class I'm writing. Most of it is working but for there is something wrong with the istream because when I …

Member Avatar for FraidaL
0
132
Member Avatar for kbrook

I just download this game called rumblefighters to my computer, but when i click on it and the games about to star the screen turns black for 2 seconds then brings me bak to the desktop then windows ask me to send a report to them...how do i get this …

Member Avatar for stultuske
0
236
Member Avatar for lss123

In a program I am writing, the one line of declaring an ifstream object causes the program to "crash" and a non-zero return code to be returned. Instead of pasting the full program here, I'll paste a sample program that "crashes" just the same. I put "crash" in quotations because …

Member Avatar for JamesPhillips
0
662
Member Avatar for ^Y^ nobody ^Y^

Hi, I'm trying to make a program that search strings in a file and output them (or others). My problem is, how to output a file line !? Here is my code... [CODE]string str; string str2 = "hate"; int i; ifstream file ("file.txt"); for (int index=1; index<=10; index++) { getline …

Member Avatar for amrith92
0
141
Member Avatar for Duki

Can someone remind me why I can't do this: [code=c++] int s = b.Activate(war.get_tp(), damage, 50); //prototype int Activate ( int &tp, int weaponDamage, int attack ); [/code] I get an error at war.get_tp(). It says cannot convert param 1 from int to int&. I need it to be a …

Member Avatar for Duki
0
174
Member Avatar for aikiart

Good morning, I've got a general question about overloading operators. Suppose you have a class that overloads the + operator and overloads the = operator, if you do something like this length3 = length1 + length2, will you automatically call both the overloaded + and = operator and if so, …

Member Avatar for aikiart
0
191
Member Avatar for smcguffee

Dear all, I'm starting to get the hang of this C++ business, but I have one question that I just realized I don't have an answer to. Suppose I want to call a constructor from within a constructor to reduce redundancy in the parts that are identical. I seem to …

Member Avatar for smcguffee
0
109
Member Avatar for blaisemcrowly

I am trying to take in inputs from the user for one of my projects. [CODE]cout<<"Enter Event Name (enter 'exit' to quit) ::"; gets(dat.evnm); cout<<"Enter Type Of Event (eg: Dance, Music, 'exit' to quit) ::"; cin>>dat.type; if(strcmp(dat.type,"exit")==0) return 0; cout<<"\n";[/CODE] here the line[CODE] gets(dat.evnm);[/CODE] will not execute, and the program …

Member Avatar for blaisemcrowly
0
231
Member Avatar for Bigbrain99

I used below codes to pass a value from vector to my cpp file. While i'm doing that, i got segmentation error in my main cpp? Is there anyway to pass the vector value to my main cpp? thx for the help [CODE]void Loadfile() { //cout<<"this is used for loading …

Member Avatar for amrith92
0
102
Member Avatar for achieve_goals

Hi, I was working on Josephus problem, where I have to make a circular linked list and having errors in it. Will really appreciate if anyone can help me. The following method is in Node Class: void link(int num_people, Node* temp) { int n = num_people; [B]head->next = new Node;[/B] …

Member Avatar for achieve_goals
0
110
Member Avatar for leesho

i have this code which input 3 numbers into ascending order. i know make it 10 i just change the array size but then it is only ascending the numbers that were inputing that are under 10. how can i change it so it's any number. [code]#include <iostream> #include <conio.h> …

Member Avatar for mrnutty
0
264
Member Avatar for erka4444

I am trying to write a function which converts a number to a string. But when I return from the function, the reviving string - according to debug mode - still is empty, so the program outputs nothing. What am I doing wrong? [CODE=c] #include <iostream> #include <string> using namespace …

Member Avatar for amrith92
0
95
Member Avatar for umandajayo

hi all... I am a student and but working as a php developer...my desire is be a good skillful Software Engineer. I am currently following php and java too. but my mind say try to learn C++ also.. ok good 01. How I start my C++ career. 02. What is …

Member Avatar for mohsho
0
99
Member Avatar for pineapple23

Hi, I've been learning basic C++ for the past few days, and at the moment, I'm trying to make a basic 2-number, plus/minus/multiply/divide calculator. Here's what I have (it's complete). Basically I was wondering if anyone could recommend a quicker or shorter way of typing all of this out. Thanks …

Member Avatar for amrith92
0
365
Member Avatar for i_luv_c++

Hey guys, I am working on a assignment. I am 90% done with the code. However I stuck on the part where i have to flip the output(vertically and horizontaly). I tried I everything i could. I tried setting the row up side down that way it would help and …

Member Avatar for Swiftle
0
78
Member Avatar for dualdigger

Hi; I made a ATL/MFC application using VS 2008 but its exe is not running on Win Xp or Windows 7. My OS is Windows XP 2002 with Service Pack 3. What could be the problem? Doing some .net Framework Service packs doesn't seem to help much as I already …

Member Avatar for amrith92
1
486
Member Avatar for tendavola

This code crashes, unless the indicated line is commented out, then it works beautifully. I cannot understand this because it is the 3rd in a series of 4 repetitions of the same thing. Any help is appreciated. Thanks [CODE] int x=0; int y=0; int lp=0; for(lp=1;lp<=4;lp++) { y=0; x++; y++; …

Member Avatar for NP-complete
0
102
Member Avatar for Jack_1

I wanted to write a program that finds the factor of a no. eg 2 and 5 are factors of 10. But that program is not working .Please tell me what is wrong with my program.Also tell me how to finally write like "10=2*5". Despite having learned functions and arrays …

Member Avatar for NP-complete
-1
149
Member Avatar for timb89

im looking at creating an adjacency matrix built with rows r1, and columns c1, with a float value. i have managed to read the the values from a text file, set out like: r1,c1,float1 r2,c2,float2 etc... i am having trouble converting these values into an adjacency matrix. thanks

Member Avatar for mrnutty
0
302
Member Avatar for younas khan

Write a program that defines a template function named add(). This function takes two arguments, add two variables and then return the sum. In main function, define two variables of type int, two variables of type float and two objects of type ‘String’. Now call the add() function three times …

Member Avatar for amrith92
0
114
Member Avatar for Alainztol

Does any one know how to fix this problem HTTP Error 403 - Forbidden ? I think I was blocked from viewing this site but there aint no good reason for it!

Member Avatar for prasad.gopale
0
122
Member Avatar for squigworm

Hello, I have been trying to figure this out for several hours and would so so so so greatly appreciate some help.. This is the error message I am receiving when I try to compile my program.. /Barclay_Colin_Assign7_Final.cpp:393: error: no matching function for call to 'bookinfo(int&, char [51], char [14], …

Member Avatar for lotrsimp12345
0
148
Member Avatar for merse

I naturally included [CODE] #include <iostream> using namespace std;[/CODE] but the following overloading not works [CODE]friend ostream& operator<<(ostream& stream, mystruct& x); [/CODE] just if I included std:: [CODE]friend std::ostream& operator<<(std::ostream& stream, mystruct& x); [/CODE] Why it is necessary?

Member Avatar for merse
0
97
Member Avatar for bgavran3

Okay, I have a simple problem. I want to print the value of N twice and then increase it (this is just a chunk of a bigger program, ie the one in which it makes sense to do that), however, the output is "1 0". [CODE] #include "stdafx.h" #include <iostream> …

Member Avatar for amrith92
0
125
Member Avatar for Bladtman242

Hi, i just don't get why this isn't working. It is supposed to read from the end of a .txt and up, until it hits the first space but it just keeps repeating the last character in the text file ip.txt Any help is much appreciated. [code=c++]#include <iostream> #include <fstream> …

Member Avatar for Bladtman242
0
618
Member Avatar for merse

I would like to initialize a user defined struct with the = operator and a scalar type (for example: double) on its right hand side, like this: [CODE] struct real { double value; double error; ... }; int main() { real x = 1.; // supposing error=0. } [/CODE] It …

Member Avatar for amrith92
0
130
Member Avatar for dapage

I have been working on a C++ program that is a tic-tac-toe game. The problem is that after I win or lose, the program does not end. Here's the code I have written so far (I even wrote comments to make it easier): [CODE] #include <iostream> #include <ctime> using namespace …

Member Avatar for jonsca
0
142
Member Avatar for confusedndazed

I'm having trouble understanding how to write a function call. This is what I have so far: [CODE]#include <ionstream> using namespace std ; int binomial(int n, int k) ; // function prototype int main () { int n, k ; // parameters for the binomial number int result ; cout …

Member Avatar for amrith92
0
141