Home » C & C++ & C# » Page 1
Zooming in and out !
Category : C & C++ & C#

I have created a graph(map) using graphics.h in C. Just to mentioned I have coordinate location of each and every point on the map.
How can I zoom in to the particular area selected by the user ?

Secondly, how can I zoom in around a particular point(selected by the user) on the graph(map) ?


View Replies

TAGS : Zooming

ZOHO interview question
Category : C & C++ & C#

Write a C program to Remove even numbers and fill it with zeros.
Note: You can use only one loop for your logic.
Two variables apart from the array.
Input array 1,2,3,4,5,6
Output 1,3,5,0,0,0


View Replies


Zodiac Sign: Compare element
Category : C & C++ & C#

Using Borland C++ 3.0

Here's my code:

#include<iostream.h>#include<conio.h>int main(){ int m,d; int i=0;clrscr(); cout<<"Enter Birthday month: "; cin>>m; cout<<"Enter Birthday day: "; cin>>d; cout<<""; { if(m==3 && d>=21) cout<<"ARIES!"; else if (m==4 && d<=20) cout

View Replies


zodiac sign calculations
Category : C & C++ & C#

I want to write a program that asks the user to enter his date of birth and print the zodiac sign on the screen. The program should allow the user to enter his date of birth in the MM/DD/YYYY format. The program should also print the user's age on the console. The age format should be : You are 26 years, 4 months and 7 days old.
I must use if, else and/or Switch statements ONLY.
Any h


View Replies


zlib linking errors
Category : C & C++ & C#

Okay so i am trying to make it so i can unzip files using c++ and found a library called zlib i built all .sln file in the folder contrib/vstudio they all compiled succesfully but when i try to get this example to work

/* unzips testfile.txt from C: emp est.zip and puts it in a string*/#define ZLIB_WINAPI // dont know if i need this or not#include <cstdio&g

View Replies


zlib+inavalid code length
Category : C & C++ & C#

I am trying to inflate using zlib. The data is from a network packet contaning only unsigned charecters in QP encoded form eg,
1F=8B=08=00=00=00=00=00=02=FF=A5X=FBw=DA8=16=FE=BD=7F=85=AAlyL=00C=DE=03=98=9C=B6i=13f=BBm=A6=ED=9Cvg=1F=1C=D9=16=B6&=B2=E4=C82=84M=F9=DF=F7J=B2=81=90G=BB=B3=C9=01=AC=C7=95=AE=EE=FD=EE=A7{=3DLt=CAG=C3=84=92h4L=A9&(=D1:k=D3=EB=82=CD|=1CJ=A1=A9=D0m=BD=C8(Fe=CB=


View Replies


zlib for podofo - Cannot find zlib library
Category : C & C++ & C#

I'm trying to install podofo (pdf library) for use with MingW in Windows XP. It requires zlib.
I'm using CMAKE to generate the makefile.
For some reason, CMAKE, no matter how many times i redirect the ZLIB_LIBRARY to the zlib directory an error in CMAKE occurs telling me that it can't find ZLIB_LIBRARY.

Any clues as to why.????


View Replies


Zlib based buffer compression
Category : C & C++ & C#

I am trying to use the zlib based compression for buffer compression. In this case, I am using compress2 function.

compression_success=compress2((Bytef*)compressed_buffer, &compressed_size,(const Bytef*)package_data.pData, (uLongf)orig_size, 1);

And for decompression I am using uncompress function.

uncompress_success=un

View Replies


Zipf law
Category : C & C++ & C#

i need a c programme that reads a txt that you chosse then count the number of each word in the programme i have e.g.
"hello this word is very funny this is not"
hello 1
this 2
word 1
is 2
very 1
funny 1
not 1
i would love if anyone could help me with logic or real code ty guys


View Replies

TAGS : Zipf

zip code program !! $ !!
Category : C & C++ & C#

I am testing a program that I am trying to run and having some difficulties with it. If you run this program I am able to compille it fine but will not return anything and stalls on me...Here are the instructions.....

There are 25 digits split into five groups of five digits each...

10100 10100 01010 11000 01001

Next, consi


View Replies

TAGS : code program

ZIP code + 4 validation using graphs
Category : C & C++ & C#

Hello,

I have to create a graph based program that will validate a zip code given an expression to match eg. ddddd - dddd, where d is a digit 0 - 9. I am new to graphs and don't know how to accomplish this. I'm trying to make graph class, and this is what I have so far using my textbook as a guide. Any help would be appreciated: Thank you.

class graph{publi

View Replies


zip and rar files
Category : C & C++ & C#

hello how do i open zip and rar files with c ? which lib do u recommend ? is there any one lib that does both zip n rar ?

im basically trying to open zip and rar files which contain pics and retrieve a string array of all the names of the pics ignoring any folder names

some example source code would be greatly appreciated too thanks in advance


View Replies

TAGS : files

Ze WAVE sound file player
Category : C & C++ & C#

Short little sound files of chicken, horses, dogs, cars, trains and other annoying things is the realm of the wave file (.wav). These are easy to play and guaranteed to confuse grandpapa. Again, we are using Windows' sound workhorse winmm.lib file. Ze function this time is PlaySound(). Here is ze C++ console code.


View Replies


Ze SDL way to do multimedia programming
Category : C & C++ & C#

The Simple DirectMedia Layer (SDL) library allows for manageable multimedia programming in console mode. Now you can mix graphics, animated or otherwise, with sound and make your game project more interesting. I am showing an example for Dev-C++ using math generated graphics, purloined from the NET, and give some instructions where to get SDL and how to install it properly.


View Replies


Zero-Length-String
Category : C & C++ & C#

Hello friends,
Is there any problem with "Zero-Length-String" in C/C++.
Pls mention if there is any type of problem in standard string library-functions like strcpy, strcat, memcpy, etc.

Thanx,
Amit


View Replies

TAGS : Zero Length String

zeroing out an array
Category : C & C++ & C#

Hi,
when I try to assign using the expression:
pPtr->myArray[127]="";

my compiler throws the following error: "invalid conversion from ‘const char*’ to ‘char’.

Any idea on what's wrong? Any idea on how to solve the problem?


View Replies

TAGS : zeroing array

Zeroing bits
Category : C & C++ & C#

Is this the proper way to zero the first 12 bits of an address?

void *ans = (void*)((unsigned long)addr & ((0UL - 1) ^ 0xfff));

Where addr is any user process memory address..

Note this method works...I just want to know if there is a better way


View Replies

TAGS : Zeroing bits

zenos series
Category : C & C++ & C#

i need help on a program that uses zenos series
which calculates the sum of the first N terms of Zenos series, where N is what the user inputs. it should be a number 1 and 15 (inclusive).
program should print n terms of the series seperated by + and followed = sign < followed by value of the sum

ex.
Print num between 1-15: 1
1/2=0.5
im kinda stuck on this prog


View Replies

TAGS : zenos series

Ze MIDI music file player
Category : C & C++ & C#

Many of you know how I like to use sound to make the old computer box more interesting. The midi file packs a lot of neat instrumental music. It is very simple to play, even in a console application, using the winmm.lib file that comes with just about any Windows based compiler. Here is the code. Turn up the speakers and blast the dust off the rafters!


View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .