199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fatsbear

I'm having trouble inserting a bubble sort for my program, any help would be appreciated. #include <iostream> #include <string> using namespace std; int main() { string food[100]; string lookup; int calories[100]; int x = -1; do { x++; cout << "Enter a menu item (enter 'done' when finished): "; getline(cin,food[x]); …

Member Avatar for StuXYZ
0
116
Member Avatar for marcmm

Ok, I'm having a big problem with an sql string for a query. I want to implement a methode that allows the user to search for hotels by entering the minimal price ( so if they enter say 20 it will only display hotels that have prices above 20 ). …

Member Avatar for marcmm
0
146
Member Avatar for michael1201

Ok so i got part of my code written out but i dont understand how to go about checking all the numbers to see if it is a valid soduku code. i need a function to check the puzzle and make sure it is correct and if it is not …

Member Avatar for mynameisor
0
274
Member Avatar for Zelores

so heres the issue im having. i have this class that im suppose to make for a tester class. i have to declare an array of string at the class level. there is method call to read the context of a file and put into the array. the problem im …

Member Avatar for stephen84s
0
83
Member Avatar for bigbob

I hope someone can help I've been trying to sort this for hours. I am trying to pull info from my database and display everything which I have done successfully, however I have duplicate records in my database due to records in different subcategories. Anyway I want to display everything …

Member Avatar for digital-ether
0
138
Member Avatar for freshfitz

Can I loop through the output of 2 select statements from a stored procedure based on a "order by a date" that is in the 2 different databases. For example I want to [code=sql]select * from program where cust_no = '125'[/code] Program has a field "posted" Then [code=sql]select * from …

Member Avatar for arrgh
0
97
Member Avatar for rajeesh_rsn

Hai, I had a small shopping web site. Need alert my clients through SMS every day. I need for help in " How to do SMS through my web site, in which the sender of the sms must be "my website name " . My hosting is Apache... and i …

Member Avatar for stephen84s
0
182
Member Avatar for Achupa

Hi, I have this problem to solve [quote]Create a set of tables to store data for an address book (contact) application. Bare in mind the following design criteria. * The application will be used by multiple people so the database should also store a list of users. * The people …

Member Avatar for verruckt24
0
193
Member Avatar for kritiohri
Member Avatar for kritiohri
0
2K
Member Avatar for ebyong77

Hi i need help on how to create a query so that the result will be like in my attach screenshot

Member Avatar for darkagn
0
65
Member Avatar for rexmont

Hello all, lets say i have a table like this which has 3 columns and 3 rows; -----------------------------------------------------------+ COLUMN_A.....|.....COLUMN_B.....|...COLUMN_C | .........X............|...........X............. |.........X...........| .........X............|...........-...............|.........X...........| ..........-............|...........-...............|.........X...........| -----------------------------------------------------------+ So, now i have an input like; (user submits a form) ----------------------------------------------------+ ......X............|...........X............|..........-.......| ----------------------------------------------------+ now; the first column of row#1 is X so it is …

Member Avatar for verruckt24
0
114
Member Avatar for bthaxor

hey all: i am using the wordspew shoutbox plugin for wordpress (at [URL="http://bthaxor.com"]http://bthaxor.com[/URL]), and have it customised exactly the way i want it except for one little problem. inbuilt is a function which converts text beginning with http, ftp, https etc. to links in the shoutbox. i have one problem: …

Member Avatar for bthaxor
0
176
Member Avatar for ajithraj

haii friends.. i want to search for a file, which resides in my own system using jsp...that is, when i click a button, a search brower is to be displayed which showing all my folders in my system and from that i want to search for the needed file...Is this …

Member Avatar for javaAddict
0
67
Member Avatar for Birdie010

I'm receiving error message "Syntax error missing operator in query expression" any help you can provide is appreciated. Private Sub btnEmailCat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEmailCat.Click Dim SQLStmt, EmailAddress, SubjectLine, BodyText, CATDateString, DollarsAndCents, NoDecimal As String Dim CATCounter As Integer Dim GSIdNum, GSIdHash As Long Dim …

Member Avatar for sumithakb
0
82
Member Avatar for Duki

Hey everyone, I'm going to be starting on a project that communicates with a 270 degree range finder. I would like to incorporate some sort of picture to represent the data it reads. Something similar to [URL="http://www.robotshop.us/hokuyo-utm-03lx-laser-scanning-rangefinder-1.html"]this[/URL] Does anyone have an idea of where I could start? I'm not sure …

Member Avatar for LizR
0
101
Member Avatar for JLopeman

To any and everyone :) As stated in my title, this is a homework assignment, so I appreciate any help or suggestions that are given. Also, per the website rules, I have put effort to this, and I'm not asking anyone to just do my work. (The program compiles and …

Member Avatar for JLopeman
0
169
Member Avatar for BestJewSinceJC

I had a problem w/ efficiency - The problem was that using String concatenation was inefficient for large text files, when reading the whole file into the String. I've since thought about it, and I guess this is because Strings are immutable - so every time concatenation is done, a …

Member Avatar for masijade
0
141
Member Avatar for fa_hed

Hi every one I need help: How I can make hilpe files with (hlp)extension to My APP.

Member Avatar for aktharshaik
0
84
Member Avatar for Foe89

I'm currently writing code for a soon to be simple tic tac toe program. Currently i'm just testing out methods of how to run it, so it'll be more "modular" in the end but for now I'm just testing things out. My question is, how would I go about validating …

Member Avatar for Foe89
0
269
Member Avatar for Kalsrini

Hi, How to open a excel file from word macro by getting the file name from word. [B]this is my code[/B] OrgFileName = Selection.Text + ".xls" 'OpenExcel Macro Shell ("C:\Program Files\Microsoft Office\OFFICE11\excel ""C:\My Documents\File - CopyBook\""" + OrgFileName) OrgFileName is the workbook name which i have to get from word …

Member Avatar for aktharshaik
0
82
Member Avatar for cloudedvision

Lets say we have appA and appB. appB is running in the background, not doing anything. Then the user opens up appA. They punch in a number, and hit enter. Then appA "pokes" appB and sends it the number. appB multiplies the number by 5, pokes appA and sends it …

Member Avatar for Salem
0
127
Member Avatar for spowel4

I've got two ms access tables within one .mdb file, the tables are mrproduction & fglotnum. From mrproduction I need records from fields mrStkNum, mrLotNum, and mrQty. From fglotnum I need records from field mrCost. The common field between the two tables is lotNum (i.e. mrproduction.mrLotNum & fglotnum.mrLotNum). I guess …

Member Avatar for aktharshaik
0
180
Member Avatar for NekoGráfico

Would be really fun if we could maybe have some game programming challenges posted here on a weekly basis. This could help adventuring programmers solve their problems by reading past challenges or even expanding their knowledge by solving these challenges. But we first need to set up a structure. In …

Member Avatar for MosaicFuneral
0
163
Member Avatar for jchanger07

Hi! I'm new to this forum and C++ programming and I am currently taking and introductory course to C++. I have a program that compiles fine but will not execute. I am posting my code and a sample input file....Please if anyone can get it to run or give me …

Member Avatar for sabertoothMAX
0
181
Member Avatar for xandres

I need to make a seating reservation system for my assignment and I have to manage .dat files. I have to store all Student objects in a file. When a student is registered, a new object is created and I need to add it to the archive. But as far …

Member Avatar for xandres
0
203
Member Avatar for kotkata

This is part of a larger program and this is the only part that I can't get down. Right now, it runs fine once through, but telling it yes to repeat the loop at the end does not allow the user to input a new name for student once the …

Member Avatar for kotkata
0
180
Member Avatar for habuchas

Below is the code I am starting with. What is desired is to have the user input the number of players and the number of scores and then populate the players and scores. To check the program out I usually will use random numbers for the scores. My problem is …

Member Avatar for Ancient Dragon
0
87
Member Avatar for cloudedvision

Wasn't sure where to post this, I couldn't find a relevant forum. Whats the LGPL and how does it differ from the GPL?

Member Avatar for sabertoothMAX
0
67
Member Avatar for mgn2683

Hi, I am trying to restrict access to a dynamic list page based of a login id. Essentially a person will login, be directed to the index.php page and can then click on a link to Exam Evaluation. From this page, there are two links, and they can click on …

Member Avatar for digital-ether
0
159
Member Avatar for gabec94

I am trying to write a program that shows the longest word from an input . This is what I have so far, I am not sure what to set x equal to, or if that is even right: [CODE]sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in len(splicedsent[1:])>splicedsent[0]: longestword=x else: …

0
75
Member Avatar for brixton

Hello there, I'm learning file I/O in c++ ATM and I'm getting a strange problem when I'm (at least I think so) following a tutorial. What I'm doing is simply writing a User object to a file and then read that same object from the file. I'm doing this just …

Member Avatar for Lerner
0
176
Member Avatar for FTProtocol

Hey, #1 is it possible to search for a specific exe file on a computer and return the path to it. If not is it possible to get the directory of an exe from its running process. If not is it possible to search for a registry entry to return …

Member Avatar for StuXYZ
0
397
Member Avatar for yenyen

hello..i got some question about downloding and save the image from other server to my server and also change the file name. i have no idea on it. i hope can get some help from here. let say i have a url that pass back from the Picnik API like …

Member Avatar for Drew
0
2K
Member Avatar for SoulMazer

Hi, I have been learning Python and have a quick dictionary question. I am trying to make a "vocabulary test" to help myself study, and am trying to do it with a dictionary. So far I have this: [code=python]testwords = {"uno":"one","dos":"two","tres":"three","cuatro":"four",\ "cinco":"five"} def vocabtest(): for value in testwords: print "What …

Member Avatar for SoulMazer
0
311
Member Avatar for gabec94

I am a freshman in highschool and have just started learning Python. This week I have an assignment on while...for...and lists. I have tried this problem and this is what I got so far, I'm not sure if it is correct at all: start=float(raw_input("Enter the starting value:")) end=float(raw_input("Enter the ending …

Member Avatar for stephendoyle75
0
88
Member Avatar for mybluehair

Im having serious trouble installing a library named curl. ive searched MANY tutorials, but they go over my head, and skip sections of the instructions. Ive never installed a library before, but i need a feature in my script to be able to go online and download a txt file, …

Member Avatar for mybluehair
0
119
Member Avatar for Damagh25

I have some code for a routing algorithm in python programming language but i don't understand the code at all. I am only a beginner and i was wondering if anyone could explain it for me in plain text. Could you please go through and explain each part. Cheers. Here's …

Member Avatar for Damagh25
0
240
Member Avatar for vikashkumar051

Hi I am pasting here code for finding coordinates of a regular polygon. [code] void main() { int no_of_side = 6, side_length=10, i; float ext_angle = 60; float angle=0.0; float x_coord[6], y_coord[6]; for(i=no_of_side-1; i>=0; i--) { x_coord[i] = x_coord[i] + side_length * angle + side_length ; y_coord[i] = y_coord[i] + …

Member Avatar for StuXYZ
0
144
Member Avatar for Stefano Mtangoo

The debug process never connected back to WINGIDE: Aborting debug session I have tried repair python, no success. Also tried run IDLE same story

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for cloudedvision

I'm just diving back into C++ after a while of being away. I've created a simple project. But its giving me these stupid errors when I've been trying to do some OOP: main.cpp [CODE=cpp] #include <iostream> using namespace std; #include "oopy.h" int main(int argc, char** argv) { Oopy awesome; cout …

Member Avatar for cloudedvision
0
145
Member Avatar for PhiberOptik

Hi guys, I'm new and I'm totally stuck on a question for class! Basically we have to get the user to enter a few sentences and then change the first letter of every sentence to a capital version. I'll post my code below. (I'm not asking for the answer just …

Member Avatar for PhiberOptik
0
222
Member Avatar for Undermine

[CODE]//6.12 #include <iostream> #include <iomanip> using namespace std; double CalculateCharges (double car1=1.5,double car2=2.0,double car3=24.0); int main () { cout<<" Parking Garage Rates " << endl; cout<<setw(10); cout<<"Car"<<"Hours"<<"Charge"<<endl; double car1; for (int i=1;i<=3;i++) cout<<i<<CalculateCharges(car1)<<endl; cout<<"Total"<<endl; return 0; } //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ double CalculateCharges(double car1, double car2, double car3) { double rate; double hours[3]; …

Member Avatar for Lerner
0
96
Member Avatar for SuperSapien

Quick question from someone very new to constructors... If the function body of a class constructor is an array, can I then use any instantiation of that class just like an array? ie: World *anthill and then later... anthill[x][y] or is that wishful thinking? [COLOR="Green"][B]-Ella[/B][/COLOR]

Member Avatar for Freaky_Chris
0
184
Member Avatar for BestJewSinceJC

I'm having trouble with storing bits as a byte. I've read probably 30 different sources about this already. I'm doing Huffman Compression. Lets say I read in the character "c" and I am supposed to output "1010". How would I go about doing that? I know how to write bytes …

Member Avatar for BestJewSinceJC
0
135
Member Avatar for botter911

Hi, I have a problem here in the selection search because it reads the text but does not detect the position of the text like a is in the 2 position. the is in the 1 positon.... like that. But If I do this for characters it detects it. Any …

Member Avatar for Ancient Dragon
0
119
Member Avatar for sept567

Hello, I am working on a Tic-Tac-Toe program in C++ which I want to have AI that will either win or draw every time, but will never lose. I think that this is within my grasp, though I am not at all an expert programmer. I would really appreciate if …

Member Avatar for sept567
0
174
Member Avatar for FlamingBlade

I can't figure out how to display a local webpage. I've tried messing with the webBrowser control but it keeps adding "http://" to the front of the local webpage address, and if I try to change it from within the code like this: [code=C#]webBrowser1.Url = "file:\\webpage\Maphs v1.htm";[/code] I get the …

Member Avatar for FlamingBlade
0
165
Member Avatar for maxbox

hello i have received this error on line 28 the line 28 is this ?> Parse error</b>: syntax error, unexpected $end in <b>/xxxx/xxxx/xxxxx/xxx/xxxxx.xxxx/public_html /xxxxxx/ok/comprueba.php</b> on line <b>28</b><br /> here is the php file : [code=php]<?php $mysql_host="xxxxxx.xxxxxx.com"; $mysql_user="anuncios"; $mysql_password="ganaras4"; $mysql_db = "suecia"; $conn = mysql_connect("$mysql_host","$mysql_user","$mysql_password") or die("Could not connect : " …

Member Avatar for maxbox
0
88
Member Avatar for Blackeagle

in th following code, i cant use a Text Field in the actionPerformed methode .. the textFiled is declared outside that method. i get the following error: Cannot refer to a non-final variable serverHostField inside an inner class defined in a different method How can i solve this??? Thank you …

Member Avatar for stephen84s
0
99
Member Avatar for 2eXtreme

Hey guys, I'm currently testing my application with some scripts I have written. I'm using the following query to list known errors within my application, and the status of the tests that are are affected by each error: [code=sql]SELECT ERROR.BG_ERROR_ID, ERROR.BG_USER_03 as HardwareID, count (RUN.CY_RUN_ID) as NumAffected, sum (CASE RUN.RESULT …

Member Avatar for petrhorak
0
183

The End.