MosaicFuneral 812 Nearly a Posting Virtuoso

A small JIT compiler/runtime assembler thing. Lost all the code I had on a thumb drive, so I have to start over(better this time).

MosaicFuneral 812 Nearly a Posting Virtuoso

What is a "nos"?

MosaicFuneral 812 Nearly a Posting Virtuoso

You're just inviting people to do it, by "challenging" them to copy it.

MosaicFuneral 812 Nearly a Posting Virtuoso

I think he uses an Engl Powerball amp head. If you want to know the guitar, watch the videos of him playing.
Not that it matters what equipment you use, if you can't even execute the proper technique. Do it on an acoustic if you want.

MosaicFuneral 812 Nearly a Posting Virtuoso

Chorus, reverb, delay, overdrive, couple distortions(smooth fuzz for one might be good).
Although all the distortion for him is taken care of by the amp, unless you're like me with just an old no-thrills 10watt 6" practice amp.

MosaicFuneral 812 Nearly a Posting Virtuoso

Lets begin:

I'm listening to Melt Banana so this really doesn't take a single sane thought to begin my irrelevant posting adventure about irrelevance on a forum based on reason and logical postings formed in reality, not rambling diatribes about "threads I've read that told me to go off topic of the OP's conceptual rantings of posting a post that is in some-sense not related to the point."

Do I win for incoherency?

MosaicFuneral 812 Nearly a Posting Virtuoso

Get a few disassemblers, they're the best tools to use when you want the truth.

MosaicFuneral 812 Nearly a Posting Virtuoso

ok then tell me about your beautiful town, you didnt even name it yet.

Yes I did, Inside a bottle, with a shotgun. Sort of like Inside a bottle, with a luxury yacht, but obviously greater.

(I assume it's obvious I'm childishly playing here, right?)

MosaicFuneral 812 Nearly a Posting Virtuoso

this is a place where we can chat on anything, if i post similar thing in technical forums then i will agree with you.

Well I'm chatting about my awesome town. So don't overreact, about how I'm overworked. :icon_rolleyes:

MosaicFuneral 812 Nearly a Posting Virtuoso

where is your city?

Inside a bottle, with a shotgun. Great place, you should visit.:P

MosaicFuneral 812 Nearly a Posting Virtuoso

This is some seriously fucking creepy shit!

Narue would be one of the users that convinced me Daniweb is a decent site, by posting quality answers in the forums, but..... I don't think I'm going to start stalking anyone here, just because they know how to program...... Maybe I should stalk you for being insane? Is that enough qualifications?

Oh yeah, I hope that you never come near my city.

MosaicFuneral 812 Nearly a Posting Virtuoso

Just use standard Win32 apis (Net, COM, and others)

It's bundled with Windows, so it's part of it already. Along with WinINet.

MosaicFuneral 812 Nearly a Posting Virtuoso

They're called ASCII art generators.

MosaicFuneral 812 Nearly a Posting Virtuoso

Learn a programming language, study image identification.

MosaicFuneral 812 Nearly a Posting Virtuoso

You could simplify your whole Keyboard() function to a few if else conditions.

MosaicFuneral 812 Nearly a Posting Virtuoso

Youth is vitality, so it's all no problem than.

By the way, Serkan, how do you manage to make all your threads so creepy, and how old are you again?

Nick Evan commented: "creepy" is the perfect word for this thread +16
MosaicFuneral 812 Nearly a Posting Virtuoso

(3) generally speaking we don't give away code for homework solutions, and we don't appreciate people who do.

It's so non-standard the kid would get in trouble anyway.

MosaicFuneral 812 Nearly a Posting Virtuoso

1.

#include<stdio.h>
int main()
{
 int function(int);
  ...

Prototypes don't go inside other functions.

MosaicFuneral 812 Nearly a Posting Virtuoso

Yeah I'm aware of that, Im talking about for example

2 executables

exe a and exe b
exe a will configure/edit values of exe b
exe b will retain them and use them will running self contained

Best tut on the Windows 32 PE("exe") format
http://webster.cs.ucr.edu/Page_TechDocs/pe.txt

Exe A gets B's DOS header, with the PE offset it gets the IMAGE_NT_HEADERS, right afterwards is the section headers find your section, jump to that section and.... the rest is up to you.

MosaicFuneral 812 Nearly a Posting Virtuoso

True, but im looking for a PoC in a weird way, I need to do it in that specific way, no alternatives

Okay, but what OS are you on?
You could append the data to the end of the file, spread it through out unused header crap, or:
create your own section and declare a variable(preferably a string) inside of there, look up the section and overwrite the values with the new values.

MosaicFuneral 812 Nearly a Posting Virtuoso

Well why not just save it in a encrypted file? Keeps everything separate from getting lost.

MosaicFuneral 812 Nearly a Posting Virtuoso

Does your project require boost? I'd just avoid it altogether.

MosaicFuneral 812 Nearly a Posting Virtuoso

@s_sridhar: You only need a supercomputer for chess if someone is stupid enough to even try and calculate every possible move(might as well call that infinite). Chess is a territorial game that just needs a basic AI system for a Human vs. Computer scenario; that and you only need to look-ahead and calculate "likely" possible moves that would be played not an infinite number.

MosaicFuneral 812 Nearly a Posting Virtuoso

I rarely smoke anything: to expensive, don't like coughing, and if you didn't like the smell of what you just had, it lingers and might leave you sneezing.

MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

i have pyschological problems guys, i know i dont sound quite common. is common sense common is a different issue though.

Then why not take your Seroquel?

MosaicFuneral 812 Nearly a Posting Virtuoso

Try the XML section.

MosaicFuneral 812 Nearly a Posting Virtuoso

who is the guy next to her :)

Every new question you ask, just seems to get creepier...

MosaicFuneral 812 Nearly a Posting Virtuoso

Why is everyone such stalkers here? Time to call the FBI! :P

MosaicFuneral 812 Nearly a Posting Virtuoso

So Rashakil is Anon?! 0.0 Is he going to go blow up a van, like how Fox showed it on television? lmfao

The generated reputation comments is possibly the most entertaining part of this thread.

nav33n commented: haha.. That is so true! +10
MosaicFuneral 812 Nearly a Posting Virtuoso

uhmmm.... Then why don't you go buy some teacher edition books, and start your own answer site?

MosaicFuneral 812 Nearly a Posting Virtuoso

The only real language is, BrainF'

ddanbe commented: 'uck I quite agree! +4
MosaicFuneral 812 Nearly a Posting Virtuoso

break; Just jumps, after an evalution. return(x); Will probably store the value were ever it feels appropriate, then tells the OS to return back to the called procedure.

MosaicFuneral 812 Nearly a Posting Virtuoso

It was edited for not following the rules.

Your program does nothing but get numbers because it goes:

declare
compute empty values
get input
display input

You probably should keep the values in a struct or something, and do the math in a function. Keeps everything a tad nicer looking.

MosaicFuneral 812 Nearly a Posting Virtuoso

What rewind()? ifstream.seekg(0, ios::beg);

MosaicFuneral 812 Nearly a Posting Virtuoso

Pretty much.

class AClass
{
    private: /*or protected, depends on your needs*/
                bool truth;
    public:
                bool return_truth();
};
 
bool AClass::return_truth()
{
    return(truth);
}
MosaicFuneral 812 Nearly a Posting Virtuoso

Many "normal" people would just call it a conditional loop.

MosaicFuneral 812 Nearly a Posting Virtuoso

The compiler has less of an ideal of what you're doing, when you use gotos, and people who use them in place of functions might see a dramatic decrease of performance.
Plus it becomes impossible to read, eventually. hence the spaghetti code reference above;

MosaicFuneral 812 Nearly a Posting Virtuoso

Sloppy, you need a better coding style. Look at:

for(int j) if() code
for(int j) if() code

that looked at first like you had a for loop with a for loop with the same variable j being redeclared.

You're going to run into errors rapidly with a style like that.

MosaicFuneral 812 Nearly a Posting Virtuoso

Loop though the characters and do whatever you feel is adequate. Not much to beginners level "encryption." So go write it!

I assume you used a search engine? Other wise look up "cipher," and "c++ encryption."

MosaicFuneral 812 Nearly a Posting Virtuoso

You really need to work on your order of operations.

You need to do the subtraction first, then divide that number by the constant of 9/5(1.8); not 1.8 divided by the difference.

Go to the library and check out a book on Algebra, then do a few brief reviews to see where you need to touch up on(if it's been awhile since you've used any). Programming follows many of these little laws in math, so keep them in mind, or write it down on a card/note-pad for reference.

MosaicFuneral 812 Nearly a Posting Virtuoso

Maybe as a DLL?
But - what's so "secret and special" about your code, are you embarrassed by it?

Even if you put your code in a DLL, make sure it's abstract enough for the user. Since no-one wants to route through several layers of classes, declaring objects to be used by other objects, when just calling one function from a single class could have done it.
Code is still nice as a documentation, unless you've documented it well.

MosaicFuneral 812 Nearly a Posting Virtuoso

What's the output of temp before you use the function?
Any code to see how you're going about that?

MosaicFuneral 812 Nearly a Posting Virtuoso

Why are you recursively looping a function like that? It's hard to follow.
Also not sure why you're not using int main(), globals in that way, string.h, or idk this is way more complex than it needs to be...

MosaicFuneral 812 Nearly a Posting Virtuoso

Yes, just bounds of endless spamming. :'(

MosaicFuneral 812 Nearly a Posting Virtuoso

How about:

vector<string> blah;
string temp;

for(int i = 0; i < 52; i++)
{
    some_random_string_generating_function(temp);
    blah.push_back(temp);
}

cout << blah[23] << endl;
MosaicFuneral 812 Nearly a Posting Virtuoso

Arrays have to be constant.

Try vector<int>, or allocate the memory and delete it at the end.

int *an_array;

 /*input*/

an_array = new int [numb];

/*stuff*/

delete [] an_array;
MosaicFuneral 812 Nearly a Posting Virtuoso

MinGW 5.1.4
Download, include the g++ option, unzip the files to a file and copy them over to the directory.

MosaicFuneral 812 Nearly a Posting Virtuoso

When you uninstalled it, you removed the leftover file?
You're using the current version?
Installed it to the default directory? I tested it on two XP machines, and it would only work in the default, but fine in other directories on other OSes.

If you already tried that, perhaps update the compiler to the current version(MinGW 5.*).

MosaicFuneral 812 Nearly a Posting Virtuoso

Have you tried a modulo operation?