there's restriction in my school....they cannot change borland TC++(they are like monkeys who still want to travel thousands of miles bare-foot while car is invented).
but i use modern compilers and...
Type: Posts; User: Mukul Kumar
there's restriction in my school....they cannot change borland TC++(they are like monkeys who still want to travel thousands of miles bare-foot while car is invented).
but i use modern compilers and...
this is a class member function and the undeclared variables are declared in the class(pvt)
void set(int newprice=-1,char newname[]={"NONAME"},int newqty=-1)
{
if(price!=-1)
price=newprice;
if(strcmp(newname,"NONAME")!=0)
...
sorry....i know that but in Turbo C++ this is not available....nothing is available....also i use modern editors and compilers but i have got a project from school and they have only Turbo...
noooo.... not reading a file twice....i opened file then seekp(0,ios::end) then fetched its pointer position....than tellp()/sizeof(item).....then seekp(0) thats how i got the file size(in terms of...
yessss... i got it ...... i calculated the file size and then divide that with the object size....then i got the number of objects in that file(this thing worked successfully).
okay how is this that i add last object in file with price -ve(obviously price in real life is never -ve) and as my loop detects price -ve i'll add a break statement there.
.........you are right i will find a way to solve this.
@tabstop...i found another way.
i used a static variable to count number of items(initilized with 0...++ if i add.....-- if i delete) in function void shop in class item and used a for loop instead...
@tabstop....how should i check that ?
my project is on an online shop in which you can manage a shop(adding ,deleting ,clearing and modifying items) also you can switch to different shops(all shops are same)
#include<iostream>...
you can try this code...
#include<iostream>
#include<conio.h>
#include<string.h>
using namespace std;
void test()
{
char pass[10],ch;
i want to know that what happens to the variable of base class when you use virtual keyword in dreaded diamond type inheritance
i know the fact that using a virtual keyword in the derived classes(A & B) derived from one base class(Base) removes the ambiguity of the hidden variable of the base class in derived class C (another...
how am i supposed to alter font size of text which appear in output screen?
ok so i think this is our thread's conclusion!
i don't only study computers i go to school and use 5 hrs(8AM - 1PM)
then i relax and have lunch then go to tuitions (maths) then return home at 5(or sometime 5:30PM) then i study rest of the...
@ whiteflags no i don't sleep for 18-20 hrs but for 7 hrs but i m really busy all day but somehow i managed to get 5 minutes in morning(its morning here)
now i will go to sleep and will attend this debate 18-20 hrs later(after daily routine)
"quality" thats what i need in my program and that program i call it flawless!!!
am i right?
@phantomotap
oh k got it
so you are talking about in context on a group of users!!!
but i m talking for a single person
then i agree in (100=(1/∞))% cases the situation is inpossible(and i...
but it is running fine as expected in my pc!!!
the output is
(first it asks the number of overs)
(then name of batsman)
(then display each ball's info and after hitting any key the next ball is...
@manasij7479
1)well that took me into deep thinking
and i think if i write the file-name as "Hello World!!!"
then the one who needs exclamation will use it and the other one will not
2)please...
@neo1
please explain which variable name should i work upon
@manasij7479
with what should i replace getch(),and system("cls")?