199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mohammad1982

Hi, I am new to Dev C++ (and C programming iteself!). I was trying to write a project in Dev C++ and I faced two problems. I will really appreciate it if anyone can help: 1- I created a project and added one main file to it. There are some …

Member Avatar for Frederick2
0
113
Member Avatar for speedy94519

Hello im having a problem with my program. Im trying to read in two files called list.txt and teachers.txt and set them to an array called studentList[] and teacherList[] but i dont know how to do that, any suggestions? I know i have to use a for loop but i …

Member Avatar for speedy94519
0
109
Member Avatar for etypaldo

I am making a game using pygame and livewires. I am having trouble with the scoreboard- it updates appropriately but does not delete the old scoreboard, thus creating a blob of numbers: [CODE]class Ship(games.Sprite): """Ship, represents the player""" image = games.load_image("ship.bmp") DELAY = 25 def __init__(self, x, y): super(Ship, self).__init__(image …

Member Avatar for tbone2sk
0
241
Member Avatar for wolf_london

hey, i want to install apache ,php and mysql.in my ubuntu linux. but i come across a problem . i configure the apache ,and in the command line it works well: root@chrysanthemumwolf-laptop:/usr/local/apache2/conf# /usr/local/apache2/bin/apachectl start httpd (pid 4325) already running root@chrysanthemumwolf-laptop:/usr/local/apache2/conf# /usr/local/apache2/bin/apachectl restart but when i test it in my browser …

Member Avatar for wolf_london
0
111
Member Avatar for creativz

Hi, I am using sql data base the image save in database but it doesnt get viewed in data grid view though rest of the items are viewed. Please help me to come out of this solution. Regards Creativz [code] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; …

Member Avatar for kvprajapati
0
201
Member Avatar for wingers1290

Hi, thanks for all the help with my code so far, I just have one more nagging chink in the chain. This is my code for saving my file which works as expected. [code] Person Bob = new Person(); Bob.CallSign = textBox1.Text; Bob.Freq = textBox2.Text; Bob.Time = textBox3.Text; Bob.fName = …

Member Avatar for wingers1290
0
1K
Member Avatar for nccsbim071

Hi Please tell vb.net equivalent of following method: [CODE=C#] private void LookForUpdates() { System.Threading.ThreadStart timerThreadStart = new System.Threading.ThreadStart(delegate() { sua = new ShowUpdatAvailable(); DelGetUpdateArgs delGetUpdateArgs = new DelGetUpdateArgs(this.GetUpdateArgs); sua.GetUpdateArgs = delGetUpdateArgs; sua.StartLookingForUpdate(); }); timerThread = new System.Threading.Thread(timerThreadStart); timerThread.Start(); } [/CODE] I tried using C# to VB.NET code converter which gave …

Member Avatar for nccsbim071
0
947
Member Avatar for Snapster5

Ok so this is an extra credit lab i have for any missed lab or replace for our lowest lab score for anyone has in the class. I'm not sure what im suppose to do with it the teacher just emailed us this info. If anyone can direct me to …

Member Avatar for Dave Sinkula
0
122
Member Avatar for PDB1982

I'm trying to take some information from a file and input it into an array so that it can be output on the screen, but I can't get this to work. Here's the kicker though....the file has to allow 100 test scores, but must end when it hits -999....any ideas? …

Member Avatar for Dave Sinkula
0
96
Member Avatar for Tonka_view

Hello, I'm quite new to the world of C++ programming I just started to like and learn the language a year back. I have a problem which is related to sorting. Let's say I wanted to sort multiple array containers containing related elements. For example: [ICODE] Array1 Array2 Array3 Name …

Member Avatar for Tonka_view
0
931
Member Avatar for Firethorn

--Im having issues using a master page and im hoping for some insight. What i want to do is have a common background image across all pages that are on my site. --When i create a master page and set the background image to the appropriate image (stored on the …

Member Avatar for djzia
0
84
Member Avatar for ZER09
Member Avatar for ZER09
0
93
Member Avatar for algo_man

Hello, I'm new in ASP.NET environment. I'm using text boxcontrol with multiline properity to add description of product into my MS access database. My question is, when I print the data from DB the description is printed in one line not in multiple lines!!! How to solve this problem?

Member Avatar for djzia
0
95
Member Avatar for cole davidson

Hey guys, So I need to write a program that will prompt the user to enter the name of a .txt file, then count the occurence of each letter. It should print out the results on the screen and ask the user to enter a .txt file name to store …

Member Avatar for cole davidson
0
123
Member Avatar for new_2_java

Hi all, I have a program, which is invoked from a shell script. I need to return back to the shell script a status, whether the program succeeded or failed, so the shell script determines whether to continue with its normal course of actions or to stop upon faileur. So, …

Member Avatar for pbHINF
0
832
Member Avatar for rt.arti

Hello! I had a question about appending data in to a file. My program flows in the following way-- [CODE] // This function reads data from the file parse_input_data_for_one_algo(some parameters) { FILE *f = fopen (filename, "rw+"); while ( fgets (in_line, 100, f) != NULL ) { //read values } …

Member Avatar for uskok
0
147
Member Avatar for cabosun

I have this program that I am working on that I am trying to insert user entered integers till a "-1" is detected and it will stop inserting the integers into the Tree and print it out inOrder. I am geting 2 errors: File: S:\makeup1.java [line: 9] Error: S:\makeup1.java:9: cannot …

Member Avatar for mellowmike
0
131
Member Avatar for confusedndazed

I'm trying to design a program that will input ages of 50 active duty Navy personnel and then finds the average age of current active duty Navy members. Here is my current pseudocode, could anyone tell me if there are errors? [code=text] Declare age[50] as integer Declare Sum, Average as …

Member Avatar for mrnutty
0
132
Member Avatar for Mattpd

I officially have the worst C professor in the world. The guy hasn't answered my email in weeks and I don't have a class meeting before this assignment is due, so I have come here for some help. If anyone could point me in the right direction any part of …

Member Avatar for Trad
0
206
Member Avatar for Mexkn

I am trying to make a division and with the answer I want to separate the decimal and round it to two decimal points. After this, I want to assign the decimal part to another function. Thank You

Member Avatar for mariorenato
0
236
Member Avatar for *Moonlight*

[B]Hi, I need urgent help on my assignment...please don't assume I'm asking you to write my program..I just need a guide to start. I've lost my USB so I lost all my programs, and all the notes etc from class and I've been sick lately so haven't been attending class …

Member Avatar for *Moonlight*
0
881
Member Avatar for Dokino

hello, I've wrote this calculator [code=python] from __future__ import division class num: x = input ("Input first number:\n") numb = num() class wtd:#wtd= what to do command = raw_input("What do you want to do?\nadd +\nsubstract -\ndivide /\nmultiply *\n") cmd1 = wtd() bull1 = cmd1.command while cmd1.command != "+" and cmd1.command …

Member Avatar for woooee
0
98
Member Avatar for rico.tee

Hi! I'm new here. I was just wondering if there's someone who could help me in solving this problem. Given a sequence of n numbers, compute the running average of the sequence. For example, given the sequence 1 3 5 7 9 will produce the output: 1 1 3 2 …

Member Avatar for Dave Sinkula
0
116
Member Avatar for redwolf99

For my final project in COSC I, I am supposed to make a semi-poker simulation. Right now I am having trouble determining when the given hand is a fullHouse. Here is the whole program so far. [CODE] #include <ctime> // time for random number seed #include <iostream> #include <cstdlib> // …

Member Avatar for redwolf99
0
2K
Member Avatar for Towely

I'm getting the error message "Error: expected initializer before 'sum' " from line 9 of my code when I try to compile my program. I can't seem to figure out why it would be throwing this error. Any help would be great. Thanks! [CODE] #include <iostream> using namespace std; struct …

Member Avatar for Towely
0
807
Member Avatar for BlackPhoenix

Hello everyone, I hate to be a bother, but I'm having some difficulty figuring this out. Through an AJAX implementation, I am receiving a SQL Query result that has: [LIST=1] [*]An object's attribute delimited by a comma [*]An entire object (database row) delimited by a colon [/LIST] This is an …

Member Avatar for Airshow
0
126
Member Avatar for laelzio.mosca

I`m trying to program this tic tac toe game, I have the screan printing like I want it to, but I don`t know how to take the user`s input and change the numbers in the array to an "X" or "O" depending on the user`s input, and upgrade the grid, …

Member Avatar for Murtan
0
182
Member Avatar for jessec

Hi, I'm not sure if this is the right place for it. I'm thinking of creating a secure place on the internet. Some of my presumptions are: 1 - That no system/network is to be trusted. 2 - Important data should be encrypted. 3 - The link between data and …

Member Avatar for jessec
0
114
Member Avatar for arithehun

I am trying to create a dictionary program, just for fun. I doubt I will ever get past twenty words. But this program has a problem. It always goes to the word, no matter what I type in, or press. Here is the source code: [code=c++] #include <iostream> using namespace …

Member Avatar for arithehun
0
182
Member Avatar for wrenz.go

the error...[CODE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication1.memberTable.AddMember(memberTable.java:21) at javaapplication1.GUI3.memberAddActionPerformed(GUI3.java:2345) at javaapplication1.GUI3.access$000(GUI3.java:28) at javaapplication1.GUI3$1.actionPerformed(GUI3.java:352) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5806) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4413) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2440) at java.awt.Component.dispatchEvent(Component.java:4243) …

Member Avatar for JamesCherrill
0
88
Member Avatar for godsgift2dagame

Hey guys, I'm working on my final project for first semester of Freshmen year and I have a favor to ask of you guys. This project is very important for the final grade, so I'd love to know if I've made any errors so far? The program works, but I …

Member Avatar for godsgift2dagame
0
2K
Member Avatar for toastyy

I have this database project due Monday and I am trying to create a PHP script to do a simple search query in the MySQL database. This is what I have... [B]search.html[/B] [code] <html> <head> <title>NOMO Auto Group Inventory Search</title> </head> <body> <h2>NOMO Auto Group Inventory Search</h2> <form action="results.php" method="post"> …

Member Avatar for hielo
0
146
Member Avatar for lewashby

In the following program, why is [COLOR="red"]"Ac"[/COLOR] the first thing that the program outputs? In main, [COLOR="red"]print "Printing a Card Object"[/COLOR] is the first think I see that should print anything. Is it the [COLOR="red"]__str__[/COLOR] method using the rank & suit attributes from the [COLOR="red"]__init__[/COLOR] constructor? [CODE]# Playing Cards # …

Member Avatar for snippsat
0
398
Member Avatar for kudresov

I am tring to convert std:string to char* in several way, however non of these work: first way: [CODE] char* c_levelMapFile = new char[levelMapFile.length() + 1]; strcpy(c_levelMapFile, levelMapFile.c_str()); ifstream myfile(c_levelMapFile); myfile.is_open(); // returns false [/CODE] second way: [CODE] const char* c_levelMapFile = levelMapFile.append("\0"); ifstream myfile(c_levelMapFile); myfile.is_open(); // returns false [/CODE] …

Member Avatar for kudresov
0
976
Member Avatar for saldainis

hi guys, i'm new in c++ programming in this forum too, seen many helpful threads so far, but i just can't get over this one, something wrong with my return value , it says so "total" is undeclared identifier (line 46), but when i declare it in main function as …

Member Avatar for Nick Evan
0
152
Member Avatar for stefanief

[QUOTE]I have an assignment that requires me to use an array, menuList, of struct menuItemType with members string menuItem and double menuPrice. I have to display the menu, let the customer order, total the bill including tax and print the check. Function getData had to load the data into the …

Member Avatar for stefanief
0
218
Member Avatar for Xiek

Hi, I am using the OR operator in my while loop and its not very responsive: [CODE]while (transaction != 'Q' || transaction != 'q' ){}[/CODE] The user previously entered a character for the variable transaction, however when the user enters 'Q' or 'q', the while loop is not skipped. Can …

Member Avatar for Xiek
0
83
Member Avatar for StaticX

Hi i have a question about inputting to char*. For instance,i have made a class "Name",and am passing my constructors in as follows [CODE] Name* n1 = new Name("Nelly the elephant"); [/CODE] [CODE]Name::Name(char* name){ this->name = name; }[/CODE] But i am confused as to how i would code my addName().Ideally …

Member Avatar for StaticX
0
175
Member Avatar for singh.sanjana

[I]<<thread split from [URL="http://www.daniweb.com/forums/thread13488-9.html"]here[/URL]>>[/I] hi. i can c ur proficiency in the algorithm n complexity field. can u pls help me out? i need 2 understand it 4m the very beginin. take me as a layman n thn send ur replies.

Member Avatar for فلذمنصور
0
72
Member Avatar for mahela007

I'm having trouble understanding the concept of an API. Could someone please explain what exactly and API does? A simple code example (if that's possible with this subject) would be really useful and much appreciated.

Member Avatar for mackone
0
122
Member Avatar for avillachandok

Hi, I need to write a prolog predicate for diff/3 without using the built-in predicate subtract/3. The diff/3 predicate for example gives as follows: [code] ?-diff([1,3,3,4],[4,5,8],X) X=[1,3][/code] The diff(List1,List2,X) predicate takes List 1 and List 2 and unifies a new list X with all elements in List1 that do not …

Member Avatar for avillachandok
0
240
Member Avatar for rrvs331

I have a blackjack game(console game with visual c++), and I was wondering, how do I put in multiplayer?

Member Avatar for SgtMe
0
114
Member Avatar for CodyOebel

Compiler: DEV BloodShed C++ (latest release) I am following this windows api tutorial and am at this step [url]http://www.winprog.org/tutorial/menus.html[/url] [CODE] //FILE: resource.h // the below code is in a resource.h file // as stated in the instructions. #define IDR_MYMENU 101 #define IDI_MYICON 201 #define ID_FILE_EXIT 9001 #define ID_STUFF_GO 9002 [/CODE] …

Member Avatar for CodyOebel
0
147
Member Avatar for nevets04

[code] import java.util.*; import java.lang.*; class sub { public static void main(String[] args) { String a = "1"; String b = "2"; String c = "3"; String d = "4"; String e = "5"; String f = "6"; String g = "7"; Scanner sa1 = new Scanner(System.in); System.out.println("1) Encrypt"); System.out.println("2) …

Member Avatar for nevets04
0
202
Member Avatar for SKANK!!!!!

like isnt there a way to update an rss feed without using other programs? i have an .rss feed and it has like 10 entries or whatever they are callled but its only because i cant update it manually everytime i want to. that would be rediculous. also ihave some …

Member Avatar for zmiunzi
0
223
Member Avatar for ffs82defxp

this is my code: [CODE]import os,sys import random import webbrowser import time import subprocess as sp cls=os.system("cls") title=os.system('title Hit any key to start searhing!') while True: cls print "" title raw_input() getRandEntry() def getRandEntry(): theFile = open("wordlist.txt","r") wordList = theFile.readlines() theRandoms = [] theRandoms.append(random.choice(wordList)) * 4 startLink(theRandoms) return theRandoms def …

Member Avatar for Gribouillis
0
173
Member Avatar for Annettest

Hello everyone: I am a C++ newbie. I aim to use C++ in my work on coupled fluid flow-chemical reaction problems. I would very much appreciate some help to get me on the right track! I apologize in advance for what is probably a very simple question. My goal is …

Member Avatar for Annettest
0
285
Member Avatar for gibson.nathan

im working on this program and im getting really stuck. i was hoping to get it done soon, but it is dragging out. i have completed the first half of the instructions, i believe. [CODE]2. Create an abstract class called Student. a. Student will need instance variables name , qz1, …

Member Avatar for VernonDozier
0
224
Member Avatar for Dajer

Hi friends. I have a datagridview in my project.I want to navigate between cells( in a row) by pressing "Enter".I mean when user edits a cell, navigates to next cell by pressing Enter.(as we know navigation to the next row by pressing enter is the default action) I tried to …

Member Avatar for sknake
0
392
Member Avatar for axa121

Hi, I am still very new to python and programming so could anyone help me on how to input lines from a user, one line at a time until they type "." on a separate line. I also wanted to count how many lines they entered. What I tried was …

Member Avatar for masterofpuppets
0
189

The End.