gusano79 247 Posting Shark

Show us what you've written so far, and we'll try to help you get it working.

gusano79 247 Posting Shark

Had a quick glance at PortAudio, but I do not see any mixing features listed in the docs (unless overlooked).

You didn't miss anything; that's why I called it DIY... :) Mixing is just about the easiest thing you can do in audio software, though, and a simple crossfade between two audio streams isn't much harder.

I'm not aware of any library that has a complete crossfading solution, but you might get close with SDL_mixer (.NET-ified with C# SDL). IIRC, it does automatic fades on a single channel, so all you'd have to do is tell one to fade in and another to fade out.

You might also find something similar in OpenAL (usable from .NET via OpenTK and probably some other wrappers).

gusano79 247 Posting Shark

I don't know NAudio, but it looks useful at a first glance.

Do you have language/platform restrictions?

If you have the time and inclination for portable DIY, you might look at PortAudio for output (I can speak to this one a bit) and something to decode whatever formats you want (e.g., libsndfile, FFmpeg, mpg123).

ETA: I realize you posted in the C# forum; C interop shouldn't be too hard for the DIY options.

gusano79 247 Posting Shark

Do you have a question for us?

gusano79 247 Posting Shark

What's the error you get?

At first glance, it looks like you may be trying to print the iterator, it, which isn't the same as the object it points to. If that's the case, try printing *it instead.

gusano79 247 Posting Shark

I corrected the mistakes.

Post corrected code please?

I could not replace 25 with the macro as my compiler was giving errors, may be i will try it again

That is strange. What are the errors? This should work; you've got it working here:

UINT8_T array[BUFFER_LENGTH];

If the received messages are say 10 in interrupts the main function transmits only some 4 and stops transmitting

What's the "embedded system" that this runs in? Do you have a virtual device to test with?

gusano79 247 Posting Shark

But for some test cases it is failing

What are the failing test cases? That's important information.

A few things I noticed on a quick inspection:

BUFFER_LENGTH is defined at the top, but you appear to have missed a few places where you should be using it instead of a literal 25.

And in this section:

void interrupt(void)
{
 increment_interrupt++;
 array[increment_interrupt] = data;
 if(increment_interrupt == 25)
    increment_interrupt = 0;
}

What happens when increment_interrupt is 24? Take a closer look at where you're incrementing that variable.

gusano79 247 Posting Shark

Yep, use brackets; they are your friends.

gusano79 247 Posting Shark

Hm. Do you need a GUI? The 'sqlite3' tool that ships with SQLite should work well if you don't mind a text interface.

gusano79 247 Posting Shark

Well, crap; sorry. It says "Encrypted database support" right on the page I linked...

gusano79 247 Posting Shark

Hm, no... I get the green padlock; identity verified by COMODO. It also reports that the certificate's encryption is obsolete (TLS 1.0), but that didn't register as bad enough for the red pen.

gusano79 247 Posting Shark

SQLite2009 Pro Enterprise Manager says it supports encrypted databases; I don't have any personal experience with it.

gusano79 247 Posting Shark

Perhaps, by coincidence, all of their certificates have expired. Does Chrome tell you why it's red-ified "https"?

gusano79 247 Posting Shark

any way to call each function in main so as the program run succefuly as well

main calls Solution, which calls both isEmptyLocation and CheckRow, so those are getting called; I'm not sure what you mean.

By "run successfully" do you mean that Solution(grid) returns true?

why when i put else after true in EmptyLocation function the program didn't run

What does "didn't run" mean here? Post the altered code, and we might be able to help.

gusano79 247 Posting Shark

if there is any way to call this functions in main so as the program runs succesfully plz tell me

What do you mean by "runs successfully" here? Does it not run at all for you? Or are you just looking for a grid that meets the Solution criteria?

gusano79 247 Posting Shark

one more thing plz is it illegal that function return true or false (what i knew is no thing can be performed after return statement )

You can return from anywhere. You're right in that when a function returns, nothing else from the function happens, but in your code that you have return statements are inside if statements. Those will only return if the condition is true; otherwise, it goes on to the rest of the function.

gusano79 247 Posting Shark

"The Loan Ranger" (domino mask)
"Loan Wolf" ('three wolf moon' with a coin instead of the moon)
"I Think We're A Loan Now" (Tiffany)
"The Loan Wars" (a $ith lord)

Mya:) commented: Haha thanks those are some great ideas +2
gusano79 247 Posting Shark

"My struct variable" means key, right?

The compiler message (I get a warning, not an error) is showing up because you declare it and then pass it as a parameter immediately thereafter:

struct KeyInfo key;

GenerateKey(key, KEY_SIZE_128);

But look at the declaration of GenerateKey:

void GenerateKey(KeyInfo keyInfo, int keySize);

You're passing keyInfo by value, which is not what you want, judging by GenerateKey - as written, you'll never get anything back.

Change GenerateKey to take keyInfo as a pointer or a reference, and that should take care of it.

While we're here...

typedef struct KeyInfo
{
    char Key[32];
    int KeySize;
};

Do you expect KeySize to always be 32 or less?

gusano79 247 Posting Shark
  1. Create a command like the one you wrote already.
  2. Add one "Years" parameter.
  3. Add one "Actual_data" parameter (the one that goes with the "Years" parameter).
  4. Execute the command.
  5. Go back to step 1 for the rest of the year/data pairs.
gusano79 247 Posting Shark

Keep track of which number you're looking for in an integer variable, not a string, and use custom numeric formatting to turn that into a file serach spec with the correct number of zeros. Then you can just increment the integer variable and not have to worry about rolling the digits up yourself.

gusano79 247 Posting Shark

Add /text() to your query.

gusano79 247 Posting Shark

We won't do your work for you... have you tried doing this yourself yet? Post some code with a specific question or problem, and we'll help you with that.

gusano79 247 Posting Shark

i try to insert 10 record under the field year

Adding ten parameters to one query (as you coded it) isn't the way to do this.

You'll want to run the query ten times with different parameters.

gusano79 247 Posting Shark

Is there a question here?

gusano79 247 Posting Shark

Try to do this yourself, and post code with specific questions if you have a problem.

gusano79 247 Posting Shark

This article might be a good place to start.

gusano79 247 Posting Shark

Side note - please indent code so it reads better, e.g.:

if (fundt[kq-1][ky-1][2-1] < 450,000,000.00) ktti[ky-1][0] = 1;

First thing I notice is you're indexing the array every single time you check the value... it seems pretty clear you don't expect the value to change, so it will be much easier to read if you index it once and stuff it into a variable, like this:

if (value < 450,000,000.00) ktti[ky-1][0] = 1;
else if ((value >= 450,000,000.00) && (value < 525,000,000.00)) ktti[ky-1][0] = 2;
else if ((value >= 525,000,000.00) && (value < 650,000,000.00)) ktti[ky-1][0] = 3;
...

Also, in the if/else if blocks, you don't need to test the low value in the else ifs; you've already tested for that in the previous line. Eliminate those tests, and it'll look more like this:

if (value < 450,000,000.00) ktti[ky-1][0] = 1;
else if (value < 525,000,000.00) ktti[ky-1][0] = 2;
else if (value < 650,000,000.00) ktti[ky-1][0] = 3;

Make those changes, and see if your problem becomes more apparent.

gusano79 247 Posting Shark

What happens when you enter the same string twice?

gusano79 247 Posting Shark

Alright, have you tried writing any code yet? If so, please post it.

Starting at the beginning: How are you representing matrices?

gusano79 247 Posting Shark

What kind of help do you need? Problems with the algorithm? Locating/using a library?

gusano79 247 Posting Shark

Have you tried to do this yet? Show us what you've written so far, and we can help with specific problems you're having.

gusano79 247 Posting Shark

See the PointToClient method. In this case, Main_Window is the control.

gusano79 247 Posting Shark

Have you tried to do these yet? Is there something specific you're having trouble with?

gusano79 247 Posting Shark

gusano79 I think you just gave away the answer. :) The statement in the original post includes: "Also identify that the given expressions will result in True or False."

I took it to mean "Here are some expressions, do they resolve to a) true, or b) false?" The expressions given don't do either; they won't compile.

Either way, that statement is not well written, and if I've accidentally answered part of the question, I humbly apologize and throw myself upon the mercy of the court...

gusano79 247 Posting Shark

Also, this isn't right:

YEAR.May.ToString()="June"

I'm sure whoever wrote it meant this:

YEAR.May.ToString()=="June"
gusano79 247 Posting Shark

What do you mean by "effective"?

gusano79 247 Posting Shark

What error do you get?

Also, I think you should be getting at least a few warnings out of your compiler, if not errors. Are you?

Things I notice at a first glance:

You have...

int initialize(PTR_VALUE value_array);

... which is equivalent to:

int initialize(int* value_array);

... but you call it like this:

PTR_VALUE pValue;
initialize(*pValue);

*pValue is dereferencing your pointer, so you're passing in the value pointed at by pValue, not the pointer itself.

Try this for starters:

initialize(pValue);
gusano79 247 Posting Shark
gusano79 247 Posting Shark
gusano79 247 Posting Shark
Santanu.Das commented: Great Resource +5
gusano79 247 Posting Shark

If you don't want to replace the existing template, you can create a new project using the old one, then export the result as a template.

gusano79 247 Posting Shark
gusano79 247 Posting Shark

Do you have a question, or are you just showing off the diamond? :)

Have you tried writing any code yet? Please share what you've done so far and we can help with specific problems you're having.

gusano79 247 Posting Shark
gusano79 247 Posting Shark

Sure, it's possible. You'll want to use a library like FFmpeg to get at the video file details.

gusano79 247 Posting Shark

More explicitly, you have an array of ints at the top:

int str[5];

...but an array of pointers to int as a parameter:

int mult(int x, int y, int *str[])

You probably want this instead:

int mult(int x, int y, int *str)
Ctwo commented: Thanks that worked. I've tried alot of combinations with the brackets and stars, somehow didn't end up using the proper one. +0
TalhaMoazSarwar commented: You are good!! +0
gusano79 247 Posting Shark

We're here to help, but we won't do your work for you. Attempt your own solution, and post code here with specific questions if you're having trouble.

gusano79 247 Posting Shark

So,I guess the puzzle lacks of info?

I think so. You could go through it line by line, adding comments that describe what the code does, but I don't think there's enough there to tell you what it's actually intended to do beyond "mush numbers around", especially given the mysterious undefined a and q.

gusano79 247 Posting Shark

The code does not suppose to be compiled.You must solve it without compiling.

Ah, I see.

any other ideas about how to solve this

You should definitely look at all of the variables and verify that they exist. For example, what is q?

Does "solve it" mean figure out what it's supposed to be doing?

gusano79 247 Posting Shark

The size of the node A is 10000 but the first loop goes until 100000.So , this is wrong right?

Correct.

The "dd" has size 5 ,so the second loop must go until 5, hence A[ i ].tx = 5, right?

No; tx could be any int value, and the loop should go from 0 to 4.

Could you please help me with this?

Look at variable names. Do they all exist?

Have you tried actually compiling this? I imagine that would tell you quite a bit.