There was something that looked like an extension for visual studio that let you script online with other people realtime, it was mentioned in this thread earlier and i forgot what it was called and any information on it.
Me and my friend are entering a school competition and would love to collaborate files in this manner. Does anyone remember what it was called?
[QUOTE=LieutenantLeo;27680143]I need some help with this C++ code. I am attempting to make some sort of Username system that identifies who you are by saying something about you or printing anything depending on what you type for the username. This doesn't work. It just closes after you enter your username and press enter. [code]#include <iostream>
using namespace std;
int main()
{
int username;
cout << "Register a new Username \n \n ";
cin >> username;
cin.ignore();
cout << "Userfile " << username ;
cin.get();
[/code][/QUOTE]
Can cin return ints? I don't know.
[QUOTE=Naelstrom;27680172]There was something that looked like an extension for visual studio that let you script online with other people realtime, it was mentioned in this thread earlier and i forgot what it was called and any information on it.
Me and my friend are entering a school competition and would love to collaborate files in this manner. Does anyone remember what it was called?[/QUOTE]
There's a plugin like that for Notepad++. I think it's [url=http://sourceforge.net/projects/npp-plugins/files/NppDocShare/]this one[/url], not sure though.
[QUOTE=geel9;27680214]Can cin return ints? I don't know.[/QUOTE]
I am almost certain. If not, do you know of any input functions that allow me to return ints?
[QUOTE=geel9;27680214]Can cin return ints? I don't know.[/QUOTE]
Im pretty sure it just returns everything as strings (or chars)
[editline]27th January 2011[/editline]
[QUOTE=LieutenantLeo;27680326]I am almost certain. If not, do you know of any input functions that allow me to return ints?[/QUOTE]
You would have to get the number char and use atoi
[url]http://www.cplusplus.com/reference/clibrary/cstdlib/atoi/[/url]
[QUOTE=geel9;27680214]Can cin return ints? I don't know.[/QUOTE]
[QUOTE=Richy19;27680338]Im pretty sure it just returns everything as strings (or chars)[/QUOTE]
It's easy enough to find out for yourself…
[cpp]
#include <iostream>
int main(int argc, char *argv[]) {
int x;
std::cin >> x;
std::cout << (x + 1) << std::endl;
return 0;
}
[/cpp]
Hey,
So I changed it to this:
[php]
$expression = escapeshellarg($expression);
shell_exec("cd /home/website/apps && /opt/mono/bin/mono cas3.exe expr=$expression file=$img");
[/php]
And it still doesn't work :bang: I'm not even sure what's going wrong - there is just no output at all.
I believe std::cin tries to cast the input to the datatype on the right of the >> operator.
[QUOTE=geel9;27680214]Can cin return ints? I don't know.[/QUOTE]
istream has numerous operator>> overloads, one of which is int&
[editline]27th January 2011[/editline]
[QUOTE=limitofinf;27680099]What do you mean? My server mostly uses PHP; the only reason I'm using Mono is because I didn't want to port cas3 to C++ or something.[/QUOTE]
Why not just setup a simple ASP.NET page that talks straight to your assembly, rather than fucking around with flaky shit like shell_exec
[QUOTE=Venice Queen;27680897]Why not just setup a simple ASP.NET page that talks straight to your assembly, rather than fucking around with flaky shit like shell_exec[/QUOTE]
Setting up ASP.NET to run on a Linux server under Mono when the server itself is using PHP for everything itself sounds a lot more flaky than a quick shell_exec
[QUOTE=limitofinf;27681142]Setting up ASP.NET to run on a Linux server under Mono when the server itself is using PHP for everything itself sounds a lot more flaky than a quick shell_exec[/QUOTE]
[img]http://ahb.me/1BUX[/img]
just made a video explaning our progress up to now. Currently converting from mts, then uploading to youtube.
I'll post a link here, right after I post it on my facebook, on my team's facebook page, our twitter, and the blog we are required to have by our school.
Oh yeah and I suck at explaining things on video.. Conversion will take another 6 minutes, then the upload time.
[editline]26th January 2011[/editline]
2% uploaded, 93 minutes remaining :v:
[QUOTE=Naelstrom;27680172]There was something that looked like an extension for visual studio that let you script online with other people realtime, it was mentioned in this thread earlier and i forgot what it was called and any information on it.
Me and my friend are entering a school competition and would love to collaborate files in this manner. Does anyone remember what it was called?[/QUOTE]
wave-vs, the developer suggested I wait till the next version to try it
[QUOTE=Venice Queen;27681788][img_thumb]http://ahb.me/1BUX[/img_thumb][/QUOTE]
Try that on a CentOS server.
[QUOTE=limitofinf;27683128]Try that on a CentOS server.[/QUOTE]
[code]
yum install mono-core xsp
[/code]
[QUOTE=Venice Queen;27683197]yum install mono xsp?[/QUOTE]
Sure, if you want Mono 1.x
Recently discovered the Android DDMS! How did I code without it? :specialschool:
[media]http://dl.dropbox.com/u/4194014/screen.png[/media]
[QUOTE=foszor;27681557]Progress
[img_thumb]http://i53.tinypic.com/14xkt35.jpg[/img_thumb][/QUOTE]
I love the feel of the art in this. Very nice.
[QUOTE=limitofinf;27683212]Sure, if you want Mono 1.x[/QUOTE]
Compile Mono yourself then.
It's trivial.
[QUOTE=foszor;27683633]Recently discovered the Android DDMS! How did I code without it? :specialschool:
[media]http://dl.dropbox.com/u/4194014/screen.png[/media][/QUOTE]
There's a DDMS perspective in Eclipse too, I usually have that open instead.
Also debugging on an actual phone is awesome!
[QUOTE=robmaister12;27684330]There's a DDMS perspective in Eclipse too, I usually have that open instead.
Also debugging on an actual phone is awesome![/QUOTE]
Oh god, that's awesome too
FINALLY! The video took 2 hours to upload, another 40 minutes to process 1080p.
Again, I suck at talking to a camera... deal with it
[media]http://www.youtube.com/watch?v=EtcmfnoG8g8&hd=1[/media]
[QUOTE=robmaister12;27684931]FINALLY! The video took 2 hours to upload, another 40 minutes to process 1080p.
Again, I suck at talking to a camera... deal with it
[media]http://www.youtube.com/watch?v=EtcmfnoG8g8&hd=1[/media][/QUOTE]
Your project looks very well made so far, I'm impressed. And as for your speech skills, they're completely fine, actually very decent compared to a lot of people.
Nice, but those doors look iffy.
Fun fact: if you can manage to move on and off the first button enough, the door will just disappear. I haven't looked into it yet, but I'm thinking either there's some float division by 0, setting the door's value to NaN, or it just flys off in a direction.
The second one is less likely, since we aren't checking if it's near the ending spot, but rather checking the magnitudes of a small interpolation vector and the distance it needs to travel and seeing if we've gone further than we need to.
There are some things we probably won't get to check, since this year's schedule for independent projects is cut by a month and a half. We have until the end of March to get a basic game out.
Today we had all day to work on our game. Because of the shorter schedule, 2 other members of the team decided they were finally going to join in to the same degree that just 2 of us have been working since the beginning.
What you don't see is the start of a level parser, the details of which we started today, and I've been trying to get tileset-based animation working since this morning. Also, that "Testing!" at the top is composed of a font tileset we made earlier. The font itself needs a bit of work, but that's secondary.
[QUOTE=robmaister12;27684931]FINALLY! The video took 2 hours to upload, another 40 minutes to process 1080p.
Again, I suck at talking to a camera... deal with it
[media]http://www.youtube.com/watch?v=EtcmfnoG8g8&hd=1[/media][/QUOTE]
Damn, that almost makes me want to get an android phone.
Making an open source project is pretty hard, I've had to spend the past week jolting down coding rules whenever they came to mind and detailing how to do X.
[quote]------------------------------
1. Tools
To build and use DEngine, you'll need the following tools:
BUILD ENVIRONMENTS:
CMake 2.8 or higher.
COMPILERS:
GCC/MinGW 4.4 or higher.
To hack at DEngine, you'll need the following tools:
SOURCE CONTROL:
Git
DOCUMENTATION:
Doxygen[/quote]
[quote]------------------------------
Table of Contents
1. Introduction
2. System Requirements
3. Why use that?
- 3a. LGPL
- 3b. CMake
- 3c. Git
- 3d. Doxygen
- 3e. C++0x
- 3f. '/' as the path separator
4. Credits[/quote]
Just little snippets and stuff of what I've been writing.
I've also ported the engine to Windows, so all is going well. So far.
[QUOTE=robmaister12;27684931]FINALLY! The video took 2 hours to upload, another 40 minutes to process 1080p.
Again, I suck at talking to a camera... deal with it
[media]http://www.youtube.com/watch?v=EtcmfnoG8g8&hd=1[/media][/QUOTE]
Are you using OpenGL ES or the android.graphics classes? Either way it's impressive.
[editline]27th January 2011[/editline]
[QUOTE=LieutenantLeo;27680143]I need some help with this C++ code. I am attempting to make some sort of Username system that identifies who you are by saying something about you or printing anything depending on what you type for the username. This doesn't work. It just closes after you enter your username and press enter. [code]#include <iostream>
using namespace std;
int main()
{
int username;
cout << "Register a new Username \n \n ";
cin >> username;
cin.ignore();
cout << "Userfile " << username ;
cin.get();
[/code][/QUOTE]
int means integer, as in a whole number. Each character in a string is one byte, and each one will be interpreted as an individual ascii code integer. For this reason, if you enter the word "Hello", it will take the ascii code for 'H' and put it in username, it will then ignore 'e', output the value of username (which would be positive number corresponding to its ascii code), then cin.get would retrieve the next input item in the buffer which would be 'l', meaning it won't wait for you to press enter because it's already got a character, meaning the program can continue.
Try entering something like
12345
for username. It will work, but of course only with numbers.
I rewrote my C# A* maze solver in C++ for fun to see how much faster I could make it. It solves [URL=http://dl.dropbox.com/u/11782997/output_hugefuckingmaze.png]this fucking huge maze[/URL] in about 5.1 - 5.3 seconds down from ~18 seconds in the C# version. C++ time doesn't include the initial memory allocations or deallocation of the crapfuckload of nodes on the closed list after it's done. I wonder if I can still make it faster.. I need to profile my code.
Also, it allocates nearly 1 GB of memory while solving that.
Sorry, you need to Log In to post a reply to this thread.