thankyou all for the quick responses !!!
I now understand the problem which Parul just explained.
User Profile
Collapse
-
Thankyou for your prompt reply. But userIN happens to be a char variable and it isn't an array....Leave a comment:
-
Difference between %c and %s in scanf()
Hello
I'am a returning coder to C programming language and would appreciate if you could help me understand why does my while loop behave normally in the following code:
...Code:int loop = 1; char userIN; while(loop) { printf("\nIf you want to retrieve tuples prompt y/n: \t"); //items_read = scanf("%s",&userIN); scanf("%s",&userIN); if(userIN=='n'||userIN=='N') -
composing musical notes from a text file
Hi
I'am learning about midi files and the way they are played using DirectMusic in VC++.
I have come across few tutorials that guide you to play music, but somehow I haven't figured out how to compose music.
How do I compose musical notes from a text file?
Kindly help. -
Using DirectShow in VC++ using /clr
Hi,
I want to build an application that will capture video frames. Kindly advice me where to start in /clr. -
Why would'nt the following code work?
...Code:System::Drawing::Color col; Array^ arr = gcnew System::Array::CreateInstance(col.GetType(),bmp1->Width);
Leave a comment:
-
Array of a Color type
Hi,
how do I create an array of System::Drawing ::Color type such that its dimension is equal to the image width?
Please help -
convert binary file to hexadecimal... Please help
Hi,
I have to convert to a hexadecimal file. I'am new to file handling so kindly review my code and tell me why does it crash!
...Code://As inputs, I use: // hexdump_c.cpp // gif.txt /* after this, the error report screen from Microsoft comes up, saying the program has to close */ // Press any key to continue . . #include <stdio.h> int main(int argc,char* argv[]) { FILE* fileHandle; -
Impleament cross dissolve transition between two images
Hi I want to implement cross dissolve transition between two images. how do I implement it in VC++ windows forms??
Kindly help. -
file copying data from .txt to .dat
Hi I need to copy the first 3 lines of a "example.tx t" file to a "sample.dat " file, how do I do it? i tried getline but that duz'nt give me the entire header of the file. the first three lines of the file are:
P6
# Created by IrfanView
550 300
255
I can use getline(str,80, '\n') , but then how to regresh str, to use getline 2 more times for the next 2 lines.
Please hel... -
Multimedia in C++
Hi, is it pssible to perform simple multimedia operations such as editing a bitmap or implementing a JPEG compression algorithm? If so what should be the approach of a newbie :-)
No activity results to display
Show More
Leave a comment: