56 Topics

Member Avatar for
Member Avatar for cali_dotcom

hi guys, i am currently building a nice website and i was just wondering about the best way to handle errors, database and webservices errors. i was thinking on implementing a mixture of file and db logging. so basically i would log to db all the time and then i …

Member Avatar for pritaeas
0
141
Member Avatar for nathaniscool99

Hello, I am trying to create a Login system, so far it writes users correctly however it doesn't seem to be reading it correctly as it always claims the username/password is incorrect even though when I check the file it is. Could someone help, thanks! class TestLogin { public: char …

Member Avatar for adityatandon
0
167
Member Avatar for uetgate

Plz can anybody help me.i want to store some records in files.i m working on a project.my teacher told me to use tokens.i dun have any idea about that.plz help me thanx in advance

Member Avatar for NormR1
0
110
Member Avatar for JavaLearners123

Hello, I'm in my first year in software development program and need help with the following program. I've spent hours working on it. Any help is greatly appreciated. Write a java program that will open a file, read each of the records from the file, use that data to populate …

Member Avatar for NormR1
0
224
Member Avatar for rickenjus

[b]I want this code to call generic catch block whenever any special character(eg. !,@,#,$,%,&,*, etc) is enetered in numerator or denominator. So what code should I add to this. Any help would be appreciated. Thanks. [/b] [code=c] #include <iostream> using namespace std; int main() { try // generic catch block …

Member Avatar for thines01
0
369
Member Avatar for a.muqeet khan

guys i have a prob i wrote the code for file handling the prob is that the code is working perfectly it also creates the file yet it doesnt store any thing in it and after the del the files it created in my hard disk he wont create any …

Member Avatar for v3ga
0
204
Member Avatar for Kathyrine

I am trying to sort a record according to their respective number like this: [CODE] 5 reyes d r 1 2 3 3 delos d k 4 5 6 9 go t r 7 4 5 1 po w w 2 2 2 2 bun b m 3 3 3 …

Member Avatar for Kathyrine
0
5K
Member Avatar for tygergyrl

I am having trouble in sorting out what i need to do for my first assignment. open a text file, with colon char, 1 student number: 2 student name: 3 5 fields with marks; a algorithms: b mathematics: c java: d C++: e scripting open txt file read open txt …

Member Avatar for solomon_13000
0
235
Member Avatar for itsgrace

I'm creating a web-based mail client from scratch using PHP IMAP library. What I need to implement right now is fetch the error and display it in a fancy way(ex. pop up in the view when error occured). How am i going to do this? This is a sample of …

0
101
Member Avatar for Kleiner

Hi. I am working on improvement of my program. Here is it's code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) drink= wx.Button(panel,label='Drink',pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.drink, drink) self.Bind(wx.EVT_BUTTON, self.food, food) def food(self, event): box = wx.TextEntryDialog(None, 'What is …

Member Avatar for darkmikey
0
685
Member Avatar for Aaronjw

Alright, I am working on this for an assignment and I cannot seem to figure out where I went wrong... My first problem, whenever I input the CC number, the only one it accepts is the last one in my text file... My second problem, when it does accept a …

Member Avatar for Aaronjw
0
134
Member Avatar for MikeTackett

I'm looking for any thoughts on how I am currently doing error handling in my VB.NET programs. Basically I put code in a try/catch, then call an error handling sub passing the exception and a string. The error handling sub gives an error message and writes to a text file: …

Member Avatar for Pgmer
0
151
Member Avatar for ggeoff

Hi I am using the PHP include statement to enable publication of a piece of news. The news is filed as "news.txt" and the user has access to a directory to upload the file or delete old news but no access to the code. If the file does not exist …

Member Avatar for diafol
0
206
Member Avatar for d_panayotov

Hello, I have this assignment in C. The problem is that the functions have to be placed in separate files instead of just one. I haven't done that before. It seems code that would have run if the program was written in one file doesn't work when the functions are …

Member Avatar for d_panayotov
0
166
Member Avatar for efronefron

Hi this is an assignment for my computer science lab. It is weird because if I compile and run with my c compiler from ubuntu gcc4.4, it works perfectly. But if I compile with the university's server (I connect with SSH) it messes up The main purpose of the program …

Member Avatar for efronefron
0
250
Member Avatar for ravi77

hi, i just want the join two strings by checking the second string a non vowel word. suppose, str1="hello"; str2="world"; here i want the neglect the vowel characters in the second string. so, i have used 'while loop' for checking each character in the str2. i used the code something …

Member Avatar for gerard4143
0
118
Member Avatar for toadzky

I have a project where I'm building a motion-sensing controller. It has around a dozen buttons plus the motion sensors. I'm having it wireless transmit the status of the buttons and sensors to the base station. I know interrupts are better than polling, but most people seem to recommend polling …

Member Avatar for lolafuertes
0
145
Member Avatar for Annettest

Hello all: I would be grateful for some basic advice about C++ error handling. From my reading, I understand that the "try, throw, catch" method is preferable to dealing with return values, which can be cryptic. But I'm not sure if I understand exactly how this works. I made a …

Member Avatar for Moschops
0
168
Member Avatar for RobBobSmith

Hello all, I'm having trouble with making a 2d vector array class. Would anyone have time to help with a couple of questions? I think my problem is with overloading (). I notice that this: [CODE]template <typename T> T& Array2d<T>::operator() ( int x, int y) { if( x >= rows …

Member Avatar for RobBobSmith
0
184
Member Avatar for whodoes21

Hello members of Daniweb :) I am a frosh IT student and I need little help with this :) ok so the program is basically a simple cashier program. you enter a code for an item. you buy it compute for the change etc. etc. now my problem is with …

Member Avatar for whodoes21
0
190
Member Avatar for fantasma

Greetings from Portugal I've been stuck for some hours now, since I can't get my n00b code to work as I want. Could someone give me a hint of what to do or what am I doing wrong? I have a file that writes something like this: 1001,Loja1,10 1002,Loja2,20 And …

Member Avatar for fantasma
0
125
Member Avatar for livesinabox

So my Turbo C doesn't handle errors. And in school we used VC++ but I don't have it at home. So can anyone tell if the code snippets for Queue and Dequeuing a Queue and Pop and Push operations in Stack are right? [CODE]\int queue::dequeue() { try { if(front>rear) throw …

Member Avatar for Ancient Dragon
0
104
Member Avatar for livesinabox

So I had posted a thread here called "Exception Handling" asking for help excuting this program. Then I discovered CodePad! ( So if any of the moderators could help me delete that thread it will be great! ) So I cleared up most of my errors. And I got an …

Member Avatar for livesinabox
0
145
Member Avatar for saransh60

[code] #include <iostream> using namespace std; using std::cerr; using std::cout; using std::endl; #include <sstream> #include <string> #include <fstream> using std::ifstream; #include <cstdlib> int main() { ifstream indata; // indata is like cin char num; int sar,ri,sat,ha; sar=0;ri=0;sat=0;ha=0; char s[]=".txt"; for(int some_int=1;some_int<=3;some_int++){ ostringstream buffer; buffer <<some_int; string s1 =buffer.str(); s1+=s; indata.open(s1.c_str()); …

Member Avatar for saransh60
0
190
Member Avatar for hgbreton

Hi. I've got to write some code to get data from an XML document and turn it into C# objects. Problem is that the XML document will not always have the same nodes, since it is produced from a web form that people have filled in varying amounts of (which …

Member Avatar for hgbreton
0
153
Member Avatar for awa

Hi, I want to make a python program which allows to read data from a file starting from a line with a certain keyword, skipping 4 lines, beginning to write the contents to an output file and stopping after n lines. I tried so far an input with the re.search() …

Member Avatar for awa
0
146

The End.