64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Barnifericus

Whenever I try to compile my code for this function my compiler keeps throwing projectB.c:31:15: error: conflicting types for ‘returnDegree’ projectB.c:19:17: note: previous implicit declaration of ‘returnDegree’ was here [CODE] #include <stdio.h> #include<math.h> int main(){ double sanantonioLat; sanantonioLat = returnDegree(29.0,25.0,51.0); printf("blah %f\n" , sanantonioLat); return 0; } static double returnDegree(double …

Member Avatar for Barnifericus
0
140
Member Avatar for rscoville

I am trying to read through a table and for each row execute a few lines of code. (The lines of code are taking an data type integer column which contains a time HHMM and a data type datetime column which contains a date. The code combines the time into …

Member Avatar for rscoville
0
151
Member Avatar for agaba

Create a script named *just_lee_trg.sql* that contains the PL/SQL code to create a trigger named *books_qty_on_hand_trg*. The trigger should be set up to fire whenever the quantity on hand for a book has been updated. When the quantity on hand becomes zero, it should call the *insert_reorder* procedure and pass …

Member Avatar for hfx642
0
172
Member Avatar for rEhSi_123

Hi Guys need a bit of help! Basically I have a parent table called users which stores all the user info with a prime key field called ID. Now in the child table which has a seperate foreign key associated with the ID field in the parent table. What I …

Member Avatar for adam_k
0
2K
Member Avatar for nsyncpilu

Hy again , I have another problem now , I have an application with a jTabel , you can double click a cell and you can change the value that is inside it , after you changed the value inside the cell and hit enter the value i enterd remains …

Member Avatar for nsyncpilu
0
1K
Member Avatar for xxlt3xx

Hi, I'm stuck... I'm writing a program that creates a data file then populates the file with 500 random integers both positive and negative. The problem I'm having is reading the integers from the file and storing them into three arrays for processing neg[],posEven[],and posOdd[]. I really just need a …

Member Avatar for xxlt3xx
0
172
Member Avatar for MareoRaft

What happens when you set an int or double value to less than the minimum? I need my program to recognize when a number is smaller then the minimum, and then set the value to equal the minimum instead. This behavior is not the default... [CODE]#include <iostream> using namespace std; …

Member Avatar for mrnutty
0
136
Member Avatar for Pro2000

Hello everybody.. I've been thinking what the best programming language to be used with the internet is.. In addition I want not to use ASP 'cause my web server works on Linux. Is C# better than ASP.net to download files automatically from the internet, update and retrieve information from databases …

Member Avatar for Pro2000
0
308
Member Avatar for soapyillusion

Hey everyone I just started using a new hosting service called 1and1 all the normal pages are going fine that use the simple html extension. However one of my php pages that uses the session_start() and header() functions isnt working correctly and I get an error. Now I know an …

Member Avatar for soapyillusion
0
128
Member Avatar for libathos

hi, i want to compile a file through the makefile command.Once i type make example it says that it is up to date but when i try to run it (correct me if I'm wrong ./example) it says that permission was denied..does anybody have any clue about that?

Member Avatar for libathos
0
127
Member Avatar for ghosh22

Hi I am trying to build a MySQL database. I have made a table where some fields are VARCHAR and others are INT. All of them are null. One of the columns I made is Vote which is INT(5). Now I am trying to import data from a text file. …

Member Avatar for ghosh22
0
5K
Member Avatar for heshanm

Hi, I am creating reports in my project using [B]TCPDF[/B]. I want to get the reports on a daily basis. For an example if there are 10 transactions occurred in a day, i want to display them in a report format. These are the 2 pages that i have created. …

Member Avatar for pritaeas
0
141
Member Avatar for vomhaus

I developed a method to query a database and return the specific values that I'm looking for except that the value being returned is the last value. In my while loop I can do a system.out.println(answers)and I can see all of the values, my return answers only returns the last …

Member Avatar for murali_quest
0
105
Member Avatar for zachattack05

I know this makes no sense at all, but hear me out and maybe someone can supply me with some info on how this can be accomplished correctly. Using an invoicing type example. You have a table of clients who can receive invoices, a table of invoices with invoice numbers …

Member Avatar for jbrock31
0
97
Member Avatar for lloydsbackyard

how to remove a single quote ' in the search string...since it would generate an error if single quote is included... example, in an input box, the search string below are typed 'computer computer' 'c'o'm'p'u't'e'r if search button is click it would generate an error... please help..thanks...

Member Avatar for lloydsbackyard
0
952
Member Avatar for rcasinillo_s

Any could give me a PHP script on how to call or execute mysql stored procedure. Thank you. Roland

Member Avatar for alexopoulos7
0
1K
Member Avatar for ineedsomehelp:3

[CODE]void printer(char x) { int d, b, z; for(z=x; z>=1; z--) { for(b=z; b<=x-1; b++) printf(" "); for(d=z; d>=1; d--) printf("%d ", d); printf("\n"); } }[/CODE] that's my code which is supposed to print 4 3 2 1 4 3 2 4 3 4 when input is 4. however, it …

Member Avatar for Arbus
0
215
Member Avatar for chaychie

Hi everyone, I have a code which converts a html page into excel file. The following code has been working well so far, but Im having a problem of converting the html page into excel file after I had changed the localhost to another server. It's not able to generate …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for agrarian

Any could give me a PHP script on how to call or execute a MS SQL Server stored procedure, passing parameters to it and receiving a value from it using an Output parameter?

Member Avatar for 99developer
0
4K
Member Avatar for veledrom

Hi, I have a query which takes too long to return result set. After then I turn result set into xls format to be downloaded at same time. Problem: Obviously, browser says "Request time out". Users will have this problem and my site will fail completely. What else out there …

Member Avatar for veledrom
0
90
Member Avatar for murali_quest
Member Avatar for murali_quest
0
240
Member Avatar for himmat.m4

Hi, In my project I am developing pagination concept. but here problem is data is too large so it takes too much time for fetching data. so anybody can give me solution like fetching data in some part so reduces data fetching time. Thanks in advance

Member Avatar for himmat.m4
0
79
Member Avatar for mattyg1192003

Hello everyone, I have a question regarding a Japplet that I am creating for a theatre. The program is supposed to take a yes or no response from the user, take which section the user will be sitting in, ask how many tickets they would like to purchase, and then …

Member Avatar for mKorbel
0
138
Member Avatar for Xtremefaith

So briefly I have a framework class that I'm using that work perfect except with the issue I'm currently having. Problem is this, everything displays on the page as expected [B]until [/B]the form on the page is submitted and the ISSET at the top is true: [CODE=php]if(isset($addAccount)){ $SP = new …

Member Avatar for Xtremefaith
0
3K
Member Avatar for knitex

I'm just wondering how to solve this problem. I've tried it myself with the code below but it doesn't seem to work. I made it so the database results come up from the database HEADSTONESA and it has a section called KEYS which is the cemetery key. I was wondering …

Member Avatar for decade
0
147
Member Avatar for bob on whidbey

The MYSQL db has a Location field with entries like: CAN CAN ON CAN ON, CAN BC CAN AB, CAN BC NY OH CANFIELD, OH TOLEDO WA, OR, CA Thus the location field can have multiple entries, all separated by a comma, but still held in the single Location field. …

Member Avatar for bob on whidbey
0
129
Member Avatar for salah_saleh

I was reading a book and i faced an issue here [CODE]39 template< typename NODETYPE > 40 void Tree< NODETYPE >::insertNode( const NODETYPE &value ) 41 { 42 insertNodeHelper( &rootPtr, value ); 43 } // end function insertNode 44 45 // utility function called by insertNode; receives a pointer 46 …

Member Avatar for salah_saleh
0
156
Member Avatar for cool_zephyr

hello I'm writing a program using winsock..whenever i try to send some data from the client i get the following error "Run-time error '40006' Wrong protocol or connection state for the requesting transaction or request" please help me in finding what's going wrong...my client code is given below [CODE]Private Sub …

Member Avatar for cool_zephyr
0
847
Member Avatar for malchus

I'm having problems with my code regarding the value of the string I get with the JTextfield.getText() method my code goes this way: [CODE](keypressedevent evt){ int id=evt.getId(); char c = evt.getKeyChar; String s = JTextField.getText()+c; System.out.print(s); } [/CODE] if the textfield contains for example: apple and you type s, it …

Member Avatar for malchus
0
235
Member Avatar for mgt

I created a form that collects a title and some content (as well as some other data), and would like to take that title and content and automatically create a link and a new and simple web page for it (think of Craigslist). So, in the end result, when other …

Member Avatar for mgt
0
130
Member Avatar for nsyncpilu

Hy , i read all the other posts about this error but didn`t helped me , tried google but notheing. I have the following method : [CODE] private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling code here: DefaultTableModel model = (DefaultTableModel)jTable2.getModel(); int nrrows = jTable2.getSelectedRowCount(); int[] rows = …

Member Avatar for nsyncpilu
0
2K
Member Avatar for Craig_V

Hi there. Using VB5 I am a real novice to VB but slowly getting the grasp of thing but at the moment writing things out long hand (thinking there must be short cuts) Like filling a VB form with MSACCESS data I am detailing every field e.g. [CODE]txtCompGST.Text = tldt.Rows(rowpos)("CompGST").ToString() …

Member Avatar for Craig_V
0
129
Member Avatar for MareoRaft

I want two function names that do the same thing, allowing the user to use whichever they prefer. For Vec a, i use "const" because a is never changed. Correct me if this is the wrong usage. For int n in operator|, i do NOT use "const" because n is …

Member Avatar for mike_2000_17
0
301
Member Avatar for vijaybrar

Hi i am just new to VB.NET and our teacher told us to experiment on for loop in a ODD SUM Program you need to add all odd numbers from Input One to Input Two like that but i can't stop it from adding continuously for example i input the …

Member Avatar for adam_k
0
236
Member Avatar for madriceg

I am trying to use CString's LoadString function but it never retrieves the text from the string table. I ported the application from Visual Studio 6 to visual studio 2003. I looked all over the web but nothing is working. Somebody help me! And if you could be very specific. …

Member Avatar for madriceg
0
2K
Member Avatar for aaro

hi i have downloaded this as source code and tried with my limited abilities to make it a <textarea> instead of <input type text. everything seems to work until the final update page update_ac.php when i submit i get the error..... You have an error in your SQL syntax; check …

Member Avatar for aaro
0
205
Member Avatar for faroukmuhammad

Hi guys, my keyboard has not [B]Break[/B] key, so i cant braek a test run with the conventional [B]Ctrl + Break[/B]. Is there any other way to break a test run? Thanks in advance.

Member Avatar for faroukmuhammad
0
208
Member Avatar for MareoRaft

I was advised that I should not import the std namespace in a header. Also, I should create my own namespace for my library (a header file I created with function in it). Why is it a bad idea to use the std namespace for my new functions? If all …

Member Avatar for mrnutty
0
150
Member Avatar for faroukmuhammad

Whenever I command my datareport to show, my computer halts. Their are other four report that work well. Then there is the only one that is pulling on my legs. Can any one tell me what the problem might be?

Member Avatar for faroukmuhammad
0
84
Member Avatar for phaedrusGhost

Hi all, i am working with Uploadify ( a neat little file uploader ) and had a tough time finding an image re-sizer to work with it. I finally found one that works quite well but it encodes the file name using md5 encoding. I am not sure where and …

Member Avatar for phaedrusGhost
0
119
Member Avatar for bklynman01

I have a piece of code that takes two strings, puts them together, then attempts to save that result into a table in a database. For some reason, the database is only showing the second half of the string ([ICODE]Me.txtRev.text[/ICODE] in this case). When in debug, I can see that …

Member Avatar for Mitja Bonca
0
274
Member Avatar for udigold1

I'm trying to format a DataGridView, with style color, etc. The DGV loads (via buildGrid method) at the startup of the form, as you can see in the constructor's code: [CODE]public Report1(DataSet dsReport1, string sDateRep) { InitializeComponent(); sDate = sDateRep; dsReportGrid = dsReport1; orgDataset(); buildGrid(); } [/CODE] Here's the code …

Member Avatar for ddanbe
0
562
Member Avatar for Rickay

I have started dabbling in Objective-C for iOS developing. Is using the C forum of this website appropriate for questions regarding Objective-C? If not, what would the correct forum be? Thanks!

Member Avatar for Rickay
0
223
Member Avatar for Donnovan

hi guys, i'm trying to write a program in C# to read a SRF04, through a USB I2C connnector. this is my first time working wiht I2C and usb and i need some help. [URL="http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm"]http://http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm[/URL] im using the I/O settings to write to the Sonar. Can someone provide me wiht …

0
95
Member Avatar for Leodumbi

Hi everyone I've been having a small problem. on learning process of vb.net and sql server 2005 I hit a wall I want to know how can I filter the items on my datagrid which is displaying the data from my SQL server database, through a textebox text. sorry the …

Member Avatar for jgat2011
0
138
Member Avatar for MareoRaft

There is an error concerning lines 10-14. I had been using this code previously without errors. I'm not sure what I may have changed. The error is "invertMatrix.cpp:14: error: invalid use of incomplete type ‘struct std::stringstream’ /usr/include/c++/4.2.1/iosfwd:83: error: declaration of ‘struct std::stringstream’ " [CODE]#include <iostream> #include <vector> #include <cmath> using …

Member Avatar for mrnutty
0
2K
Member Avatar for Pro2000

Hello everybody.. Does anybody know what's the use of the execCommand() function?? Also, is it used to add tags in textboxes?? Thanks beforehand.

Member Avatar for stbuchok
0
140
Member Avatar for dark_sider_1

Hi there, I'm trying to teach a few students how to create a text adventure game. In the past, I've generally gone about the route of using nested if-statements because it seems a bit easier to visualize. Here's what one has done in the past, and ignore the crazy code-formatting …

Member Avatar for dark_sider_1
0
219
Member Avatar for lloydsbackyard

i need to trim a student id below is my php code <?php $stud_id ='MCC-2011-2012-0001' //what is the code to remove the MCC-2011-2012- so that i can retrieve the 0001 //or code to remove the first 14 characters echo $stud_id; ?> //thanks a lot...:)

Member Avatar for lloydsbackyard
0
195
Member Avatar for Jsplinter

I want to iterate through a list of objects, then erase all objects from the list which meet a certain criteria. Here is an example using int type as my object: [CODE] list<int> m_list; // Fill list with int values... // Find ints == 4 and erase them auto it …

Member Avatar for Narue
0
233

The End.