Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for mattloto

I'm trying to make a calculator that parses input like [TEX]( 3 + 2 ) * 5[/TEX] I want to use formal grammar for this, and I'm wondering how to organize this. I was thinking having a class for Value, which would basically just be a number. Then I want …

Member Avatar for mike_2000_17
0
133
Member Avatar for mattloto

Hello! I'm just starting out with makefiles, and I'm doing something using SDL (it's a cross-platform window manager). For this project, I want to incorporate a makefile into it, but I don't know what to do. The tutorials for SDL say to compile the program, use this command: [CODE]g++ sdltest.cpp …

Member Avatar for nezachem
0
185
Member Avatar for mattloto

Hey guys, so I just started learning computational geometry, and I decided to make a class for a Point and a class for a Ray. This is my code: [CODE]#include <iostream> #include <string> using namespace std; class Point { public: double x, y; Point(double x, double y) { this->x = …

Member Avatar for mrnutty
0
145
Member Avatar for mattloto

Hi, so I finally got around to looking into OOP in c++ and I have a question about classes. So I made this simple class: [CODE]#include <iostream> using namespace std; class Shape { int xPos, yPos; public: Shape(int x, int y) { xPos=x; yPos=y; } } ; int main() { …

Member Avatar for mrnutty
0
120
Member Avatar for mattloto

I need a way to communicate with other exe's. Almost like being able to call cout but to a exe, not the output stream. Both of the apps would be in c++. I know cout is for output stream, sstream is for any stream, fstream is for files, something like …

Member Avatar for mkvist
0
286
Member Avatar for hisugan

need c++ source code using array and loops.... i got a little problem thiking of it...

Member Avatar for mattloto
0
263
Member Avatar for mattloto

I am interested in using DirectX to make games. I'm using MinGW, which is a windows command line port of GCC. How would I get it so that DirectX 10 is included in the files? It probably is in the headers, but I don't know which to include because most …

Member Avatar for Ketsuekiame
0
268
Member Avatar for mattloto

I didn't know where to put this, so I'm putting it here and if any mod wants to move it them be my guest. I want to write my own ftp console application that would interpret the info and display it in a command-prompt like window. The only thing that …

Member Avatar for sknake
0
101
Member Avatar for mattloto

I want to make a FTP client in C#. I know that C# already has a FTP class, but I want to make my own with a Socket as a learning tool. I understand that FTP uses port 21 and port 20, but I don't understand how to connect with …

Member Avatar for kvprajapati
0
100
Member Avatar for mattloto

I am learning assembly and I have a question about interrupts. Are they bound to a specific OS? I, like a lot of people, want to make a simple OS of my own, not that I ever will. I was wondering if I can use interrupts like 10h without having …

Member Avatar for maf5693
0
93
Member Avatar for mattloto

I need to pass a 2D array of int's into a function, which is normally fine, but the issue is that I don't know the last depth of the array. I know how to do it if I knew the length of the last dimension, but it is user defined. …

Member Avatar for mattloto
0
127
Member Avatar for mattloto

I have an array of strings, with each string being a name. I'm looking for a function that will find the index of a particular name in the array. I looked into Array::IndexOf, but my array is like this: [CODE]string names=new string[30];[/CODE] and it wont work. I could make my …

Member Avatar for david.k
0
172
Member Avatar for mattloto

Thanks to another post of mine, I found out about itertools.product(). What I was wondering how to do is to code it so that I can use as many arrays as parameters as possible, with the number of arrays being defined by user input. for example, If the user inputted …

Member Avatar for vegaseat
0
1K
Member Avatar for wutwutwut

I know how to get a program to read a raw text file that has been piped to it, and do some simple things like counting letters, but I don't know how to read the actual words and store the entire word as a string. For example, if a text …

Member Avatar for vegaseat
0
170
Member Avatar for mattloto

I need a way to get all the possible combonations of two lists. I looked into map(), but it only loops through the first array. I tried to do a map function inside a map function, but I couldnt figure out how. Heres an example: [CODE]>>> a=[1,2] >>> b=[3,4] >>> …

Member Avatar for mattloto
0
240
Member Avatar for mattloto

I am preparing for a programming competition soon and for one of the sample problems one line of input is the length of the list of numbers and the second line is the actual numbers. this is what i have: void main() { int num; cin >> num; int items[num]; …

Member Avatar for Narue
0
121