64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for christiangirl

Hey, I am having problems with this code, I think it is not linking up the whole file, because when I run it it only says "hi" 3 times. And also it keeps crashing because of best[i] = point->item->return_value(); [code] #include "applicant.cpp" #include <iostream> #include <fstream> #include <iomanip> using namespace …

Member Avatar for Agni
0
182
Member Avatar for JLopeman

Hello everyone....again. I have a program that is using a queue. I have a class member function that is to traverse the queue, and output the smallest number in the queue. Pseudo for this function is: Compare the front and front->next. Whichever is smaller, keep it. Traverse the queue until …

Member Avatar for JLopeman
0
69
Member Avatar for DLightman

I'm getting a strange compile error with getline. My question is if you make a statement like: [CODE] getline(is, a.lastName, ','); [/CODE] can you revert back to: [CODE] getline(is, a.country); [/CODE] Or in other words, once you set a delimiter, are you bound by that delimiter for the rest of …

Member Avatar for DLightman
0
113
Member Avatar for nyalex

Hi I am working on an incredible project, it is an GUI. I hav used a JLabel to show 10 words but it actually always shows the last one only. I think that i need a timer to make it change but i have already a timer and i cannot …

Member Avatar for nyalex
0
296
Member Avatar for indianrock9

Hi all, I using PHP & MySql. Here's the situation: 1. I have a website which is a meeting place for employees & employers. Employees can sign up for an account & select the skills they have. These skills list will be shown on their resume. I have an array …

Member Avatar for indianrock9
0
1K
Member Avatar for gabec94

I am writing a program that accepts a sentence and then prints out the longest line, this is what I have so far, but I am lost on what the x variable should be equal to. Any help is appreciated, thanks. sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in range(splicedsent[1:])>splicedsent[0]: …

Member Avatar for gabec94
0
4K
Member Avatar for squarkman

Is there a way to see why this particular javascript validator is not affecting the submission of this form. It submits with all fields empty. Here's the simple code [code=syntax] <?php if(isset($_POST["Submit"])) { require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer(); $toaddress = "rocky@airedale911.org"; //Change this to the email address you will be …

Member Avatar for brechtjah
0
301
Member Avatar for Now Then

Hi, What I'm trying to do is use a groupbox, that contains a radio button, two text boxes and a timer. I'd like to add any number of instances of this groupbox to a panel using an 'add' button. Does anyone have an example or pointer in the right direction …

Member Avatar for ddanbe
0
97
Member Avatar for Tyster

Hi Folks, I have a general question about multithreading... I have a small app that is multithreaded. I have a main() class and a separate Runnable class that implements the Runnable interface. The problem I have is that the Runnable class needs to return an integer to main(). But this …

Member Avatar for Tyster
0
143
Member Avatar for weasel5-12

The below code, is a source code which i am trying to learn double linked lists from, as for a 2nd year assignment. For some reason my editor keeps returning the error messages [icode]'cout' : undeclared identifier 'cin' : undeclared identifier[/icode] Can someone please help me?? All help is VERY …

Member Avatar for weasel5-12
0
119
Member Avatar for hellIon
Member Avatar for PhiberOptik

Hey guys, So I'm on the second last question of my latest homework assignment and I can not figure out what is wrong. Basically it asks you to input a date, name, amount and then prints out a check, with a word form of the name on the bottom. Well, …

Member Avatar for PhiberOptik
0
132
Member Avatar for PomonaGrange

Hi all. I am having a little trouble trying to get a small script to work. What I am trying to do is create a page to use with DADA mail mailing list software. I would like this page to search through the DADA mail text file of email address …

Member Avatar for PomonaGrange
0
153
Member Avatar for Stefano Mtangoo

I have simple player with wx.ListCtrl as playlist. I first Load List through open file dialog. I populate a dictionary with filenames (populated in Playlist) as keys with their path as values. When I press play, the onPlay method calls onSetPath method which looks up for selected file from list …

Member Avatar for Stefano Mtangoo
0
130
Member Avatar for cwarn23

I have just started learning php-gtk 2 but am a bit stuck. First is that are there any php-gtk 2 debuggers or error loggers that I can use because at the moment, if there is a bug in my script, the exported exe file made from my php-gtk script is …

Member Avatar for martin5211
0
138
Member Avatar for Stefano Mtangoo

Everything seems to be well, but NOTHING GET PLAYED!!!! :oops: I have tried and tried but doesn't work. WHAT IS WRONG???? :shock: [code=python] #media control #Copyright 2008 Evstevemd #Just media Player to play the playee import wx import wx.media as media import os, sys class MediaPlayer(wx.Frame): def __init__(self, parent, id, …

Member Avatar for Stefano Mtangoo
0
171
Member Avatar for dinilkarun

please tell me how to format text in a SINGLE cell of a table. Once the following text is added. i want to format it in followinfg way. ---------------X_------------------------ Title : ball cat dog ---------X_------------------------ Title : in BOLD and Underline rest of the data in BULLETS.

Member Avatar for dinilkarun
0
149
Member Avatar for wizzsm

The output from this only returns the letter 'C' in the path string. Help! Wizzsm. std::string GetServiceConfig() { HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = L"SYSTEM\\CurrentControlSet\\Services\\ApirbiService"; LPCTSTR regReq = L"ImagePath"; DWORD size1 = sizeof(rgValue); DWORD Type; if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, …

Member Avatar for wizzsm
0
699
Member Avatar for cassie_sanford

I am writing a project that stores vehicle information such as the model,manuf., year, etc. I have to create a second project that loads the data from the file into memory and loads a drop down combo box with the VIN numbers. When the number is selected from the box, …

Member Avatar for Teme64
0
143
Member Avatar for robgeek

Please can someone show me how would I create a file using fstream that would take the contents from another existing file and user input sentence. for example: I have file1 with some contents The user inputs a sentence Now I want to create a file using streams that has …

Member Avatar for StuXYZ
0
168
Member Avatar for dips255

hi, i need some advise regarding storage of data is it good to store data in files rather than storing into database? (eg data like comments or additional features of products that users advertise on our website.) will it help for speed optimization.

Member Avatar for dips255
0
148
Member Avatar for eljack

Hi, I have a big problem interacting with the MS Access database. I have read again and again all the topics related to the error [B]"The number of query values and destination field are not the same"[/B] on this forum but still I can not fix. Here is my story: …

Member Avatar for LizR
0
151
Member Avatar for kritiohri
Member Avatar for kritiohri
0
2K
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 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 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 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 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 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 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 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 sid78669

I was going through walkthoroughs as a practice for my final and i came across this question. Although i was able to do it correctly, I was not able to get the presence of a colon in one of the lines(line 35): [CODE] #include <iostream> using namespace std; class base{ …

Member Avatar for jbennet
0
151
Member Avatar for cwarn23

Hi and I am trying to embed a modified version of a javascript/css script from [URL="http://www.javascriptkit.com/script/script2/dbmenu/#"]http://www.javascriptkit.com/script/script2/dbmenu/#[/URL] but since have made a few problems. At the moment, my script is only compatible with Internet Explorer 7 (not compatible with earlier versions) and can anybody help me debug the top menu at …

Member Avatar for cwarn23
0
94
Member Avatar for RaDeuX

Okay, so my program is very close to completion. The only problem is that the program leaks memory. The deleteNode, deleteManager, and destroyList are the ones to blame, or so I think. When I delete a node other than the first one it works while leaking memory. However, when I …

Member Avatar for Salem
0
174
Member Avatar for Sgtplank

Hi, ive got to make a program to find the perimeter and area of a triangle made using vectors, and i have not a clue, ill post the code i have done so far and if any1 could give me the code for the area and perimeter you would be …

Member Avatar for stephen84s
0
310
Member Avatar for Vallnerik25

I have a few questions about c strings, string literals, c++ string objects and how pointers and constantness all come together. I am wondering why a c string can be set like this but can't be changed dynamically with an assignment operator like this. [CODE] char str [] = "string1"; …

Member Avatar for Vallnerik25
0
189
Member Avatar for MrDiaz

I'm trying to create a simple program that will check for any given number (an ID) provided by the user and check this ID with an array of numbers inside my program. If the correct ID is given, it will display "Valid ID" if the ID provided by the user …

Member Avatar for MrDiaz
0
130
Member Avatar for happymadman

How do you assign a random int to a variable more then once say i use this code [code] import random x = 1 while x == 1: random = random.randint(1,100) print random raw_input ("Push <enter> to print another random number") [/code] It will print out the first random number …

Member Avatar for happymadman
0
232
Member Avatar for Erikmmp

Hi everyone, I am trying to make a program that times how long it runs for in seconds or milliseconds or whatever. The unit of time doesn't matter, I just need to know if C has any function I could use to do this. So, just as an example, I'm …

Member Avatar for Erikmmp
0
127
Member Avatar for MC Rove

I am taking a intro programming course currently. I am stumped by my current assignment. The program is suppose to do the following using functions only (no other code allowed in main): 1. Get data from an input file and put into a parallel array. 2. Find and display the …

Member Avatar for vmanes
0
80
Member Avatar for CodeBoy101

Hi I'm having trouble with a subquery and really need some help. I'm trying to count to count the number of beats sold by a particular producer. So the first thing I did was SELECT all the beats sold by that producer so I wrote the code [CODE] select name, …

Member Avatar for darkagn
0
186
Member Avatar for mrjoli021

I am trying to write a program that will monitor my routers and servers and notify me when they go down. I am looking for a way to ping the host and read the reply. The InetAddress.isReachable method is the only thing i could find but it uses the echo …

Member Avatar for darkagn
0
164
Member Avatar for jcafaro10

Hey all, What does it mean when you get an error that says ImportError: no module named main. I wasn't aware I was trying to import a module named main. I don't even have a module named main. I'm using Jython and I'm reflecting on an instance of a python …

Member Avatar for jcafaro10
0
5K
Member Avatar for lllllIllIlllI

Hi guys, I was making a program yesterday that would send an email using the email modules of python as well as the smtp module. My problem is when i put it into an exe using py2exe and vega's code snippet setup i get some problems. This is the error …

Member Avatar for lllllIllIlllI
0
2K

The End.