CBSE Class 11,
Need a good program .
Please suggest website link or send me 1 if you have
Thank-You
It could be on any form , such as airline managemnt , banking , library. Just any one will do . Ty
Need a C++ Project for CBSE 11?
copy the code;
i have tried to make some thing like KBC.
you can edit the code and add more questions.
please send the code if any changes made.
#include%26lt;iostream.h%26gt;
#include%26lt;conio.h%26gt;
#include%26lt;dos.h%26gt;
#include%26lt;graphics.h%26gt;
#include%26lt;process.h%26gt;
/*
Made By Shashank Shastri
Mail Any Comments Or Doubts To sbs.shastri@gmail.com*/
/******************************
* *
* VARIABLES %26amp; FUNCTIONS *
******************************/
void q1();void q2();void q3();void q4();void q5();void q6();void q7();
void border();
void start();
void set1();
void right();
void wrong();
int x1=35;
int x2=355;
int y1=345;
int y2=415;
int i=0;
char ch;
/*********************************
* GRAPHICS *
**********************************/
void graphics()
{
int aq1=VGA,aq2=VGAHI;
initgraph(%26amp;aq1,%26amp;aq2,"c:\\tc\\bgi");
}
/***************************
* BORDER *
***************************/
void border()
{
setcolor(LIGHTBLUE);
line(0,322,640,322);
line(0,325,640,325);
line(0,470,640,470);
line(0,467,640,467);
line(2,325,2,467);
line(5,325,5,467);
line(639,325,639,467);
line(636,325,636,467);
line(0,395,640,395);
line(320,325,320,467);
setcolor(YELLOW);
settextstyle(0,HORIZ_DIR,1);
outtextxy(15,355,"A.");
outtextxy(335,355,"B.");
outtextxy(15,425,"C.");
outtextxy(335,425,"D.");
setcolor(WHITE);
setfillstyle(SOLID_FILL,RED);
fillellipse(480,80,30,20);
fillellipse(480,130,30,20);
fillellipse(480,180,30,20);
outtextxy(465,75,"50:50");
outtextxy(470,125,"POLL");
outtextxy(465,175,"PHONE");
rectangle(10,10,620,260);
rectangle(20,20,610,250);
floodfill(15,15,WHITE);
}
void set1()
{
setcolor(WHITE);
settextstyle(2,HORIZ_DIR,8);
}
void right()
{setcolor(RED);outtextxy(150,200,"RIGH... ANSWER");}
void wrong()
{setcolor(RED);outtextxy(150,200,"WRON... ANSWER");delay(2000);exit(0);}
void start()
{
setcolor(BLUE);
rectangle(10,10,620,460);
rectangle(20,20,610,450);
setfillstyle(SOLID_FILL,RED);
floodfill(15,15,BLUE);
setcolor(YELLOW);
settextstyle(10,HORIZ_DIR,3);
outtextxy(getmaxx()/2-170,getmaxy()/2-... TO KBC");
delay(2000);
}
/*************************************...
* *
* MAIN FUNCTION *
**************************************...
void main()
{
clrscr();
graphics();
start();
clearviewport();
border();
set1();
q1();
q2();
q3();
q4();
q5();
q6();
q7();
}
void q1()
{
outtextxy(15,280,"1.WHO IS FAMOUSLY CALLED BAPU?"); //1 QUESTION
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"GANDHI");
outtextxy(x2,y1,"DADDU");
outtextxy(x1,y2,"NEHRU");
outtextxy(x2,y2,"S.C.BOSE");
ch=getch();
delay(100);
if (ch=='a'||ch=='A')
{right();}
else
{wrong();}
delay(999);
}
void q2()
{ //2.QOUESTION
clearviewport();
border();
set1();
outtextxy(15,280,"2.WHICH BUILDING HAS THE LONGEST CORIDOR ? ");
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"AIRPORT");
outtextxy(x2,y1,"RAILWAY STATION");
outtextxy(x1,y2,"PARLIAMENT");
outtextxy(x2,y2,"RASTRAPATI BHAVAN");
ch=getch();
delay(100);
if(ch=='d'||ch=='D')
{right();}
else
{wrong();}
delay(999);
}
void q3()
{
clearviewport(); //3.QUESTION
border();
set1();
outtextxy(15,280,"3.WHO GAVE THE LAWS OF MOTION ?");
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"I.NEWTON");
outtextxy(x2,y1,"AVAGADRO");
outtextxy(x1,y2,"EINSTIEN");
outtextxy(x2,y2,"C.V.RAMAN");
ch=getch();
delay(100);
if (ch=='a'||ch=='A')
{right();}
else
{wrong();}
delay(999);
}
void q4()
{
clearviewport(); //4.QUESTION
border();
set1();
outtextxy(15,280,"4.PLANET THAT CAN BE SEEN WITH THE NAKED EYE? ");
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"MERCURY");
outtextxy(x2,y1,"VENUS");
outtextxy(x1,y2,"URANAS");
outtextxy(x2,y2,"JUPITER");
ch=getch();
delay(100);
if(ch=='c'||ch=='C')
{right();}
else
{wrong();}
delay(999);
}
void q5()
{
clearviewport(); //5.QUESTION
border();
set1();
outtextxy(15,280,"5.WHICH WEIGHS MORE 1kg IRON OR COTTON ?");
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"IRON");
outtextxy(x2,y1,"COTTON ");
outtextxy(x1,y2,"BOTH ARE EQUAL");
outtextxy(x2,y2,"NOTHING CAN BE SAID");
ch=getch();
delay(100);
if (ch=='C'||ch=='c')
{right();}
else
{wrong();}
delay(999);
}
void q6()
{
clearviewport(); //6.QUESTION
border();
set1();
outtextxy(15,280,"6.WHAT IS THE TENURE OF A GOVERNMENT ?");
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"2 YEARS");
outtextxy(x2,y1,"5 YEARS");
outtextxy(x1,y2,"7 YEARS");
outtextxy(x2,y2,"6 MONTHS");
ch=getch();
delay(100);
if (ch=='B'||ch=='b')
{right();}
else
{wrong();}
delay(999);
}
void q7()
{
clearviewport(); //7.QUESTION
border();
set1();
outtextxy(15,280,"7.HOW MANY WEEKS ARE THERE IN A YEAR ?");
settextstyle(7,HORIZ_DIR,2);
outtextxy(x1,y1,"52");
outtextxy(x2,y1,"50");
outtextxy(x1,y2,"51");
outtextxy(x2,y2,"53");
ch=getch();
delay(100);
if (ch=='A'||ch=='a')
{ right();cout%26lt;%26lt;"Great your Answer was Absolutely correct You have won nothing";}
else
{wrong();}
delay(999);
}
Reply:goto http://www.cplusplus.com/
Reply:so simple download this and rate me as the best answer f u like it
http://www.sourcecodesworld.com/source/L...
flower girl
Monday, May 24, 2010
I need a C++ header file... (DxLib.h)?
Does anyone know where I can get the header "DxLib.h" online? I can't find it in my normal library, but need it to compile some code.
From what I understand, I can download the code with DirectX, but since I have a Mac with XCode, that's not gonna work. If the file isn't freely avaliable online, if anyone has this and can put the code online, I would be eternally grateful (and would give you a best answer?).
If you can't upload online, send a copy to dragonlordals @ yahoo . com (remove spaces). Though, for security reasons, I'm not gonna actually open these files unless there's no alternative.
I need a C++ header file... (DxLib.h)?
search it on:
planet-source-code.com
Reply:donot worry
you can get a better project from an expert
from
http://homework.teamtutorial.com/
From what I understand, I can download the code with DirectX, but since I have a Mac with XCode, that's not gonna work. If the file isn't freely avaliable online, if anyone has this and can put the code online, I would be eternally grateful (and would give you a best answer?).
If you can't upload online, send a copy to dragonlordals @ yahoo . com (remove spaces). Though, for security reasons, I'm not gonna actually open these files unless there's no alternative.
I need a C++ header file... (DxLib.h)?
search it on:
planet-source-code.com
Reply:donot worry
you can get a better project from an expert
from
http://homework.teamtutorial.com/
Need help in c programming?
Assume that you are required to enter a list of strings into a computer, rearrange them
in alphabetical order, and then print out the rearranged list. The strings must be stored
in a two-dimensional character array. Each string will be stored in a separate row
within the array. You may use any suitable string manipulation functions. One of the
library functions that can be used is strcmpi. Output : String 1: Apple
String 2: Ballroom
String 3: Black
String 4: Brown
String 5: Calendar
String 6: Canada
String 7: Island
String 8: News
String 9: Panda
String 10: Rainbow
String 11: END
Need help in c programming?
Use char *str[12];
or char str[12][256];
in alphabetical order, and then print out the rearranged list. The strings must be stored
in a two-dimensional character array. Each string will be stored in a separate row
within the array. You may use any suitable string manipulation functions. One of the
library functions that can be used is strcmpi. Output : String 1: Apple
String 2: Ballroom
String 3: Black
String 4: Brown
String 5: Calendar
String 6: Canada
String 7: Island
String 8: News
String 9: Panda
String 10: Rainbow
String 11: END
Need help in c programming?
Use char *str[12];
or char str[12][256];
C++ for Dummies source code CD missing, where can I get the code?
I just took out the book from my local library but the cd in the back is missing does anyone know where I can get the source code I don't need the compiler I already have one its just I do not fancy typing out all that code.
C++ for Dummies source code CD missing, where can I get the code?
Go to www.course.com and use the code of the book in the back (or somewhere in the covers) to find your book and the corresponding download, most likely the cd is in that website.
By the way, I would still type the code if you are learning C++ if you have that chance, the learning quality will be much higher and solid than if you take the code. Try both methods by yourself and you will see.
C++ for Dummies source code CD missing, where can I get the code?
Go to www.course.com and use the code of the book in the back (or somewhere in the covers) to find your book and the corresponding download, most likely the cd is in that website.
By the way, I would still type the code if you are learning C++ if you have that chance, the learning quality will be much higher and solid than if you take the code. Try both methods by yourself and you will see.
C++ Programming?
what library do you have to include to use the PressEnter function?
C++ Programming?
#include%26lt;stdlib.h%26gt;
Reply:You Use The Computer !!!!!!!!!!!!!!!!!!!!!!!!!!!!
OR YOUR teacher!!!!!!!!!!!!!!!!!!!!!!!!!!
curse of the golden flower
C++ Programming?
#include%26lt;stdlib.h%26gt;
Reply:You Use The Computer !!!!!!!!!!!!!!!!!!!!!!!!!!!!
OR YOUR teacher!!!!!!!!!!!!!!!!!!!!!!!!!!
curse of the golden flower
C++ question?
Can someone explain to me how to use
the is_opened method in fstream library? I have a bit of problem with the syntax. The method would return true if the file can be opened or false if it cannot be. Can you give me an example. Thank you.
C++ question?
bool is_open ( );
Check if a file is open (fstream public member function)
Returns true if the stream is currently associated with a file, and false otherwise.
To determine this, the function calls: rdbuf()-%26gt;is_open()
The stream is associated with a file if either a previous call to member open succeeded or if the object was successfully constructed using the parameterized constructor, and close has not been called since.
Parameters:
none
Return Value:
true if a file is open, i.e. associated to this stream object.
false otherwise.
______________
Example:
// fstream::is_open
#include %26lt;iostream%26gt;
#include %26lt;fstream%26gt;
using namespace std;
int main () {
fstream filestr;
filestr.open ("test.txt");
if (filestr.is_open())
{
cout %26lt;%26lt; "File successfully open";
filestr.close();
}
else
{
cout %26lt;%26lt; "Error opening file";
}
return 0;
}
This example uses is_open to check whether the file has successfully been opened; If so, it writes a sentence to the file, otherwise it prints out an error message.
Basic template member declaration:
( basic_fstream%26lt;charT,traits%26gt; )
bool is_open ();
______________________
Reply:No, the method is for calling by a STREAM (i.e. is the stream pointing at a file, or not.
http://www.cplusplus.com/reference/iostr...
Reply:To tell the truth I doubt you ever need to use it. To check if a filestream is open you just need to do either
if (!myStream)
or you could do:
if( myStream.fail() )
hope this helps...
the is_opened method in fstream library? I have a bit of problem with the syntax. The method would return true if the file can be opened or false if it cannot be. Can you give me an example. Thank you.
C++ question?
bool is_open ( );
Check if a file is open (fstream public member function)
Returns true if the stream is currently associated with a file, and false otherwise.
To determine this, the function calls: rdbuf()-%26gt;is_open()
The stream is associated with a file if either a previous call to member open succeeded or if the object was successfully constructed using the parameterized constructor, and close has not been called since.
Parameters:
none
Return Value:
true if a file is open, i.e. associated to this stream object.
false otherwise.
______________
Example:
// fstream::is_open
#include %26lt;iostream%26gt;
#include %26lt;fstream%26gt;
using namespace std;
int main () {
fstream filestr;
filestr.open ("test.txt");
if (filestr.is_open())
{
cout %26lt;%26lt; "File successfully open";
filestr.close();
}
else
{
cout %26lt;%26lt; "Error opening file";
}
return 0;
}
This example uses is_open to check whether the file has successfully been opened; If so, it writes a sentence to the file, otherwise it prints out an error message.
Basic template member declaration:
( basic_fstream%26lt;charT,traits%26gt; )
bool is_open ();
______________________
Reply:No, the method is for calling by a STREAM (i.e. is the stream pointing at a file, or not.
http://www.cplusplus.com/reference/iostr...
Reply:To tell the truth I doubt you ever need to use it. To check if a filestream is open you just need to do either
if (!myStream)
or you could do:
if( myStream.fail() )
hope this helps...
Help writing C language to write hexadecimal to decimal?
1. Read strings using a function you write called getStr ().
2. Write a function named hextodecimal () that takes in (only) a string parameter representing a positive hexadecimal number and return its decimal equivalent (integer). This function returns -1 if the string provided connotes to a negative number and/or is comprised of invalid characters.
-note: you may not use any library functions in this function- you must write all code necessary to enact the coversion and return the appropriate result.
-this function must accept both upper and lower case versions of the hex character.
-You may want to write an additional function that vets any string for invalid hex character
Help writing C language to write hexadecimal to decimal?
This should do to get you started. The reading strings is simple.
#include %26lt;unistd.h%26gt;
#include %26lt;stdio.h%26gt;
unsigned int hex2dec( char *s )
{
unsigned int v = 0;
char *p;
for( p = s; *p; p++ )
{
if( isdigit( *p ) )
v = (v * 16) + (*p - '0');
else
{
*p = tolower( *p );
if( *p %26gt;= 'a' %26amp;%26amp; *p %26lt;= 'f' )
v = (v * 16) + 10 + (*p - 'a');
else
return -1; /* assume illegal hex char */
}
}
return v;
}
main( int argc, char **argv )
{
printf( "%s converts to %u\n", argv[1], hex2dec( argv[1] ) );
}
2. Write a function named hextodecimal () that takes in (only) a string parameter representing a positive hexadecimal number and return its decimal equivalent (integer). This function returns -1 if the string provided connotes to a negative number and/or is comprised of invalid characters.
-note: you may not use any library functions in this function- you must write all code necessary to enact the coversion and return the appropriate result.
-this function must accept both upper and lower case versions of the hex character.
-You may want to write an additional function that vets any string for invalid hex character
Help writing C language to write hexadecimal to decimal?
This should do to get you started. The reading strings is simple.
#include %26lt;unistd.h%26gt;
#include %26lt;stdio.h%26gt;
unsigned int hex2dec( char *s )
{
unsigned int v = 0;
char *p;
for( p = s; *p; p++ )
{
if( isdigit( *p ) )
v = (v * 16) + (*p - '0');
else
{
*p = tolower( *p );
if( *p %26gt;= 'a' %26amp;%26amp; *p %26lt;= 'f' )
v = (v * 16) + 10 + (*p - 'a');
else
return -1; /* assume illegal hex char */
}
}
return v;
}
main( int argc, char **argv )
{
printf( "%s converts to %u\n", argv[1], hex2dec( argv[1] ) );
}
1). Dev-C++. After Compile & Run, final result doesn't show up, even with: cin.get();?
2). What kind of changes have to be done so this code to become executable:
The Code
All of the following is done in python, with the numpy
library, so don't forget to
from numpy import *
Full source code.
First, we need to transform the matrix of outgoing
links into one of incoming links, while preserving the
number of outgoing links per page and identifying leaf
nodes:
def transposeLinkMatrix(
outGoingLinks = [[]]
):
"""
Transpose the link matrix. The link matrix
contains the pages each page points to.
However, what we want is to know which pages
point to a given page. However, we
will still want to know how many links each
page contains (so store that in a separate array),
as well as which pages contain no links at all
(leaf nodes).
@param outGoingLinks outGoingLinks[ii]
contains the indices of pages pointed to by page ii
@return a tuple of (incomingLinks,
numOutGoingLinks, leafNodes)
"""
nPages = len(outGoingLinks)
# incomingLinks[ii]
1). Dev-C++. After Compile %26amp; Run, final result doesn't show up, even with: cin.get();?
Check to see if there is any error or warning which might be causing that.
Reply:Try to run the exe file (of your compiled program) from command prompt .
start -%26gt; run -%26gt; command
or
start -%26gt; run -%26gt; cmd
cd %26lt;path%26gt; //your program folder
ProgramFile (press enter)
see , whether you get output or error
The Code
All of the following is done in python, with the numpy
library, so don't forget to
from numpy import *
Full source code.
First, we need to transform the matrix of outgoing
links into one of incoming links, while preserving the
number of outgoing links per page and identifying leaf
nodes:
def transposeLinkMatrix(
outGoingLinks = [[]]
):
"""
Transpose the link matrix. The link matrix
contains the pages each page points to.
However, what we want is to know which pages
point to a given page. However, we
will still want to know how many links each
page contains (so store that in a separate array),
as well as which pages contain no links at all
(leaf nodes).
@param outGoingLinks outGoingLinks[ii]
contains the indices of pages pointed to by page ii
@return a tuple of (incomingLinks,
numOutGoingLinks, leafNodes)
"""
nPages = len(outGoingLinks)
# incomingLinks[ii]
1). Dev-C++. After Compile %26amp; Run, final result doesn't show up, even with: cin.get();?
Check to see if there is any error or warning which might be causing that.
Reply:Try to run the exe file (of your compiled program) from command prompt .
start -%26gt; run -%26gt; command
or
start -%26gt; run -%26gt; cmd
cd %26lt;path%26gt; //your program folder
ProgramFile (press enter)
see , whether you get output or error
C++: Changing a number into a string of chars?
How would I change an int variable which is 12345 into a char array with [1,2,3,4,5]?
Tell be the corresponding library please, if there is one.
C++: Changing a number into a string of chars?
Use sprintf.
char buf[32];
sprintf(buf, "%d", nValue);
where nValue is your int variable.
Reply:How about incorporating a straight c fix:
#include %26lt;stdio.h%26gt;
int yo = 12345;
char buf[30];
sprintf(buf, "%d", yo);
or if you use a char to hold initially 12345, then it is already in an array.
for(int i = 0; i %26lt; strlen(buf); i++)
printf("%c\n", buf[i]);
apricot
Tell be the corresponding library please, if there is one.
C++: Changing a number into a string of chars?
Use sprintf.
char buf[32];
sprintf(buf, "%d", nValue);
where nValue is your int variable.
Reply:How about incorporating a straight c fix:
#include %26lt;stdio.h%26gt;
int yo = 12345;
char buf[30];
sprintf(buf, "%d", yo);
or if you use a char to hold initially 12345, then it is already in an array.
for(int i = 0; i %26lt; strlen(buf); i++)
printf("%c\n", buf[i]);
apricot
How I can use graphics.h file on visual c++?
all the time I compile it said this library not exits . anybody can help me what I cant do when It said this library not exits or where is the place where I cant put header file like math.h normally exits but some library not work so where I will put those header file and where I can get that
How I can use graphics.h file on visual c++?
This package does not exist for Visual C++. You'll have to use the standard packages.
How I can use graphics.h file on visual c++?
This package does not exist for Visual C++. You'll have to use the standard packages.
C++ string functions help?
I need to write a library similar to the %26lt;string.h%26gt; header file. I need help writing the following functions. They are included in my own class called "string".
void resize(unsigned int, char);
//resizes character array "Buffer" to number specified by
//first parameter
//fills extra space by the second parameter character
void insert(unsigned int, string %26amp;);
//Inserts a string into "Buffer" a character array.
//First parameter: Place to insert
//Second parameter: string to insert.
void remove(unsigned int, unsigned int);
//removes characters from "Buffer", a character array.
//First parameter : Starting position,
//Second parameter : number of characters to remove.
C++ string functions help?
Okay, this is pretty obviously homework. I won't show any code here, but I'll give you an idea how to implement the functions listed.
First, void resize(unsigned int, char); It has to do these things in approximately this order:
Validate int as greater than zero, or the operation is over before it starts. Next, it needs to allocate memory for a new Buffer with the extra space. Oh-oh. How do you find the buffer if it doesn't return a pointer or a reference to it? Better change the return type to char%26amp; or char *. Okay, now the new characters are written into the new buffer and then the old characters ... Oh-oh, we need to know where that things at too. Better include a reference or pointer to the old buffer as a parameter. So we take the old buffer and move the old characters over into the new buffer behind(?!) the new characters. Rats! Do we need to consider that the new characters should always be prepended or appended or does it change?
void insert(unsigned int, string %26amp; old_string, string %26amp; new_string); maybe?
void remove(unsigned int, unsigned int, string %26amp; buffer);
Unless you MUST follow these exact prototypes for your assignment, you may want to consider these modifications.
I think you can work these last two from the first walk through I gave you. They aren't really any different as to the mechanics of the problem, just what information is needed to operate from. Good luck!
Reply:I can understand that. Next time post partial code with specific questions and I (we?) can take the sting out of those sticky points. Sorry to be a drag. Cheers! Report It
Reply:Sounds like homework to me...
And if you can't do these simple things, you are in trouble!
Do it as a for(i=..;i%26lt;..;i++) loop, and use Buffer[i].
(or review the use of pointers: that's the beauty of C)
void resize(unsigned int, char);
//resizes character array "Buffer" to number specified by
//first parameter
//fills extra space by the second parameter character
void insert(unsigned int, string %26amp;);
//Inserts a string into "Buffer" a character array.
//First parameter: Place to insert
//Second parameter: string to insert.
void remove(unsigned int, unsigned int);
//removes characters from "Buffer", a character array.
//First parameter : Starting position,
//Second parameter : number of characters to remove.
C++ string functions help?
Okay, this is pretty obviously homework. I won't show any code here, but I'll give you an idea how to implement the functions listed.
First, void resize(unsigned int, char); It has to do these things in approximately this order:
Validate int as greater than zero, or the operation is over before it starts. Next, it needs to allocate memory for a new Buffer with the extra space. Oh-oh. How do you find the buffer if it doesn't return a pointer or a reference to it? Better change the return type to char%26amp; or char *. Okay, now the new characters are written into the new buffer and then the old characters ... Oh-oh, we need to know where that things at too. Better include a reference or pointer to the old buffer as a parameter. So we take the old buffer and move the old characters over into the new buffer behind(?!) the new characters. Rats! Do we need to consider that the new characters should always be prepended or appended or does it change?
void insert(unsigned int, string %26amp; old_string, string %26amp; new_string); maybe?
void remove(unsigned int, unsigned int, string %26amp; buffer);
Unless you MUST follow these exact prototypes for your assignment, you may want to consider these modifications.
I think you can work these last two from the first walk through I gave you. They aren't really any different as to the mechanics of the problem, just what information is needed to operate from. Good luck!
Reply:I can understand that. Next time post partial code with specific questions and I (we?) can take the sting out of those sticky points. Sorry to be a drag. Cheers! Report It
Reply:Sounds like homework to me...
And if you can't do these simple things, you are in trouble!
Do it as a for(i=..;i%26lt;..;i++) loop, and use Buffer[i].
(or review the use of pointers: that's the beauty of C)
C.D. Burner?
My CD burner has been working all day, but after I went through and deleted songs that I don't need anymore out of my library, It won't burn. what can be done to fix this?
C.D. Burner?
Don't download Nero unless you want a whole new burning program.
I don't think it's got to do with deleting stuff out of your library, just a concidence(sp?). Maybe the burner cd drive itself?
C.D. Burner?
Don't download Nero unless you want a whole new burning program.
I don't think it's got to do with deleting stuff out of your library, just a concidence(sp?). Maybe the burner cd drive itself?
C program to add two non-negative integers , without using +, -, *, /, ++, --, %?
Assume both the no. be less than 16383,Don’t use any standard library function too (except printf and scanf, for output and input).and without using above mentioned operator anywhere in ur programme
C program to add two non-negative integers , without using +, -, *, /, ++, --, %?
I won't write the code for you, but take a look at what he *DIDN'T* tell you not to use. Conspicuously available are all the bitwise operators. Perhaps a binary manipulation answer? Hmmmm....
song words
C program to add two non-negative integers , without using +, -, *, /, ++, --, %?
I won't write the code for you, but take a look at what he *DIDN'T* tell you not to use. Conspicuously available are all the bitwise operators. Perhaps a binary manipulation answer? Hmmmm....
song words
I am using Borland C++ 5.5 compiler. I wrote the code and I added #include <graphics.h>,an error displayed
The error says" Unable to open %26lt;graphics.h%26gt;". Is there a missed "graphics" library in the Borland compiler?
I installed "graphics.h" from another site, but more errors appear especially in this library:(
What is the solution? any answer will be appreciated..
I am using Borland C++ 5.5 compiler. I wrote the code and I added #include %26lt;graphics.h%26gt;,an error displayed
Try #include "graphics.h" and put graphics.h in the same directory as your code.
I installed "graphics.h" from another site, but more errors appear especially in this library:(
What is the solution? any answer will be appreciated..
I am using Borland C++ 5.5 compiler. I wrote the code and I added #include %26lt;graphics.h%26gt;,an error displayed
Try #include "graphics.h" and put graphics.h in the same directory as your code.
C++ fstream help?
First off im not even sure if the function im looking for is in the fstream library. What I'm trying to do is make a program that fetches lines from a textfile and writes them to a separat string for each line. Lets say i have a 3 line text file that looks like this
hello
whats up
nose
i want the program to write line 1 "hello" to a string, and line 2 to a different string, and so forth, how would i do this?
C++ fstream help?
You would need to declare an array of strings, and read each line into the next index.
Reply:Do you want to store each line for later processing, or do you want to just print out what's in the file, one line at a time?
hello
whats up
nose
i want the program to write line 1 "hello" to a string, and line 2 to a different string, and so forth, how would i do this?
C++ fstream help?
You would need to declare an array of strings, and read each line into the next index.
Reply:Do you want to store each line for later processing, or do you want to just print out what's in the file, one line at a time?
C++ file monitor?
what library and function would i use to detect size change and possibly content change of a running file?
C++ file monitor?
You mention linux compatible. However you are writing for linux only then you can look at "inotify". It's system call and you need a kernel beyond, if I recall, 2.6.12. Check you kernel version and do a web search for inotify if it isn't already in your man pages.
Reply:I think you want FAM, the File Alteration Monitor
http://oss.sgi.com/projects/fam/faq.html...
For windows an OS X you have to use different libraries - there's no cross-platform solution I know of.
C++ file monitor?
You mention linux compatible. However you are writing for linux only then you can look at "inotify". It's system call and you need a kernel beyond, if I recall, 2.6.12. Check you kernel version and do a web search for inotify if it isn't already in your man pages.
Reply:I think you want FAM, the File Alteration Monitor
http://oss.sgi.com/projects/fam/faq.html...
For windows an OS X you have to use different libraries - there's no cross-platform solution I know of.
Ask HELP from programmers who know C?
my question is here :
http://msdn.microsoft.com/library/defaul...
I'm working on a project for making a defragmenter and I can't find un example for how to use the fonctions like : FSCTL_GET_VOLUME_BITMAP , FSCTL_GET_RETRIEVAL_POINTERS , and .....
and I want to know too , is there any library that I must include in my programme or not.
I repeat I comprehence the algorithme but I search a clear example of using these fonctions or a good explaining.
I searched on Internet and I found the examples but there was not clear and comprehensible.
thank you very much.
Ask HELP from programmers who know C?
I can't tell you directly, but I have found Google's "code search" to be very helpful in the past. It basically gives you the ability to search through a lot of open source code, so I imagine there could be a lot of examples out there where these are being used:
http://www.google.com/codesearch?q=FSCTL...
song titles
http://msdn.microsoft.com/library/defaul...
I'm working on a project for making a defragmenter and I can't find un example for how to use the fonctions like : FSCTL_GET_VOLUME_BITMAP , FSCTL_GET_RETRIEVAL_POINTERS , and .....
and I want to know too , is there any library that I must include in my programme or not.
I repeat I comprehence the algorithme but I search a clear example of using these fonctions or a good explaining.
I searched on Internet and I found the examples but there was not clear and comprehensible.
thank you very much.
Ask HELP from programmers who know C?
I can't tell you directly, but I have found Google's "code search" to be very helpful in the past. It basically gives you the ability to search through a lot of open source code, so I imagine there could be a lot of examples out there where these are being used:
http://www.google.com/codesearch?q=FSCTL...
song titles
What does file:/c/documents%20and%20sett... not seem to be a valid podcast url and try again
mean?i got rid of limewire got frostwire heard was better. every things fine except when i drag and drop 2 itunes library i get message i indicated above.whats wrong?limewire was fine in adding songs 2 itune library it says make sure u entered correct url?
What does file:/c/documents%20and%20sett... not seem to be a valid podcast url and try again
Well I've never used frostwire and I try to stay away from itunes, but from what it looks like, there is one of 2 problems:
1) frostwire is telling itunes it is sending it a podcast instead of a file, or else itunes thinks it's getting a podcast for some strange reason. You might be able to fix that with a setting in frostwire.
2) it should be file://c/ etc (two slashes after file:, not one) that is the proper format for a local file URL.
Reply:that url is a location on your own pc, not the internet.
What does file:/c/documents%20and%20sett... not seem to be a valid podcast url and try again
Well I've never used frostwire and I try to stay away from itunes, but from what it looks like, there is one of 2 problems:
1) frostwire is telling itunes it is sending it a podcast instead of a file, or else itunes thinks it's getting a podcast for some strange reason. You might be able to fix that with a setting in frostwire.
2) it should be file://c/ etc (two slashes after file:, not one) that is the proper format for a local file URL.
Reply:that url is a location on your own pc, not the internet.
Looking for a free windows C C++ compiler with IDE that supports DBT_DEVICEQUERYREMOVE?
I'm currently using lcc-win32, but it doesn't seem to support the ability to allow a device to be ejected such as an ipod. more details on DBT_DEVICEQUERYREMOVE here
http://msdn.microsoft.com/library/defaul...
thanks jc
Looking for a free windows C C++ compiler with IDE that supports DBT_DEVICEQUERYREMOVE?
You can't beat Visual Studio for an IDE and the Express version is free.
Reply:Visual C++ Express is just AWSOME. You may download it and register for FREE for a limited time, and the license DOES allow for creating commercial applications, etc.
Check out you don't actually have to use any of the .NET features, and use it just as a great compiler/IDE.
http://msdn.microsoft.com/library/defaul...
thanks jc
Looking for a free windows C C++ compiler with IDE that supports DBT_DEVICEQUERYREMOVE?
You can't beat Visual Studio for an IDE and the Express version is free.
Reply:Visual C++ Express is just AWSOME. You may download it and register for FREE for a limited time, and the license DOES allow for creating commercial applications, etc.
Check out you don't actually have to use any of the .NET features, and use it just as a great compiler/IDE.
V.C Andrews online?
Does anyone on here know where I can find some VC Andrews to read online? i normally would go to the library or buy them but ive cleaned out the book stores here, and ive got fines on my library card i cant begin to pay off until the begining of next year (long story).
ive got bits and pieces from all of the series' and i dont have a single complete set. i would like to be able to finish the sets i have but ive looked and cannot find anyplace that offers there free.
V.C Andrews online?
http://www.amazon.com
I looked at one 'page' full of V.C. Andrews books, used and new paperbacks mainly, and the bulk of them cost $0.01. The most expensive one was $3.00.
If you can't pay the fines on your library card, I guess you know they would let you sit there and read as long as you want, right? I just mention it in case it's an option.
Amazon is all I looked at. Try the link to see, if you like--
Luck
ive got bits and pieces from all of the series' and i dont have a single complete set. i would like to be able to finish the sets i have but ive looked and cannot find anyplace that offers there free.
V.C Andrews online?
http://www.amazon.com
I looked at one 'page' full of V.C. Andrews books, used and new paperbacks mainly, and the bulk of them cost $0.01. The most expensive one was $3.00.
If you can't pay the fines on your library card, I guess you know they would let you sit there and read as long as you want, right? I just mention it in case it's an option.
Amazon is all I looked at. Try the link to see, if you like--
Luck
Subscribe to:
Posts (Atom)