199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Se7Olutionyg

[code]#include <iostream> using namespace std; //Function declare void displayMenu(void); void getSelection (int &userChoice); void processChoice (int userChoice); float monitorCoke( float, float ); float monitorpep ( float ,float ); float monitorcana ( float ,float); float monitorhire ( float,float ) ; // variable declare and const float option, cocaout, pepsiout ,canaout,pepleft,canaleft,cokeleft,hireout; const …

Member Avatar for VernonDozier
0
136
Member Avatar for PanGraphX

Does anyone know where I can find great examples of PHP snippets? I’m a beginner to PHP, just know the basics. I learn by examples. Looking for good code, no flaws.

Member Avatar for PanGraphX
0
62
Member Avatar for balakrishnan.kb

hi i am creating stored procedure using cursors, i am using two cursors in my procedure, i takes the two fields in one table that fields are stored first cursor, and second table fields are stored in second cursor, and i check the condition for first table one field is …

Member Avatar for balakrishnan.kb
0
113
Member Avatar for tskmjk

Hi all, I am developing an application which reads an excel file which has the following records and inserts into a table in SQL SERVER 2005 database [Enterprise Edition]. Data: Product Version CustType ------------- ------------- -------------- Norton SystemWorks Basic Edition 2009 CS Norton 360 2 CS Norton 360 2 CS …

Member Avatar for rmjagnaan
0
150
Member Avatar for apchidara

hi every one I have a lot of excel data sheets and I need to work with them . how can I connect my code with the excel files . is it the same as ADO.net while u do with access? please help me or send me a link about …

Member Avatar for rmjagnaan
0
940
Member Avatar for JustLearning

When I try to compile and run this file I get a segmentation fault when the size function is called so I must not have it set up right. The size function returns the number of stored chars in the queue. So I am thinking that the size function in …

Member Avatar for JustLearning
0
185
Member Avatar for rrlangly

I'm trying to create a central event system for my game where I add some events to a priority_queue and pull off the first one as soon as it expires. But I'm having a problem of understanding if I'm adding them to the queue correctly, if they're in order, or …

Member Avatar for stilllearning
0
155
Member Avatar for c++noobie

I have a feeling ya'll get plenty of cin questions here and are quit tired of them, but I have a few that are a little more in depth. I started trying to write my own input stream flush template and had some very minor successes when I found the …

Member Avatar for c++noobie
0
177
Member Avatar for FtKShadow

Its not so much help that I need I just dont understand what my teachers asking. Anyone know? [QUOTE]Write overloaded min functions. One function will return the min of two integers, the second function will return the min of 3 integer values. Hint: see if you can use the two …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Duki

Hey guys, my prof is looking for a good polymorphism project. The one's in the book weren't good at all. Could someone give a suggestion?

Member Avatar for Firasath
0
122
Member Avatar for nish88

hi all, i am using ms date and time picker and am unable to assign a value to it. i am getting the error read only property. can anyone tell me how to solve this? thanks

Member Avatar for abu taher
0
92
Member Avatar for sbm

I wrote this program for simple tax and gross pay calculation... Im not able to execute the progam...Its compiling but the screen frozes while executing.. I know there is some simple mistake in my program... could any1 pls point out the mistake.. [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> float tax_cal(float gross_pay); float …

Member Avatar for sbm
0
126
Member Avatar for Jesi523

Hello, I am used to VB.Net, and I recently starting using ASP.Net 2.0 with VB.Net. What I do not understand is how to keep my variables. Everytime the page goes back to the server I lose information. It gets lost. I've looked everywhere and read a lot of information and …

Member Avatar for dickersonka
0
106
Member Avatar for DemonGal711

I have to fill in a 2^n by 2^n board that has a hole in it with tiles that look like the example below. The tile we have to use is the combination of the 1's in the image below and the 0 is the hole (cause I really don't …

Member Avatar for DemonGal711
0
177
Member Avatar for animefun2

Ive been looking for the right compiler that i can use with java applet to create an online game so does any one know the best compiler for java applet? and where i can find it in a free download from a website? or a list of compilers that i …

Member Avatar for jbennet
0
207
Member Avatar for gandil

I have a db query, which show datas from mysql database. I want to do : ıf number of rows from query is bigger than x do something if small do another thing. Namely; [code=php] $qry = mysql_query("SELECT * FROM data_table WHERE page='$page'",$dbh); $total = mysql_num_rows($qry); if($total>7) { something... } …

Member Avatar for jt1
0
144
Member Avatar for soultrav

Hello! The error above appears on line 9 and i can't seem to figure it out! [code=php] <?php srand(time()); for ($i=0; $i < 5; $i++) { $rand1 = (rand()%13 + 1); $rand2 = (rand()%4 + 1); $slot[$i] = $rand1*10 + $rand2; for($j=0;$j<$i;$j++) while(slot[$i] == slot[$j]) { $rand1 = (rand()%13 + …

Member Avatar for jt1
0
136
Member Avatar for pacwire

Hi, I've encountered a problem I can't explain and would be very grateful for any input. I have the following SQL statement (its not table dependent but demonstrates the problem): [CASE WHEN 2>1 THEN "Greater" ELSE "Less" END AS Comparison] This SQL query returns the correct single column named Comparison …

Member Avatar for LizR
0
154
Member Avatar for kawafis44

Hello! It is my first post and I've got probably easy question. I can use containers like list, vector. But I think there is no tree container in standard containers of C++. I found [this site](http://www.gamedev.net/reference/articles/article2192.asp) and I'd like to use it. The problem is that I do not know …

Member Avatar for Sci@phy
0
124
Member Avatar for thuyh83

I been working on this problem for so long, when I compile, it give me an error message that I misplace else at "else if (a==0 && b==0 && c!=0)" when I remove the else at that line, it mess up my code, it won't display like it suppose to …

Member Avatar for ArkM
0
165
Member Avatar for mruane

I just downloaded ActivePerl, hoping it was some kind of IDE for perl. I run windows XP service pack 3 on this box. My Linux Box has perl already installed, but I want to use perl on my windows box as well. I know nothing about perl, so do I …

Member Avatar for orko
0
138
Member Avatar for ndumbo

HI my package reads file from txt format only. it does not read .pdf or .doc file. is there any single java library that opens any kind of file format as stream and then reads or manipulates its contents.

Member Avatar for orko
0
609
Member Avatar for IMtheBESTatJAVA

If I have an output of any double or integer that needs to be rounded to a certain number of decimal places, how would I code that? As always there are many ways to do this but, again, as always, I'll be looking for the simplest way to do such …

Member Avatar for orko
0
140
Member Avatar for Venom Rush

Hi all Just want to know if it's possible to check if a checkbox is checked on page load. Venom Rush

Member Avatar for danishbacker
0
70
Member Avatar for jkiblin88
Member Avatar for Sci@phy
0
36
Member Avatar for freelancelote

Hi, is there a factorial function implemented on math lib? Alternatively, is there any way I could check if it's implemented on my compiler? thanks

Member Avatar for freelancelote
0
88
Member Avatar for sarah_ella

Hi, I'm trying to read a series of ascii characters from a text file as their corresponding decimal integers. However when I try to read in the # 26 it is read in as a # 10 and no further characters after this are read. I've found out that # …

Member Avatar for sarah_ella
0
185
Member Avatar for VernonDozier

OK, this is a follow-up to this thread, which I have marked solved. [url]http://www.daniweb.com/forums/thread152797.html[/url] I changed things from GIF to PNG and that seems to solve the saving issue, but there is a new issue. I'm trying to create a semi-transparent circle as an image, which can be saved. The …

Member Avatar for VernonDozier
0
176
Member Avatar for Zurompeta

Hi everyone, I made a chunk of code where I wanted to perform a "for" loop within a concatenated string. This is what I came up with: [CODE]$message = "The Top 5 Employees of the month are:" . for ($ctr = 0; $ctr < 5; $ctr++) { $num = $ctr …

Member Avatar for R0bb0b
0
116
Member Avatar for The_Kermit

Hey guys! I'm trying to build a program that will evaluate boolean expressions. For example: a>(b>(a^b)) or maybe ¬a>(a^b). It doesn't really matter if you know boolean logic or not since i'm ok doing the calculations. The only part i'm struggling with is parsing the formula. I need to read …

Member Avatar for brianlevine
0
121
Member Avatar for AdventureX

Hey people, I'm at uni and we have lab sessions for Java. In my lab session I have been given an exercise to complete however I need help because I don't know where to start!! Can anyone help me? If you can I will post back with the task to …

Member Avatar for dickersonka
0
79
Member Avatar for kxh29

Hello Team: I have users who use Reflection-X (we are on AIX 4.3)when execution our application software. If they do not "back out" of the application (... Select X on the various menu screens...) gracefully, and just "click" on the "RED X", in the upper right hand corner of the …

Member Avatar for krisoccer
0
138
Member Avatar for shanthiIrene

I have a java program to open a webpage in IE. And so I have this code - Process p = Runtime.getRuntime().exe(“C:\\Prgram Files\\Internet Explorer\\iexplore.exe” “[url]http://google.com”);[/url] p.waitFor(); This works fine in Vista when UAC is disabled. The process keeps running until the webpage is closed. With UAC enabled - it opens …

Member Avatar for masijade
0
99
Member Avatar for hugoboss911

Hi all, im doing a uni project and ive run into a little trouble im writing a program in cpp (has to be cpp because of other constraints) this program will get values from a file and depending on the values, send a high or low signal to the corresponding …

Member Avatar for Freaky_Chris
0
152
Member Avatar for ShadowOfBlood

I was assigned a homework project that's starting to get annoying. I can't figure out what's going wrong with it. Here's the question: The number Pi may be calculated using the following infinite series: Pi = 4(1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + ... ) …

Member Avatar for VernonDozier
0
594
Member Avatar for ardila

PROJECT 6: MIRROR CALCULATIONS DUE by midnight 11/04/08 INTRODUCTION This is the first of a 3-project series. The next two projects, pro7 and pro8 will expand on this assignment. Therefore, it is important that you do well in pro6. This project is your introduction to object-oriented programming (OOP). Here, you …

Member Avatar for Freaky_Chris
0
188
Member Avatar for amarie

HI, everyone. I am having trouble getting the index of the location of the search number to print out. This is my program. Any help would be greatly appreciated! [code]#include<iostream.h> #include<cmath> void sortit(int x[], int n) { int temp,i,j; for(i=0;i<n;i++) for(j=i;j<n;j++) if(x[i]>x[j]) { temp=x[i]; x[i]=x[j]; x[j]=temp; } } void bsearch(int …

Member Avatar for Freaky_Chris
0
176
Member Avatar for jodyf1717
Member Avatar for ahamed101
0
83
Member Avatar for krishniha
Member Avatar for chococrack

I have three files (myClass.h, myClass.cpp, and main.cpp) [code] // // myClass.h #ifndef MYCLASS_H_ #define MYCLASS_H_ template <class element_type> class myClass { public: myClass(); ~myClass(); }; #endif /* MYCLASS_H_ */ [/code] [code] // // myClass.cpp #include "myClass.h" template <class element_type> myClass<element_type>::myClass() { } template <class element_type> myClass<element_type>::~myClass() { } [/code] …

Member Avatar for Alex Edwards
0
188
Member Avatar for Shanti C

Hello.. I want to counts clicks for a flash script.. For image it is easy to do..but for flash i don't know how??? Can anybody know about this...please help me... Shanti

Member Avatar for FlashCreations
0
136
Member Avatar for justinmyoung

strangely enough I got this to work once but I can't understand how. I've looked it over for hours. need help. here's the situation. all I want to do is have my form, a basic form, insert information into my database. It works for all my fields, except two. I …

Member Avatar for justinmyoung
0
116
Member Avatar for sekola

i have used c++ to run windows commands in windows\system32. i am sure u r all very farmiliar with that. however, the procedure seems not to be able to access other .exe files in other folders on my machine. please advice.;)

Member Avatar for Salem
0
99
Member Avatar for sbhavan

I have to update 5 tables simultaniously which are inter related with each other. My requirement is if all tables are updated successfully then all the updates will be commited. if any one of the query is failed due to some reason all the queried should be rolledback. The way …

Member Avatar for Ezzaral
0
123
Member Avatar for piggysmile

I came across [URL="http://www.brainbashers.com/searchengineshow.asp?ref=ZESB"]this interesting puzzle[/URL]. How would you code the solution to this?

Member Avatar for ArkM
0
91
Member Avatar for Jason123

I am required to create a program that will allow user to enter employee name,age and update salary later on. After which able to generate out the details. I am trying to declare a class object in the form of an array so that i can input data and then …

Member Avatar for Jason123
0
189
Member Avatar for salman1354

Hello all, I'm having difficulty with reading data from external files. I have to read two inputs from two Excel files. One is a matrix A[3][20] which is stored as a 3x5 matrix (in Excel format) in the file AData.xls and the other one is a vector dV[35] which is …

Member Avatar for Lerner
0
87
Member Avatar for hajjo

I have this code [CODE]#include <stdio.h> int addthree(int x); int main() { int num; int d = 0; printf("enter ur num"); scanf("%d", &num); d = addthree(num); return 0; } int addthree(int x) { int s = 0; s = x +3; return s; } [/CODE] Okey I want this code …

Member Avatar for Narue
0
108
Member Avatar for Grub

Hi, Is it possible to compare files by hash code? If so how do I do this. I am attempting to locate duplicates. Simply calling the file.sashCode() generates a hash code but if a duplicate file is located the hash code if different, depending on name and location. Naturally you …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for jodyf1717

anyone kno any simple example of the quick sort merge sort and shell sort? i cant come across any in C.

Member Avatar for Narue
0
57

The End.