2,025 Topics
![]() | |
Dear friends, I want to create a program that reads 10 numbers from the user and store it in a file namely Numbers.txt. After that I have to read each numbers and if it is a Even number then it should be stored in a file "Even.txt" otherwise it should … | |
Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am … | |
Hi, I'm working on a small project and i'm stuck in a part where I need to replace the existing word in file with a new one. I really have no idea about it.. I'm posting the function block where i'm facing the problem void team::team_list() { string str = … | |
Hello, I have the following code: `#include <iostream.h> void main() { double test=3.46578953218549; cout.setf(ios::dec); cout<<test; }` I understand that iostream.h is outdated and Microsoft Visual Studio has iostream. However, When I remove the ".h" the setf, ios, etc, line 6 has multiple errors. So, my question is: How do I … | |
I am doing my c++ program on hospital data base management. I have users of type admins,hospitals,doctors and patients. Each have their own username and passwords. I used files in order to maintain data base. It does not enter if the user name and passwords does'nt match. But my problem … | |
The world's largest digital jobs survey, using data extracted from more than 230,000 jobs posted to The Freelancer.co.uk site, reveals some interesting hiring trends in the developer sector.  According to the latest Freelancer Fast 50 survey, if you are a mobile apps developer than it's pretty good news … | |
#include <iostream> #include <windows.h> #include <fstream> #include <string> using namespace std; class Entry { public: char name[50]; int id; float sal; bool b; Entry *next; void clear(Entry *head,Entry *tail) { while(head!=NULL) { head=tail->next; delete tail; tail=head; } } }; int main () { ifstream myfile1; ofstream myfile2; char *buff="",temp[256]=""; int … | |
I am making a maze that consists of 48 nodes and the user needs to start in A1 and make there way to H6. The maze is created by reading a file, each line in the file looks something like A1 A2 B1 - - - where A1 is the … | |
Microsoft failed to make tablets work with Windows for PEN Computing twenty years ago, so why are some people saying that it is set to dethrone the iPad later this year? Can Windows 8 really prove to be a commercial threat to iOS? [ATTACH=RIGHT]24152[/ATTACH]I still have my Compaq Concerto from … | |
Okay so i am really new to coding(about 2 weeks) and need help with an assignment.the asignment goes like this "Write a program that will read in a file named pa7-temp.txt (located in the current directory) that contains a set of temperatures, and then prints out how many were in … | |
Hi all...I really need someones help and real fast. I am trying to read a textfile with multiple columns that are each separated by a #. eg: Inventory.txt Nokia Lumia 610#Nokia#Touch#8GB#8#Tango OS#3899.00# Blackberry Curve 9380#Blackberry#Both#1GB#8#Blackberry OS 7#3499.00# Samsung Galaxy S3#Samsung#Touch#32GB#8#Andriod#6999.00# iPhone 4S#Apple#Touch#16GB#8#IOS#7899.00# I am trying to save each bit of … | |
I need urgent help in my project as i am getting exception 13 error & that also at such a crucial time when i have to submit the project day after tomorrow...please help and tell the mistakes and their will be some mistakes. the source code is as follows: #include<fstream.h> … | |
Hi, I am new to mobile app development. I would like to know what is the best way to connect to backend, I have a database in sql server 2005, and a web application in C#.NET. Now I would like to have a mobile app of that application. But fairly … | |
Dear all, I am certainly not an expert in C++ development but after some time, I had some code running and compiling for a bio-informatics tool. As always in Science, I changed my area of research of a while and when I came back to my tool, I had changed … | |
I have been working on a program for class- yes this is homework. I have completed the program, it runs- yay newbie me- but it does not run correctly. I am working with functions, wether referenced or not, and I have passed several values to a function inorder to calculate … | |
case 4: { cout<<"Enter the word you want to delete: "; gets(b); f1.open("anotherf.txt",ios::in); f2.open("tempf.txt",ios::out); while(!f1.eof()) { f1>>a; i++; if(strcmp(a,b)==0) { j=i; } } i=0; while(!f1.eof()) { if(i!=j) { f1>>a; f2<<a; } i++; } f1.close(); f2.close(); f2.open("tempf.txt",ios::in); f2.seekg(0); f1.open("anotherf.txt",ios::out); while(!f2.eof()) { f2>>a; f1<<a; } goto menu; } I am trying to … | |
I have been trying to read back the information from a file that i created. I get all the information i need out of the file but now all i want is to use the display function from the linklist to get that information. I would like it if the … | |
Hi All, I have the following mobile re direct script working on one website, but not another, For some reason I am getting the error - Can not modify headers information - header already sent - etc etc On line 20 Any ideas why this would work for one website … | |
Here is the assignment (Part A). In this part you will write a function to generate random numbers in a specified range. Specicially we want you to write a function named generateRandom that generates a single random number in a range specified by the user. The function takes two integer … | |
I have a problem with search function by name ,could anyone help me? This my code so far!! Thanks in advance. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; class phonebook { public : phonebook() : MobilNumber(0), lastName(""), firstName(""), pcode(0),Email(""),city(""),Street("") { } void setMobilNumber( … | |
Hi, I'm developing a mobile app for the first time, but i'm having trouble with the export of the app so i can test it in a iPhone. I already have the certificate and the provision file, but my certificate has the extionsion .cer and i need to have it … | |
Can someone please finish this off, i need the days to start going on the day specified [code=c] #include <iostream.h> int main() { int month;//asks for current month int days;//asks for day of start int numdays;//number of days in the month int monthstarter=1; //starts day count cout<<"Enter a month (1 … | |
hi there, I just have a few questions about HTML5 and one of its features that is geolocation. My group members and I are thinking to develop a social-networking IOS application that lets you check-in only if you're using a mobile phone. The core idea is that if you're at … | |
what is the iPhone iOS SpringBoard? Please explain in detail. | |
I would like to know how do i find selected location coordinates, name & address using google maps service API in IOS. | |
I have a few sets of username and password in the file but when I try to login, the program could only read the first set of username and password. The rest will be invalid input eventhough I key in correctly. #ifndef USERLOG_H #define USERLOG_H class UserLog { public: char … | |
Basically the program is a database of student enrollments. I cannot get the the search delete/undelete and update functions to work and need help asap. Need to implement a bool field to the delete / undelete Please help #include <cstdlib> #include <iostream> #include <iomanip> #include <conio.h> #include <fstream> using namespace … | |
I was wondering why the compiler keeps telling me #include <iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; const int PatternSize = 8; typedef int OperandArray[PatternSize]; // the major data structure, the BitPattern class class BitPattern { public: // default constructor, sets all bits to zero … | |
hii i am a beginner in c++ and i have got an assignment to do. below is my code and i am unable to execute it so can anyone help me out !! please !!! I am confused on how to replace the room no. in change_room() function and case … | |
Hey People of DaniWeb! I have a question for you! What would you think about having the Mobile Section split up? An Example: OLD: Mobile Development > A bunch of un organized threads. NEW: Mobile Development > iOS > All iOS threads IN HERE > Windows Phone > All Windows … | |
Here I have the classes Logger and Driver. Driver takes the singleton class of Logger, and logs the same statement 10000 times. I want to use this logger, so that it runs in the background and only logs every so often. This will force the program to not use too … | |
please help with this program. I need to calculate the highestSalesand the averageSales using float funtions and displayOutput using void, I wrote the program but I can not get the output I get a lot of confusion. please help. when I'm trying to compile i get the error cpp:5 too … | |
I'm experiencing a problem with regards to this. I need somebody's help. :( | |
Hello guys. I am a starter in Java Programming. And I wanted to understand and manipulate it effectively from now on. I also want to start developing applications in iPad or iPhone but I am a Windows user, and I guess I need a Mac in able to do that. … | |
Over the last few hours of the day GoDaddy's (and GoDaddy managed) websites have been [on the fritz](http://blogs.wsj.com/digits/2012/09/10/godaddy-has-glitches-anonymous-claims-responsibility/) as webmasters and visitors alike are unable to access millions of websites held within GoDaddy's datacenters in an apparent Denial of Service [(DDOS)](http://en.wikipedia.org/wiki/Denial-of-service_attack) attack. GoDaddy is currently scrambling to restore service to … | |
Hey everyone, I'm developing a web app for iPhones and hopefully, it can be rendered using an android device as well. I'm using HTML5, jQuery for mobile and cakePHP. Is there a way that I can convert my code to some other code that will produce a hybrid app? I'm … | |
I am trying to write a code that is giving me a great deal of problems. **The program challenge is as follows:** Write a program that asks the user for the name of a file. The program shold display the contents of the file on the screen. If the file's … | |
Hello I’m new to QT and C++, my primary language is JAVA (and I’m still a novice at that) But I want to learn how to use QT and C++ combined and create some awesome GUI programs I have a Bioinformatics program that reads a DNA sequence from a text … | |
I doesn't know why my program after enter main menu and want to call any other function will stoppped working,this is the question Write a program that is able to help a school teacher to input, manipulate and record marks of students for 8 subjects. These subjects are English, Physics, … | |
Ok, I am confused by this. I am doing a school project on i/o with an address database. The professor gave us a template to work with, which saved me a few minutes. The problem is I can enter information to the txt file fine. When I attempted to read … | |
Write a program that calculates a students year marks for all her subjects. The program must read the subject code, the assignment marks for two assignments and the percentage that each assignment contributes towards the year mark, for each subject the student is registered for. Create an input file called … | |
I can use my iPad2 to send SMS messages, but i cant receive them. Any suggestions? And i just downloaded IOS 5 system from Apple. And it can work with my iPhone4. But it cant work with my iPad2. What is the problem? SNIP | |
Yes, me again, here to prove i'm an idiot. :) Ok, all previous problems solved (wrapping win32, and getting winsock to actually do ANYTHING) My problem now is that recv is very random. Sometimes it'll recieve data, sometimes it'll return -1. WSAGetLastError (still not entirely certain I should be using … | |
i want to read each line of my file in seprated string what i have achieved till now is i can read the whole lines in one string and now i want to read each line in a sprated string any help; #include <cstdlib> #include <iostream> #include <fstream> using namespace … | |
Hello i'm a 1st year CompScience student , i have this project that need me to do a similar things to a game called Triple Town . I'm about 50% done and my problem is the matching part. It is similar to triple town games i'm sure you heard of … ![]() | |
I have been trying to follow along with the tutorial on Apple's developer website: https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/Introduction/Introduction.html but cannot figure out why my project will not run. I have one warning: Incomplete implementation in the BirdSightingDataController.m file: #import "BirdSightingDataController.h" #import "BirdSighting.h" @interface BirdSightingDataController () - (void)initializeDefaultDataList; @end @implementation BirdSightingDataController @synthesize masterBirdSightingList = … | |
I have this code that supposed to display the values from an array to a text file #include <iostream> #include <cstdlib> #include <fstream> #include <vector> using namespace std; int array[7][4]; fstream file2; template< typename T > void display( const vector< vector<T> >& matrix ) { for(int i = 0; i … | |
In my table view cell i need to display the contents of my array elements in a single cell and if i insert any new contents the previous contents are not to be overwritten.The previous content and my new content should be displayed in order.Here is my code #import "Carttable.h" … | |
The results from what is claimed to be the most comprehensive global online job trends survey, the 'Fast 50' Q2 2012 report took data from 190,000 online job postings as an indicator of the global online employment economy. Some of the findings are surprising to say the least, such as … | |
How can I get SetConsoleTextAttribute to work with my Console? I tried everything. First I redirected the cout and cin buffers so that my console can have input and output. But now it doesn't have Colour :S I used: HANDLE OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(OutputHandle, 10); I don't think GetStdHandle is … |
The End.