199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for COKEDUDE

When you have a function and need to scan for 2 different numbers, should the scanf be in the function or in the main() and why?

Member Avatar for WaltP
0
153
Member Avatar for COKEDUDE

Could someone explain where and when you would use << and >>. I read these 2 articles but don't really understand them. [url]http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B[/url] [url]http://en.wikipedia.org/wiki/Arithmetic_shift[/url]

Member Avatar for gerard4143
0
112
Member Avatar for Siren88

Hi, I'm trying to create a program that reads in a line of text. For some reasons, when I try to run the program, "Your input has ---- non-blank characters." comes up under every words. I want it to just come up once at the end. Any help will be …

Member Avatar for donaldw
0
77
Member Avatar for dusktreader

I have a class hierarchy in which the base class is abstract. Each derived class has a set of private members which describe parameters that control how the class processes data. I want to enforce implementation of a setParams() function across all derived classes. However, because the parameters for each …

Member Avatar for dusktreader
0
271
Member Avatar for lashatt2

I have a question, for example I input something on edit and in that time when I'll click on search button it will show find message, but it shows mysql error :'( why? what I am doing wrong in this code? :( [CODE]HWND edit; char t[MAX_PATH]; char query[MAX_PATH]; GetWindowText(edit,t,MAX_PATH); mysql_query(conn, …

Member Avatar for mitrmkar
0
99
Member Avatar for harry_watson

Hello. OK won't post my messy code just yet, but the Problem; A user [B]can[/B] UPDATE a text field consisting of a headline and a text field. This is posted into a 'text div' below. when logged out, the form and editable fuctions vanish and we have a normal web …

Member Avatar for harry_watson
0
129
Member Avatar for gedas

hey everyone, i just started working with java graphical user interface, i found some source codes from the web and trying to play around with them and i am just unable to understand it fully, the code is well commented and easy to understand it is a simple game called …

Member Avatar for gedas
0
331
Member Avatar for COKEDUDE

With my code below how would I either ignore or remove decimal numbers? I tried typecasting it but that messed up my code. I can't think of any way to make a loop to accept only integers either :(. I don't understand why the scanf is accepting decimal numbers when …

Member Avatar for WaltP
0
200
Member Avatar for WickidGRAFX

I have a dropdown list that is automatically populated with book titles from a database. When I select a item from the dropdown list I want a text area next to it to show the description of the book from the database. Is there a way to do this without …

Member Avatar for WickidGRAFX
0
7K
Member Avatar for sinopa

Does anyone know how I can get this script to show all the entries in atom.xml? It only shows the top four right now. [CODE] google.load("feeds", "1"); function initialize() { var feed = new google.feeds.Feed("http://thedosblogger.blogspot.com/atom.xml"); feed.load(function(result) { if (!result.error) { var container = document.getElementById("feed"); for (var i = 0; i …

0
66
Member Avatar for Kruptein

If I do this code in the command line: [code=python]f = open(fl, 'r') txt = "" for line in f: txt+=line f.close() print txt[/code] I get all the output for the file fl, but if I do: [code=python] def editfl(self, fl): f = open(fl, 'r') txt = "" for line …

Member Avatar for vegaseat
0
238
Member Avatar for Ana_Developer

Hi, I need to have a grid view that will select only few columns from two tables in the database and show them. I have my own data layer implemented, i.e. I have functions that are pulling all the tuples for a satisfied condition and returning them back to me. …

0
79
Member Avatar for bufospro

Hi all, I have to make a function which take as parameter two arrays and merge in one new. For example int array1[][] = {{1 , 2, 3, 4}, {2, 3, 4, 5}}; int array2[][] = {{5 , 6, 7, 8}, {6, 7, 8, 9}}; To take as result arraynew[][] …

Member Avatar for ndeniche
0
132
Member Avatar for nukes88

Hi, i have a problem, i am using a library given by my university to create a game, these are my classes and cpp files, and i am getting this error: error C2512: 'Board' : no appropriate default constructor available, pls help. [code] class Board { protected: GWindow &Gwin; int …

Member Avatar for jonsca
0
170
Member Avatar for aryanmughal

Hi everyone, thanks for help me in past and once again i am here for your help in making a form... well the purpose of the form is to embed videos in a page... the form will consist of... [CODE]Add Video.php [/CODE] [CODE] 1. Video Title 2. Video Description 3. …

Member Avatar for aryanmughal
0
88
Member Avatar for ashokkumarrsp
Member Avatar for cassie_sanford

I am writing a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax is 6.75 of the meal cost. The tip is 15 percent of the total after adding the tax. I have to dislay the meal cost, …

Member Avatar for Fbody
0
413
Member Avatar for pearle

Hi, all. I'm pretty new to C++, and I think I'm getting the hang of it, but there's a problem with a program I'm writing and I just can't seem to fix it. The program's supposed to print a pyramid like this: [ICODE] 1 1 2 1 1 2 4 …

Member Avatar for tetron
0
126
Member Avatar for bhuvan83

hi every1 i m creating a simple ms access project. i created a report ,when the user opens it,it opens a query which askes user to enter name. the user enters the name and the report by that name generates. is there a possibility that when the name is asked …

Member Avatar for Spins
0
718
Member Avatar for Bench

The C++ [i]string[/i] type can be converted to a [b]const[/b] null-terminated string using [icode].c_str()[/icode] for interoperability with legacy C code. However, this poses a potential problem when mixing [i]std::string[/i] with functions designed to mutate a string in-place. a const_cast to get around this issue results in undefined behaviour, since the …

0
966
Member Avatar for drabsch

i need to play a system sound like in a chat program i am using [CODE]Interaction.Beep[/CODE] at the moment but would like to use a different sound. any thing i could not find any thing on the net

Member Avatar for debasisdas
0
3K
Member Avatar for azegurb

I have code written in JavaScript this a form that dynamically adds row (taken from internet and modernized by JavaScript masters) [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head><title>dinamik sheet</title> <script> var i=iteration; function addrow(){ var tbl = document.getElementById('sheet'); var iteration = tbl.rows.length; var row=tbl.insertRow(iteration); var cellLeft = …

Member Avatar for azegurb
0
261
Member Avatar for Addweb

Hi, I have a problem with capturing a number that is generated with a javascript. Let me explain. Its a shopping cart. when people choose to buy a package, there is a total that is visible. This total changes as they choose more or less packages. The total is handled …

Member Avatar for saiprem
0
110
Member Avatar for Venom Rush

Hi all I have a little problem. I have a table that has up 300 rows in it. There is a column where a day and date is inserted. The data looks like this: Monday, 08 March Tuesday, 09 March Wednesday, 10 March Thursday, 11 March Friday, 12 March Right …

Member Avatar for Venom Rush
0
82
Member Avatar for jrosh

I have 2 frames (classes exactly) customer & items... when a button clicked (button 'BUY') on customer frame it navigates to items frame. mean time i made customer frame [B]customer.setEnabled(false) [/B]. i called to item frame by simply creating an object of item class. then , when i coming back …

Member Avatar for saw.pawan
0
613
Member Avatar for blackmagic01021

hello Everyone, I have a problem with type casting. My code is [CODE] zcpr.next_in = FilePtr;[/CODE] next_in is a element of the zcpr structure where its type is and FilePtr is a void type pointer. zcpr is a z_stream type structure and next_in is a Bytef type pointer. This code …

Member Avatar for blackmagic01021
0
125
Member Avatar for RobotFX

Hi! I'm using various CMSs on my server and since I don't know PHP coding and also don't have the time to modify the scripts, I'm searching for an easy way to disable the MySQL errors. I'm talking about the errors that show in browser whenever the database table is …

Member Avatar for nav33n
0
271
Member Avatar for scottlafoy

Hello, My problem is, I am trying to format a number into a certian format. The number is 100072305608500 (this is the exact copy from what was passed in) the format it should be in is 100/07-23-056-08W5/00 I am using [CODE]return (string.Format("{##0/00-00-000-00W0/##}}", Convert.ToInt64(wellLocation)));[/CODE] where the # are optional digits. I …

Member Avatar for DanielGreen
0
131
Member Avatar for Cha0sBG

Hello dear daniweb experts, i was searching over the web and couldn't find any good explenation on how to write properly to a Microsoft SQL server database, so i decided to ask the experts here: How to properly write to the sql database: i used this snipped to read: [CODE]//Start …

Member Avatar for rajabhaskar525
0
169
Member Avatar for mehrdad_A

Hi! I want to Upload and Attach my SQL server 2005 database and my Asp .net site to server please help me. and my connectionstring setting is in web.config tank you.

Member Avatar for mehrdad_A
0
99
Member Avatar for chixm8_49

Hello again. :) I am comparing two nodes (some of my other methods need this method). I am having a problem with this method because it returns false even though both nodes have the same content. What are the problems of this code? Any suggestions? This is the critical part …

Member Avatar for chixm8_49
0
2K
Member Avatar for suncica2222

I need simple timer that should not mess with the threads,and doesnt use Sleep(). I need something like this: [CODE]int main(){ function1 { whule(1) { // do stuff execute evry 30 min function2(); } } return 0; }[/CODE] So function1 and while(1) must not be slowed down and need to …

Member Avatar for suncica2222
0
149
Member Avatar for Behi Jon

Hi, When I want to run a simple project in NetBeans, I receive an error : [quote] ! was unexpected at this time. c:\MinGW\bin\make.exe: *** [.validate-impl] Error 255 BUILD FAILED (exit value 2, total time: 219ms) [/quote] My eclipse is working properly with this MinGW installed on my computer . …

Member Avatar for Behi Jon
0
361
Member Avatar for bobsta

I am trying to render multiple scenes in different window. I am confident that the data is correctly read in from the .txt file and used to initialise the Beam and Segment objects (each Beam object comprises >=1 Segment) However when I attempt to render the scenes the program tries …

0
81
Member Avatar for Benzino

Hey, I'm totally new at database design, and can't for the life of me decide how to design my system. I have categories, which contain sub-categories, and in these sub-categories are items. For example: Wedding Music (category) ---> Bands(sub-category) ---> Awesome Band (item) What I'm trying to do is achieve …

Member Avatar for vee_liang
0
126
Member Avatar for abhi_marichi

When we copy/cut and paste a file a dialog box opens showing the process of coping and pasting files it includes only cancel button, but I want to add "pause" & "resume" button also there.... To do this how should I write a program, on what I should write the …

Member Avatar for abhi_marichi
0
79
Member Avatar for preetg

hi.... i m fetching 3 fields from two different tables that is ecode and edate from emp_company table and scode from emp_shift table.....and after fetching the records i want to change the value of any of the record and want to insert as a new record in emp_shift table.........but my …

Member Avatar for rajabhaskar525
0
95
Member Avatar for ee12csvt

Hi All, I have created a few pages using SQL/PHP and dreamweaver. All works fine, but I need some advice on one puzzle I have. I have two database tables, one holds current numbers that is used to create a table of links. These links then open a new page …

Member Avatar for rajabhaskar525
0
78
Member Avatar for Cruize_Invades

my connection string goes like this... [CODE]Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDB;Data Source=mysource[/CODE] I am using windows authentication, iis 7 and Classic ASP to to connect to SQL express 2008. Using UDL i can connect to my SQL. I can also connect to my SQLExpress when i am running my Database …

Member Avatar for rajendra.parmar
0
191
Member Avatar for qariella

This is what I'm gonna do and I know I havnt got far, but have been searching on google for 5 hours and dont have the solution yet, Your little sister / brother asks you to help her/him with the multiplication, and you decide to write a java application that …

Member Avatar for qariella
0
162
Member Avatar for corputty
Member Avatar for corputty
0
85
Member Avatar for chinnaedu

hi everyone...... am right now working on a project which needs to connect to vlc player from code....does libvlc support this or else if there is any other please let me know...... my another doubt is there any possibility(like any available APIs) that takes video file as an input and …

Member Avatar for chinnaedu
0
115
Member Avatar for itslucky

Dear Friends, I have created a Website in ASP .Net, in which i have use MySQL as database, its just a Contact information and telephone directory database of my friends... Its working Perfect on my Computer, but now i want to put it on the WEB. So please tell me …

Member Avatar for mehrdad_A
0
138
Member Avatar for hosamath

Hi Friends... I use Delphi 2010 application.. To do some calculation I load array of numbers into string grid but some times i have to make some of the rows inactive and do the calculations..Can any body help me out with a code to disable selected rows and do my …

Member Avatar for finalist
0
2K
Member Avatar for rajarajan2017

Whether it's possible to connect any open source isometric engine to smartfox server?

Member Avatar for jwenting
0
57
Member Avatar for preethi_ga2005

hei friends can anyone tell me how to upload excel file to access in vb.....if u give code it will be very much helpfull to me, thankx.

Member Avatar for abu taher
0
275
Member Avatar for emilio

hi i created a new OutlookAddIn project. the project adds a custom toolbar button to outlook. when run the project in debug mode, i see the custom button and everything works. i want to install the poject in another computer, i added a new SetupProject to the solution and targeted …

Member Avatar for emilio
0
157
Member Avatar for rena0514

Hey i have a program thats due sunday and my teacher doesn't really teach that well....so i'm kinda confused and need help. problem: read a file of positive intergers and then print each lin and then print each number in the line (i've done this part) this is where i …

Member Avatar for jwenting
0
148
Member Avatar for tryphy

Basically it is.. I have a Admin page- > In this the admin wil be able to create a user by entering in his particulars: eg: user name, password for the user, telephone and email address.. The user will able to login using this username and password. Once they log …

Member Avatar for saiprem
0
270
Member Avatar for pinsickle

I have << overloaded to write to a file, however I get an error when I try to use it in main. I tried calling the actual write method. Is the SpareTable that operator that is failing. I already checked the .h and .cpp parameters and that all my #includes …

Member Avatar for jonsca
0
163

The End.