2,025 Topics

Member Avatar for
Member Avatar for utkarsh009

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 …

0
100
Member Avatar for Linda_3

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.

Member Avatar for rubberman
0
165
Member Avatar for javed.iqbal.3979

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 …

Member Avatar for NathanOliver
0
156
Member Avatar for CreatorZeus

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 …

Member Avatar for CreatorZeus
0
285
Member Avatar for tekagami

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 …

Member Avatar for tekagami
0
269
Member Avatar for Mallika_P

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 = …

0
99
Member Avatar for khelkely

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 …

Member Avatar for Moschops
0
176
Member Avatar for imalysha425

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 …

Member Avatar for richieking
0
260
Member Avatar for H_beginner

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++; …

0
177
Member Avatar for pars99

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 …

Member Avatar for pars99
0
380
Member Avatar for giwrgos.mylwnas.3

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 …

Member Avatar for mustafaneguib
0
196
Member Avatar for H_beginner

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 …

Member Avatar for deceptikon
0
290
Member Avatar for Syafiq_1

#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]; …

Member Avatar for richieking
0
181
Member Avatar for hira.syed

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?

Member Avatar for Ejim Kingsley
0
229
Member Avatar for happygeek

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 …

Member Avatar for mildred2013
0
680
Member Avatar for daino

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 …

Member Avatar for daino
0
196
Member Avatar for happygeek

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 …

Member Avatar for larin83109
0
834
Member Avatar for happygeek

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 …

Member Avatar for Kelly Burby
0
450
Member Avatar for myfootballfacts

[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. …

Member Avatar for LastMitch
0
148
Member Avatar for frlg

# 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 …

Member Avatar for tinstaafl
0
122
Member Avatar for pwolf

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 …

0
232
Member Avatar for Jun Bryan

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]); …

Member Avatar for Ancient Dragon
-1
139
Member Avatar for lifelikewigs123

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 ?

Member Avatar for BigPaw
0
73
Member Avatar for skandh

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 …

Member Avatar for jay.vivarekar
0
2K
Member Avatar for khelkely

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 …

Member Avatar for khelkely
0
242
Member Avatar for dirtydit27

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 …

Member Avatar for tinstaafl
0
255
Member Avatar for Xakzi

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 …

Member Avatar for Ancient Dragon
0
464
Member Avatar for Xakzi

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; …

Member Avatar for kill-it
0
373
Member Avatar for Anima Templi

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 …

Member Avatar for Andy Res
0
312
Member Avatar for gneisler

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; …

Member Avatar for cambalinho
0
143
Member Avatar for san_fran_crisko

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 …

0
80
Member Avatar for Anima Templi

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 …

0
246
Member Avatar for jewelraz

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 …

Member Avatar for jewelraz
0
225
Member Avatar for yussuf_1

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 …

Member Avatar for yussuf_1
0
162
Member Avatar for sonu_1

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); …

Member Avatar for deceptikon
0
333
Member Avatar for jbrock31

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 …

Member Avatar for samone1228
0
615
Member Avatar for HunainHafeez

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 …

Member Avatar for Myronz
0
287
Member Avatar for mgold

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 …

Member Avatar for ChrisPadgham
1
168
Member Avatar for Max_3

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: " …

Member Avatar for Ancient Dragon
0
100
Member Avatar for pwolf

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 …

Member Avatar for aVar++
0
164
Member Avatar for dospy

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 …

Member Avatar for sepp2k
0
393
Member Avatar for QuadRaKore

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 …

Member Avatar for CimmerianX
0
165
Member Avatar for gaurav23

#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 …

Member Avatar for gaurav23
0
225
Member Avatar for devourer17

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]; }

Member Avatar for devourer17
-1
151
Member Avatar for gamingthinktank

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/)

-1
110
Member Avatar for Malymieczek

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 …

Member Avatar for davidkroj
0
200
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
1K
Member Avatar for nchy13

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 …

Member Avatar for nchy13
0
825
Member Avatar for hrnjutt

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

Member Avatar for TomH.PG
0
176
Member Avatar for entropic3105

This is probably a very commonly asked question but is it possible to make an app with python?

Member Avatar for svf_
0
183

The End.