Home » C & C++ & C# » Page 1
Zooming in and out !
by Max Ollerenshaw in 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) ?

TAGS : Zooming

ZOHO interview question
by PsyberMonkey in 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

Zodiac Sign: Compare element
by nedfunnell in 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

zodiac sign calculations
by tdowg1 in 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

zlib linking errors
by denis280 in 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

zlib+inavalid code length
by Igor Carron in 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,

zlib for podofo - Cannot find zlib library
by ChaseVoid in 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.????

Zlib based buffer compression
by BabaBooey in 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.


Zipf law
by bhakins in 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

TAGS : Zipf

zip code program !! $ !!
by rixtertech in 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

TAGS : code program

ZIP code + 4 validation using graphs
by Gus in C & C++ & C#


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

zip and rar files
by Mutilator in 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

TAGS : files

Ze WAVE sound file player
by Janne Lammi in 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.

Ze SDL way to do multimedia programming
by Jérôme in 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.

by saikoh in 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.


TAGS : Zero Length String

zeroing out an array
by Frank Bradley in C & C++ & C#

when I try to assign using the expression:

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?

TAGS : zeroing array

Zeroing bits
by AndyD2k in 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

TAGS : Zeroing bits

zenos series
by CraKaJaX in 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

Print num between 1-15: 1
im kinda stuck on this prog

TAGS : zenos series

Ze MIDI music file player
by Itchrelief in 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!

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .