2,025 Topics

Member Avatar for
Member Avatar for Daniel BE

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 …

Member Avatar for deceptikon
0
253
Member Avatar for ppotter3

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 …

Member Avatar for magadascar
0
2K
Member Avatar for Vish0203

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

Member Avatar for sbesch
0
157
Member Avatar for Everlight

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 …

Member Avatar for Everlight
0
3K
Member Avatar for manjushcool

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 …

Member Avatar for happygeek
0
4K
Member Avatar for happygeek

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. ![dweb-androidapps](/attachments/small/0/dweb-androidapps.jpg "align-right") According to the latest Freelancer Fast 50 survey, if you are a mobile apps developer than it's pretty good news …

Member Avatar for Galbatorix
0
799
Member Avatar for thammalatha

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

Member Avatar for thammalatha
0
142
Member Avatar for sean.walker.3785

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 …

Member Avatar for sean.walker.3785
0
189
Member Avatar for happygeek

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 …

Member Avatar for Ancient Dragon
1
473
Member Avatar for jorge.carmonajr

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 …

Member Avatar for np complete
0
213
Member Avatar for ritchonson101

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 …

Member Avatar for mLearning
0
165
Member Avatar for anjalirwt

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

Member Avatar for KaeLL
-1
148
Member Avatar for newuser17

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 …

Member Avatar for marcinperlak
0
242
Member Avatar for sbrohee

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 …

Member Avatar for sbrohee
0
2K
Member Avatar for SphirosOkelli

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 …

Member Avatar for SphirosOkelli
0
111
Member Avatar for manuel.sabu

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 …

Member Avatar for NathanOliver
0
167
Member Avatar for slygoth

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 …

Member Avatar for Ancient Dragon
0
132
Member Avatar for DaveyMoyes

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 …

Member Avatar for hakeemtunde
0
321
Member Avatar for PseudoGuard

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 …

Member Avatar for KaeLL
-1
291
Member Avatar for mozala

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

Member Avatar for Ajexa
0
569
Member Avatar for PF2G

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 …

0
57
Member Avatar for persianprez

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 …

Member Avatar for WaltP
0
261
Member Avatar for rotten69

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 …

Member Avatar for chrislim2888
0
284
Member Avatar for android45
Member Avatar for ChrisPadgham
0
95
Member Avatar for android45

I would like to know how do i find selected location coordinates, name & address using google maps service API in IOS.

Member Avatar for ChrisPadgham
0
75
Member Avatar for Zion_Chibi

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 …

Member Avatar for WaltP
0
475
Member Avatar for stevensonnz

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 …

Member Avatar for np complete
0
11K
Member Avatar for dreday92

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 …

Member Avatar for sfuo
0
108
Member Avatar for suganesha

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 …

Member Avatar for np complete
1
7K
Member Avatar for Doogledude123

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 …

Member Avatar for ~s.o.s~
0
253
Member Avatar for sidvb1

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 …

Member Avatar for triumphost
0
1K
Member Avatar for queos

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 …

Member Avatar for Bob
0
136
Member Avatar for green_ning
Member Avatar for green_ning

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

Member Avatar for green_ning
0
272
Member Avatar for jsherm101

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 …

Member Avatar for jsherm101
0
644
Member Avatar for rotten69

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 …

Member Avatar for rotten69
0
121
Member Avatar for ncis_sg1

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 …

Member Avatar for ncis_sg1
2
2K
Member Avatar for jason007thomas

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 …

Member Avatar for rubberman
0
372
Member Avatar for angelineang

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

Member Avatar for Lucaci Andrew
0
206
Member Avatar for phil.sutton

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 …

Member Avatar for np complete
0
168
Member Avatar for Jarreds

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 …

0
66
Member Avatar for memjess

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

Member Avatar for Gaqua77
-1
191
Member Avatar for DeeperShade

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 …

0
87
Member Avatar for <HHH>

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 …

Member Avatar for m4ster_r0shi
0
134
Member Avatar for ImranAzmar

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 …

Member Avatar for iamthwee
0
140
Member Avatar for Dane2259

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

Member Avatar for Dane2259
0
146
Member Avatar for userIT

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 …

Member Avatar for userIT
0
239
Member Avatar for DanielPrasath

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

0
110
Member Avatar for happygeek

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 …

Member Avatar for justinbob
0
769
Member Avatar for triumphost

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 …

Member Avatar for triumphost
0
338

The End.