2,025 Topics
![]() | |
If i uncomment the lines in between, all the records get deleted. Why?? void Hatao() { int no; system("cls"); cout<<"\n\n\n\tDelete Record"; top:cout<<"\n\nPlease Enter The roll number of student You Want To Delete: "; cin>>no; fp.open("student.dat",ios::in|ios::ate); fp.seekp(0,ios::beg); fp.seekg(0,ios::beg); fstream fp2; fp2.open("Temp.dat",ios::out); //int flag=0; //if (st.retrollno()==no) //flag=1; //if (flag==0) //{ // cout<<"\nRecord … | |
Recently updated IOS. Don't know if that's the issue. My phone had randomly started flickering really badly. The whole screen shakes horizontally or on the home screen sometimes the way it flickers is from the second row of apps and below...help! It's doing my eyes and head in. | |
Hi all,, A module of my Bank Management System which should display the user account details after successfuly entering his/her details calls to a function: void display_acc(int n) { account acc; int flag=0; ifstream inFile; inFile.open("account.txt",ios::in); if(!inFile) { cout<<"File could not be open !! Press any Key..."; return; } cout<<"\nBALANCE … | |
I'm having a simple i/o with file problem. I have the name coming from a string but it just wont open at all. Incoming code: string notename[] = {"NULL","empty"}; ifstream readnote; readnote.open(notename[x].c_str(),ios::in|ios::out); if(!readnote) { cout << "Read Error"; } its prolly something small but i keep getting the error, can … | |
Sometimes a css file wont load because of a slow connection or a conflict between scripts (or just any other reason). This specially problematic on mobile websites (looking at you IOS) where many standards are applied. So this little script will add a link tag to the head tag and … | |
Hi., I'm using cordova2.9.0 in my ios app, from CDVReachability.m file, i tried to check internet status with url for my ipad simulator as well device. But it shows status wrongly [My network is connected through sonic firewall login]. Any help? CDVReachability *isReachable = [CDVReachability reachabilityWithAddress:@"http://www.google.com/"]; // CDVReachability *isReachable = … | |
So, this is my coding, but when i insert data, i cannot update view / print input that i had inserted. And also, i had connect the database with NOTEPAD, but it does not appear. So, what is the problem? # include <iostream.h> # include <fstream.h> # include <iomanip.h> struct … | |
Hello everyone! I'm fairly new to C++ and I have hit a serious road block....I cannot for the life of me get my program to fill a structure from a file and print the array correctly. I don't know what to do :( It prints a series of numbers because … | |
I am trying to plot a graph in matlab using c++. But the matlab is only giving me an empty graph. void portfolio::viewGraph() { double value[20]; //store portfolio value double time[20]; //store time int i=0,j=1; double cash,p; ifstream in_file("transactionhistory.txt", ios::in); string c; while(in_file>>cash>>p>>c>>c>>c>>c>>c) { value[i]=(p+cash); cout<<p<<endl; time[i]=j; cout<<time[i]<<endl; i++; j++; … | |
I was wondering how to access the /private/var/mobile/library folder(s) on my iMac. This is (obviously) for my iPhone. I'm currently using an iPhone 5 on iOS 7. I've been trying to use iExplorer but if I can't I'll try it on my laptop, too. Thank you in advance. P.S: I … | |
I am breaking my head for last 2 weeks trying to create an app that will be iOS and Android using HTML5 and jQuery Mobile. I need my app to contact a server to get data. I was trying Ajax but it can not be done because of cross domain … | |
I m reading data from a text file and then printing it. I am not sure what I am doing wrong but the program prints the last line that it reads twice. void bank_account::viewHistory() { ifstream in_file("bank_transaction_history.txt" , ios::in); if(!in_file) { cout<<"File error \n"; } cout<<"Event"<<setw(15)<<"Amount"<<setw(15)<<"Date"<<setw(20)<<"Current Balance"<<endl; string eve,dat; double … | |
#include<fstream.h> #include<string.h> #include<iostream.h> #include<conio.h> #include<stdio.h> class student{ protected: char name[40]; char roll[10]; char dep[5]; char batch[5]; void get(){ cout<<"\n enter the name"; cin>>name; cout<<"\n enter the roll"; cin>>roll; cout<<"\n enter the deperment"; cin>>dep; cout<<"\n enter the batch"; cin>>batch; } }; class cgpa:protected student{ private: char subname[10][20]; char subcode[10][20]; float gpa[10]; … | |
I am buying new phone for myself. but i am confuse . Lumia got good sepecifications , its graphics, camera and speakers. on other hand Ios is best. and SIII is no.1. what to buy? | |
Tumblr, the hugely popular blogging service which was bought by Yahoo! last month, has advised mobile users to change their passwords, and change them immediately. In a posting to the Tumblr staff blog, a spokesperson states "We have just released a very important security update for our iPhone and iPad … | |
As naive as this is going to sound, I have to ask it. I have a stream compressed in LZW encoding. I can decompress a stream provided it is in a numerical format. The below I have extracted from a pdf file stream compressed in LZW. I'm assuming the below … | |
If you have an AirPrint-enabled printer, the act of wireless printing from your iPhone or iPad is pretty much a no-brainer. If you don't, then there are a number of apps that use a laptop as a print server. While these, on the whole, work OK they do require that … | |
Apple has, of late at least, oft been accused of following rather than leading when it comes to smartphone innovation. Perhaps the launch of the iPhone 5s with the somewhat controversial fingerprint scanner has changed that, just a little bit. HTC, the powerhouse in the Android smartphone hardware market, has … | |
[MyFootballFacts.com](http://www.myfootballfacts.com/index.html) has recently lauched an Android App. The Android reads data from excel files and transforms to data to tables on our App. The table has a feaature whereby the first column and row are frozen when the tables are large. We would like to do the same for IOS. … ![]() | |
# include <iostream> # include <fstream> # include <string> using namespace std; struct primera # include <iostream> # include <fstream> # include <string> using namespace std; struct primera { int ID; char nombre [50]; char fecha_de_alta [10]; char fecha_de_caducidad [10]; int cantidad_en_existencia; char marca_presentacion [50]; float costo_para_mi; float bonificacion; float … | |
I am planning a service that I would like to eventually grow into a multi-platform service, however, my original plan of creating a hybrid app may not be the best decision. Is it better to come up with one app design and recreate it on each platform, or design a … | |
I just need a simple program fragment that saves sentences/phrases and can load as exactly as the input. Do not rely on this code as I had made several failed attempted solutions. This is only what I remember: #include<fstream.h> #include<iostream.h> #include<string.h> #include<conio.h> main() {int x=0;char strings[5][50]; ofstream save("data.txt",ios::out) while(x<5) {gets(strings[x]); … | |
I bought an apple mobile phone few days ago. At first , its with System IOS 6.5, but I change it to iOS 7.0 by accident, not my phone cannot work well , how to solve the problems ? | |
![]() | how to display 256 color bmp files in trubo c++ 3.0??? i ve already displayed a 16 color bitmap in turbo c++... i came across this code but it doesnt work...pls tell me whts the error... [code] #include<iostream.h> #include<graphics.h> #include<fstream.h> #include<conio.h> struct A{ char type[2]; /* Magic identifier */ unsigned … |
This is just an exercise. And i need to complete this. This is the question : Write a program in C++ that calculates the amount to be paid to an employee based on the hours worked and rate per hour. A user will enter hours worked and rate per hour … | |
Hello, I'm working on a homework problem for class. I have a text tab delimited file and each row has a orginal base, target base, and a number that is represented in the orginal base. The program should read this file and be able to convert the number from the … | |
Hello peeps! I need some help to decrypt my text file and make it able to read in my program.. What I have programmed so far is to read the encrypted file, create a new file, decrypt it and read the newly created file.. I need to decrypt the encrypted … | |
Hello! I am working on a small decryption / encryption program using Win32 Console Application c++ nothing big, here is my code: #include "stdafx.h" #include <iostream> #include <fstream> #include <conio.h> #include <stdio.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char name[100],target[100],ch,mod; //Declare Variables unsigned char apostrophe; int num[100],i,option; … | |
Hello Daniweb, I will soon reach the point where I'm ready to move on my journey of programming. One thing that has always interested me is the mobile world. I would like to develop things for the mobile world. What I want to ask/know is tips from people already developing … | |
The code on lines 44-53 is suppose to check see if the user enter a negative and produce a message, however, when the use enters a positive code produces the display again. #include<iostream> #include<cctype> using namespace std; int main() { char carType; int A, B, C; char keepgoing; char condition; … | |
![]() | Hi, I'm setting up a test bed for some networking equipment and one of the things I'll need is a switch that can do PBR. Essentially, the switch will need to accept packets from multiple IP addresses (probably several hundred) on a 10GB link and then, using PBR route traffic … |
Hello, I'm really interested in developing apps for iOS. I do already have everything setup and I'm ready to start programming. What I'm curious about is; Is it worth buying the apple developer account already? I don't have anything ready to release yet, but I have read that they also … | |
Hello, I have brought Samsung Duos mobile. This is my first android phone. I have some cousins living abroad and I want to call them from my mobile. My mobile carriers charges a lot for international calls. So, I was checking cheap international calling and found chattimeapps.com I never installed … | |
I can't see but to notice the increase of the quality of the ios apps and AAA games which are either made by big companies or small "indie like" offices, I m a noob so please ...and thank you : my first question is what is the diffrence between ios … | |
![]() | hi i have problem , i want to modify a file without copy to another file so any one can give how to do it ? I tried following method to modify a given location or pointer in file but did not work . ofstream outfile; outfile.open ("test.txt"); outfile.seekp (3,ios::beg); … |
Hello everyone. I am trying to work through a programming challenge in my c++ book. I have gotten it to work, but i kind of cheated by looking at the file. I am going to past the entire code so i can be compiled, but the main problem i am … | |
after formatting my iphone 3gs, (4.1 ios), would it have a maintained IOS or i vl need to install it again, simply i mean that if i format my iphone then ios 4.1 would need to be installed again or any oyher issues would arise ? please guide me about … | |
I was reading through an Objective-C book at the same time I was reading a "Good Coding Preactices"/Design book and I noticed how badly designed (I Think) Cocoa is. My biggest issue is it's seemingly unpolymorphic design. For instants, like many other objects, the UIButton class's style is defined using … | |
Im trying to figure out how to read a file that is entered into the command line. I tried using #include <iostream> #include <fstream> #include <cstdlib> #include <string> int main(int argc, char *argv[]) { std::string a; int b, c, d; std::cout << "please enter the name of the file: " … | |
I am in the planning stage of a project that involves a website, desktop and mobile apps. To save time and get on as many platforms as possible, I would like to develop the apps as hybrids, with as little native coding as possible - preferably none at all. So … | |
the basic idea is that i have a config file where i need to take entries in different formats(the key is always a string and the value could be any type: int, float, string etc) from and the file has the following style: firstentry 1.5 secondentry 35 thirdentry somestring and … | |
I am looking to deploy iPads into our corporate environment. I spent quite some time reading up on iOS 6 features on Apple's website, where the articles discuss "configuration files" which can be used to secure the iPads and create security rules like forcing a password for logon and also … | |
#include<fstream.h> #include<conio.h> #include<string.h> #include<stdio.h> void main() { clrscr(); ofstream fout("a"); fout<<5<<"\n"<<3<<"\n"<<2<<"\n"<<4<<"\n"<<1; fout.close(); ifstream fin("a"); int i,j,k,l=0,m,n,o; while(fin) { fin>>i; l++; } l--; fin.close(); fstream fin1("a",ios::ate,ios::in); fin1.seekg(0); for(i=0;i<l-1;i++) { for(j=0;j<l-i-1;j++) { o=fin.tellg(); fin1>>m; fin1>>n; if(m>n) { fin1.seekg(o); fin1<<n; fin1<<m; fin1.seekg(o+1); } } } } //file sorting is not working if anyone … | |
fstream f; char ch; int i=0; string word,word2[200]; f.open("op3_sort.txt",ios::in|ios::out); if(!f) cout<<"\nUnable To Open File!\n"; else { cout<<"\nLet's View D Content!\n"; while(!f.eof()) { getline(f,word,'\t'); word2[i]=word; i++; cout<<word2[i]; } } cout<<"\nShowing Data Now\n"; for(int a=0; a<i; a++) { cout<<endl; cout<<word2[a]; } | |
Box2D physics engine works according to the rules of physics. You have to work a little bit to set it up to work with platforms like HTML5 Canvas, iOS or Flash. Read the details [Box2d coordinate system for HTML5 Canvas](http://www.gamingthinktank.com/2013/08/12/box2d-coordinate-system-for-html5-canvas/) | |
Hi All, So i have recently started developing an application in XCode for a project that I am working on. The application uses php scripts to connect to a mysql server. The problem I am facing is that when I coded textfields to send the information to the server when … | |
Before people start flaming me for the title I want to make it perfectly clear that MOST members are very helpful and somewhat polite. They have a lot of knowledge and help out when they can. My problem is with the posting system. I am registered to nearly 50 forums … | |
This is the code which put an extra line to the std::string array. I am here trying to print last k lines of file. Any help is appreciated. #include <iostream> #include <fstream> #include <string> using namespace std; //file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit); void print_last(unsigned k, string file_name) { string *data=new … | |
I just want to know can my own design server communicate directly with mobile appication (Android ,IOS ,BB). I need to send some information in XML form to the app. Regards | |
This is probably a very commonly asked question but is it possible to make an app with python? |
The End.