MosaicFuneral 812 Nearly a Posting Virtuoso

Did you read how to setup projects in Dev-C++?
New Project -> Project Options -> Set the include and library directories -> Parameters, Linker, name of the static library.

MosaicFuneral 812 Nearly a Posting Virtuoso

If you has Firefox and look up, you might get the joke.

That machine could run a better OS. I run NT4 on a similarly specced pc.

True, it use to run Win 3.11, but the hard-drive started to die, so I just use it as a test machine now. Usually only has half its RAM in(8mb).

MosaicFuneral 812 Nearly a Posting Virtuoso

No Windows API is different. Console applications are the DOS window.

Actually they're just Window console apps, using the command prompt. They're not true DOS programs, unless you have a compiler compiling for DOS.
I think you're just confusing the OSes with command prompt.

MosaicFuneral 812 Nearly a Posting Virtuoso

It says it equals -Page 2 - Geeks' Lounge - Mozilla Firefox .

MosaicFuneral 812 Nearly a Posting Virtuoso

If I remember right, chars in scanf() don't need the & before them.
Yes, main() should always return zero, and shouldn't you be passing the variables to be modify through the parameters of the functions?
edit:
Or was it for strings(%s)...

MosaicFuneral 812 Nearly a Posting Virtuoso

Have you you tried compiling it, and reading the error reports? There's invalid operations, spelling mistakes, missing types, definitions where there shouldn't be, et al.
I think you need to start anew, slowly adding piece-by-piece, compiling, fixing, learning, and so on.

You also might want an IDE to help do the indenting for you, as you go along.

MosaicFuneral 812 Nearly a Posting Virtuoso

Possibly in a register entry, that sets it for the whole system.
Which that's a very Windows related question, which you might be better off in a Windows related forum in finding it.
I assume you're trying to alter it for the whole system/user?

Once you find it, just look up how to edit registries with the Windows API in C++.

MosaicFuneral 812 Nearly a Posting Virtuoso

Can't you simplify Alpha, and Morse like this: string Alpha = "abcd...7890"; vector<string> Morse; You probably could come up with an algorithm to push_back() all the elements, for Morse. Or for now, do it manually for the first few ones, just to test it out.

MosaicFuneral 812 Nearly a Posting Virtuoso

What is line 10, and 11?
main() must be able to return zero, and there really is no file called <iostream.h>, look it up.
Is getche() a typo, or do you really need it?
Biggest question: is your tab, or space bar broken? You'll never be able to fix something no-one can read, I just stop after several lines, and scrolled through the mess.

MosaicFuneral 812 Nearly a Posting Virtuoso

Well as they already said reset sum to zero; next problem in month two would be, you forgot quotes " in cout, and I'm assuming the lack of int before main() is a copy-paste oversight.
You could create a class that holds all of the months, extra info and functions that deal with them; if you've gotten that far in your studies, yet.

MosaicFuneral 812 Nearly a Posting Virtuoso

He did, by telling you, "you need a question, if you want an answer"(in other words). Try what Freak_Chris posted.

MosaicFuneral 812 Nearly a Posting Virtuoso

I've only been on two Vista laptops, mostly to setup the Wi-fi for a couple relatives. I'd say it's about a thousand times better than versions of Windows CE, which will lock-up at the blink of an eye(and they want to use it for medical devices...). So I can't really say I'm displease, yet.

MosaicFuneral 812 Nearly a Posting Virtuoso

A list of things to do:
Use code tags, realize you're programming in C++ not BASIC avoid goto , avoid system() whenever possible(it's slow, often unportable, and insecure in some cases), and reformat your code because someplaces look like errors but I can't tell.

MosaicFuneral 812 Nearly a Posting Virtuoso

Take the initial time with time() , use inside a loop take the time again, then use difftime() to check the diffrence between the two; if it's greater than the max time, break the loop.

MosaicFuneral 812 Nearly a Posting Virtuoso

lol im not lucky it works 100% :P

Then what's the point of this thread, anymore?

MosaicFuneral 812 Nearly a Posting Virtuoso

Tell them to use it, and search for the char with '.' .

MosaicFuneral 812 Nearly a Posting Virtuoso

opinion ~ Hackers who create viruses find out how to do so on their own, they usually have nothing better to do. nobody is going to want to help a hacker, especially on open forums.

Actually there is open forums, and groups for virus writers; sometimes it's part of their jobs to be able to write one, and detect one just as well.
Just don't tell coolbuddy, he's on the wrong site. ;) lol

MosaicFuneral 812 Nearly a Posting Virtuoso

I've spotted three right off the bat.

MosaicFuneral 812 Nearly a Posting Virtuoso

Stack vs. heap.

Rashakil Fol commented: No. -1
MosaicFuneral 812 Nearly a Posting Virtuoso

Learn to program first, get GCC, then preferably learn the ASM for your arch.
Simple isn't it?

MosaicFuneral 812 Nearly a Posting Virtuoso

Have you tried abc = f_path; ?

MosaicFuneral 812 Nearly a Posting Virtuoso

I spotted several problems, I believe you're suppose to rewrite the algorithm?

MosaicFuneral 812 Nearly a Posting Virtuoso

34, and 35
Wow, that's twice my age.

MosaicFuneral 812 Nearly a Posting Virtuoso

40, 107, 124... time to start IM'ing again.

MosaicFuneral 812 Nearly a Posting Virtuoso

Well they made oil-can delays with mineral oil, capacitors, rubber, etc. decades ago, and I believe they still work fine.

MosaicFuneral 812 Nearly a Posting Virtuoso

Ask him/her what platform.

MosaicFuneral 812 Nearly a Posting Virtuoso

Because you forgot to declare it outside before hand, such as in a header or where-ever.

MosaicFuneral 812 Nearly a Posting Virtuoso

You're trying to declare functions in mainMenu, not calling them. You don't need to declare the type while calling it.

MosaicFuneral 812 Nearly a Posting Virtuoso

I see what I was doing now, thinking backwards again and confusing the ranges of unsigned and signed.
It's working now, all I have to do is fix up my substitution cipher and I have my first working compression algorithm - I feel happy :)
Thanks!

MosaicFuneral 812 Nearly a Posting Virtuoso

And if I try to use the Print(); funtion, that makes the program close. Any help?

What Print() function?

MosaicFuneral 812 Nearly a Posting Virtuoso

Here's what I'm trying out:

Substitute characters into values with no set left bits;
check if the next position is a vowel(or whatever), turn it into a
value with no right bits set, join the two characters
into a single byte, delete the unused position now.

Here's the code using it, that I'm trying to get to work:

for(int i = 0; i < str.length(); i++)
{  
   /*swaps common letters with stuff in the 32-47 range*/  
   str[i] = Subcipher(str[i]);
         
   if(str[i] < 127)
   {
      /*attempt to bring that common swapped stuff, below 16*/
      str[i] -= 32;
             
      /*check are bounadries!*/
      if(str.length() - 1 != i)
      {
         /*if less/equal than 00001111*/
         if(str[i] < 16)
         {
            /*is it in the alphabet range?*/
            if(str[i + 1] > 96 && str[i + 1] < 118)
            {
               temp = str[i + 1];

               if(temp == 'a') { temp = 128;  join = true; }
               /*...replacing vowels and stuff with no right set bits...*/
               else if(temp == 'u') { temp = 240; join = true; }
                     
               if(join)
               {
                             str[i] |= temp;
                             str.erase(i + 1, 1);
                             join = false;
}   }  }  }  }  }

The problem is that when I attempt to "join" the values, it becomes negative/less than 128, even when I use something like str[i] +=temp; , instead.

Can anyone point out if I'm just being stupid?

BTW, this is a compression algorithm that places vowels into a single byte, using the extended ASCII values to shove them on-top of. The reverse should …

MosaicFuneral 812 Nearly a Posting Virtuoso

Get the input as a string, then check if it's a number or not.

Alex Edwards commented: That was such a perfect answer! =) +5
MosaicFuneral 812 Nearly a Posting Virtuoso

There's good beer, and there's bad beer. For instance, Corona taste like piss and I almost puked having one, but recently I had some German one(don't know the name) and it tasted like a sort of roll my aunt makes, on the holidays, that I love.

MosaicFuneral 812 Nearly a Posting Virtuoso

C++ has its own file methods, look up "C++ file io". You don't need an API.

MosaicFuneral 812 Nearly a Posting Virtuoso

Replace: char *str; with string str; and fix: str.length with str.length()

MosaicFuneral 812 Nearly a Posting Virtuoso

Turkey tail.

Thanks-Giving is the day Lincoln decided that all Americans should get fat.

MosaicFuneral 812 Nearly a Posting Virtuoso

strtok()

MosaicFuneral 812 Nearly a Posting Virtuoso

In the case the you only had to use ASCII values 32-126, you then could share a single byte for two values. You could even use a truth table that points out the positions of a nibble that is really its opposite extended version 128-255.

MosaicFuneral 812 Nearly a Posting Virtuoso

But before you get to wrapped up in code for Christmas lights - you could always get some simple 555 style timers, and few dozen pots, instead.
Look up projects like stop-lights, and guitar pedals that use them.

Might be easier, might be harder, depends on what you prefer.

MosaicFuneral 812 Nearly a Posting Virtuoso

You can always save a decade old machine from the recycle, and use DOS or Win 9x; and then it's easy to do in C.
That way you could also dedicate it to your project[s].

For Inpout32.dll look at Test2.c, here:
http://www.hytherion.com/beattidp/comput/pport.htm
That was rather painless.

Some more links:
http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html

MosaicFuneral 812 Nearly a Posting Virtuoso

What type of input, and what sort of format is it in?

MosaicFuneral 812 Nearly a Posting Virtuoso

Or are they making fun of the "Angry German Kid" video?

MosaicFuneral 812 Nearly a Posting Virtuoso

Main() must return a zero for successful operation.

MosaicFuneral 812 Nearly a Posting Virtuoso

uhhmmm..... No, that shouldn't be the problem, since .o files are compiler produced.

MosaicFuneral 812 Nearly a Posting Virtuoso

ughhhhmmmm...... No, and we're aware that this is the C++ forum, your title doesn't need to point that out.

If this is a homework assignment, then all you have to do is "design one", not create some commercial piece of software.

MosaicFuneral 812 Nearly a Posting Virtuoso

Didn't see the difference(I think most languages are the same anyway).

MosaicFuneral 812 Nearly a Posting Virtuoso

My laptops are to precious!

MosaicFuneral 812 Nearly a Posting Virtuoso

Guitars, basses, violins, string instruments I love! ^_^

Most of my experience is with my electric guitars, with .12 gauges in C-standard, or .9 in B (yes that is hanging) while doing pinch harmonics.

MosaicFuneral 812 Nearly a Posting Virtuoso

I pretty sure there's a better way of drawing the scene with an initial array that you print in a loop, then add the new characters to the array every new state.

MosaicFuneral 812 Nearly a Posting Virtuoso

Don't use macros as types.

typedef unsigned int uint;