Posts
 
Reputation
Joined
Last Seen
Ranked #515
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
82% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
~19.7K People Reached
About Me

I'm a college student, studying for my degree in Computer Science. I was a Biology major for 3 years before deciding to switch, as computers have been a life long passion of mine. I've programmed, atleast a little bit, in: HTML, CSS, PHP, and JavaScript…

Interests
Modifying and working on cars I also enjoy any computer work, especially programming and working with…
PC Specs
CPU - Intel Core2 e6300 (1.86Ghz) Memory - 4GB DDR2 @ 667Mhz Mobo - EVGA 680i Disk - 64GB SSD x86_64…
Favorite Tags
c++ x 49
Member Avatar for mitch9654

[QUOTE=mitch9654;1185232]Hello, I am trying to make a calculator that does multiplication, division, addition and subtraction. My problem is that when I have the two numbers that have decimals it goes wonky. Anyway, that program runs like this: 1. User enters equation 2. Unwanted characters get thrown out 3. If operation …

Member Avatar for chary8088
0
245
Member Avatar for ankit894u

[QUOTE=ankit894u;1183825][CODE]#include <cstdlib> #include <iostream> #include <string> #include <fstream> #include <sstream> #include <cstring> using namespace std; int main(int argc, char *argv[]) { fstream filestr; for (int i=1; i<=17771;i++) filestr.open ("mv_0000001.txt", fstream::in | fstream::out | fstream::app); filestr.close(); system("PAUSE"); return EXIT_SUCCESS; }[/CODE] guys i m trying to create multiple text files to the …

Member Avatar for ankit894u
0
268
Member Avatar for josolanes

Long story short... I wrote a CLI events calendar for Linux in C++ (one of my first major C++ programs), and it came to around 2400 lines of code. I've been working on it for a few weeks now getting things just right. I just finished getting a decent working …

Member Avatar for josolanes
0
230
Member Avatar for miskeen

[QUOTE=miskeen;1180494]Hello, I have to use an array, but its length is unknown at the beginning of the program. Is it possible to create such array and after that give it the desired length? Thank you![/QUOTE] If the length is varying, I'd recommend using vectors instead as they can change size …

Member Avatar for miskeen
0
15K
Member Avatar for vbx_wx

what you're looking for is an overloaded function Your first function (for char's) would look like this: [CODE=cpp]void write(char c) { ... }[/CODE] Your other function (the overloaded one) should look like this: [CODE=cpp]void write(const char* c) { ... }[/CODE] The one that's needed at the time will automatically be …

Member Avatar for mrnutty
0
103
Member Avatar for Arslan Khan

[QUOTE=Arslan Khan;1179265]c++ program that convert integer in to hexadecimal[/QUOTE] Search google for an answer to this...you should find plenty of information Once you've written up some code and run into problems, then try posting here and we'll help further

Member Avatar for josolanes
-5
61
Member Avatar for heynow12

[QUOTE=heynow12;1179247]max_val is supposed to tell the program how many numbers will be inputed. Then the size array x is the value of max_val...if that makes sense.[/QUOTE] Like what [B]Ancient Dragon[/B] is hinting at...what is max_val equal to when line 9 is to use the max_val? An array must have a …

Member Avatar for josolanes
0
1K
Member Avatar for josolanes

I'm using [this website](http://stdcxx.apache.org/doc/stdlibug/33-3.html) as a reference and am modifying some code to (hopefully) have it work the way I'd like it to. I *think* I'm close, but since I have no experience with custom paramaterized output manipulators (and have limited experience with custom output manipulators even) I'm kind of …

Member Avatar for josolanes
0
349
Member Avatar for josolanes

Hi, I'm writing a "Date" class and it's fully functioning, including the output manipulators, but the issue I have is when creating a class the has a "Date" instance in it. It, then, doesn't compile because it says there are multiple definitions of the manipulator functions. I'll lay out, below, …

Member Avatar for josolanes
0
99
Member Avatar for josolanes

To start off, I am in no way affiliated with this site. I'm just excited to see something like this finally show up as I had been looking for this for a few months now (on-and-off) and stumbled upon it today :) [URL="http://codepad.org"]codepad.org[/URL] is "an online compiler/interpreter, and a simple …

Member Avatar for jwenting
0
121
Member Avatar for ccaatty

Or if you'd like to connect two variable strings use "append" [code=cpp] #include <string> #include <iostream> using namespace std; int main(int argc, char** argv) { string one = "Hello "; string two = "world!"; one.append(two); cout << one << endl; } [/code] The above would ouput: [code] Hello world! [/code]

Member Avatar for cassandy
0
91
Member Avatar for josolanes

Okay, I've been working on my own version of a Date class and I had it working before but thought I'd try to revise the code a little at a time, after reading "Effective C++: Third Edition" by Scott Meyers I'll start with the code as I'm not too sure …

Member Avatar for mitrmkar
0
133
Member Avatar for vijayan121

Thanks [B]vijayan121[/B]! I'm going to have to play with this a bit more today to really understand how to use it myself I understand your example, now. But I had trouble trying to come up with it on my own Thanks again! You've really helped me in understanding this a …

Member Avatar for josolanes
1
164
Member Avatar for thedonflo

[QUOTE=lotrsimp12345;1163697]one piece of advice switch statements will only accept built in types of C++. gl.[/QUOTE] Yep - a switch statement will not, for example, accept a string variable for comparison. It will, however, accept a char or int variable type Another thing that's easy to miss or overlook is to …

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for josolanes

I'll do my best to be as clear as possible about what I'm trying to do. In short, I'd like to know if a switch statement can check multiple variables simultaneously (I have a feeling it can't, but I'd like to confirm). If it can't, can someone recommend a way …

Member Avatar for josolanes
0
1K
Member Avatar for josolanes

HI, my name is Josh. I'm 23 and am going to school for Computer Science My hobbies include: working on cars (modifying them and all DIY work), and almost anything computer related. I especially enjoy working with the various Linux distros (currently using Gentoo) and also really like programming as …

Member Avatar for josolanes
0
67
Member Avatar for josolanes

Memo.h: [CODE=cpp] #ifndef _MEMO_H #define _MEMO_H #include <stdlib.h> #include <string> #include <typeinfo> #include <iostream> #include "Date.h" #include <map> #include <vector> using namespace std; class Memo { public: map<Date, vector<string> > Appointment; //void delMemo(int x); void addMemo(Date myDate,string x); }; #endif /* _MEMO_H * [/CODE] Memo.cc [CODE=cpp] #include <stdlib.h> #include <string> …

Member Avatar for josolanes
2
216