199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jehutiy

Hello everyone, I am having some trouble trying to get my circularly linked list to work. It does compile but it gives a Segmentation fault. This is my first time learning something like this and I don't really know whats wrong. If anyone could possibly point out some problems it …

Member Avatar for MooAndStuff
0
129
Member Avatar for .:Pudge:.

*EDIT* IT IS A SEGMENTATION FAULT NOT BUS ERROR (anyway to change thread title?) I am trying to make a deep copy of a linked list, but whenever I run a test of the constructor i get a "Segmentation Fault". I tested the "Append" method and it works fine. I …

Member Avatar for power_computer
0
105
Member Avatar for elauri

I have following tables table1 nr_key1 nr_dad1 table2 nr_key2 value (repeated ~n times with same nr_key2 and different value) in table2 nr_key1 = nr_key2 After I have iterated through nr_key1 I want to use recursion to select nr_key1 = nr_dad1 and iterate again table2 with the new nr_key1. This should …

Member Avatar for huangzhi
0
123
Member Avatar for power_computer

Ok, I am trying to figure out how to purse this current project which deals with dynamic allocation and linked list Here is the information I am given the following two structs [code] struct employee { int ssn; string name; float hours; assignment * list; }; struct assignment { string …

Member Avatar for power_computer
0
217
Member Avatar for Carrots

Hi, I was wondering why the CREATE TABLE query in my code seems to be called automatically, whilst in the example below from w3schools, there is a line which explicitly calls the CREATE TABLE query. Why is that the query in the w3schools example isn't ran twice? My code: [code=php] …

Member Avatar for leviathan185
0
212
Member Avatar for ssDimensionss

hi im trying to write some code for a priority queue using an unsorted array..it should be easy but i have a few concerns about it.. say if i have a graph of something like this: node 0, priority 100 node 1, priority 50 node 2, priority 200 node 3, …

Member Avatar for ssDimensionss
0
193
Member Avatar for masterinex

Hi guys , Im new at pythons . Hope you all can help me out here : Im trying to write a code which prints the elements from every list as a line . so If my lists are : l1 = ['0000002', '0000003', '0000004', '0000005', '0000008', '0000009', '0000010'] l2 …

Member Avatar for masterinex
0
290
Member Avatar for hanntaa

hey guys, i was wondering if anyone could help, basicly at the moment (for the last few hours) iv been tring to find a way to align an container, to enable me to have my current work on one side (left or right) and a JTextArea on the other. the …

Member Avatar for kinger29
0
167
Member Avatar for johndoe444

HI, From the following code: [CODE] 1 import java.util.*; 2 3 public class t2 { 4 public static void main(String[] args) { 5 List aList = new ArrayList(); 6 7 aList.add("a"); 8 aList.add("b"); 9 aList.add("c"); 10 aList.add("d"); 11 12 List bList = new ArrayList(); 13 14 bList.add(aList.get(1)); 15 bList.add(aList.get(3)); 16 …

Member Avatar for Ezzaral
0
129
Member Avatar for kinger29

I have a java aplpet in eclipse. How do i get my java applet to load in an html web page. I put the .class file from the bin director in the same directory as my web page. I tried applet tag but it gives me an empty white box. …

Member Avatar for kinger29
0
498
Member Avatar for NinjaLink

Hello I am trying to determine whether a word is a palindrome or not using queues in my program below. However, I am currently having a problem. When I compile and execute my program, the output screen comes up and disappears very fast. Afterwards, I ran the program using the …

Member Avatar for jonsca
0
109
Member Avatar for khess

Today, Tuesday November 10, 2009, [URL="http://www.novell.com"]Novell[/URL] announces a Visual Studio plugin that allows support for non-Microsoft operating systems that use .NET code development on a platform known as [URL="http://go-mono.com"]Mono[/URL] via a new product called [URL="http://go-mono.com/monovs/"]Mono Tools for Visual Studio 1.0[/URL]. This is not a cost free toolset. In fact, it's …

Member Avatar for khess
0
607
Member Avatar for smd5049

is there a way to caputre the values in a datagrid and bind them to a sql table? I have a datagrid bound to a sql query with some editable cells and I wanted to know if the updates could be sent back to the sql table. is there a …

Member Avatar for jireh
0
103
Member Avatar for ninja_girl

Hello, I'm a C newbie (first time using C at university) and after reading a few books, I still have problem implementing & understanding structures and pointers. I have the following structure: [CODE]typedef struct data { double average; }Tdata; Tdata stat = {0};[/CODE] Now I have two functions which are …

Member Avatar for Ancient Dragon
0
91
Member Avatar for bethesda

When I do this: [CODE]la $a1, 9($t1)[/CODE] the code works, but when I do this: [CODE]marker: .word 9 la $a1, marker($t1)[/CODE] The code doesn't work.... I don't understand why....?

Member Avatar for bethesda
0
90
Member Avatar for Ecanto

[CODE]#include <iostream> using namespace std; int main() { char flip; int coin, flipnum, flipint, count, evod; string you, enemy; int hityou, hitenemy, youhealth, enemyhealth; srand(time(0)); //makes rand work cout<<"CHOOSE YOUR MANBEAST: "; //Choose a fighter getline(cin,you); youhealth = rand() % 15 + 95; //Your fighter's health cout<<endl<<endl<<"WHO SHALL CHALLENGE HIM?: …

Member Avatar for restrictment
0
224
Member Avatar for hedwards09

Dear all, I have a test tomorrow and I just wanted to double check on my answer for this review question. Write a method negativePositive that takes an array of integers, and returns an array that contains 3 integers. The first value in the returned array is the number of …

Member Avatar for hedwards09
0
97
Member Avatar for katharnakh

I am facing problem connecting problem connecting remote MySQL server which is firewall protected. I used the valid user name and password, but it throws me the error [I]OperationalError: (2003, "Can't connect to MySQL server on 'www.myreomtemysqlserver.com' (10061)")[/I] I want to connect from python. I searched in Google is there …

Member Avatar for wendymclee
0
261
Member Avatar for confusedndazed

Hello all, I'm working with exponentiation and I have an assignment to write a code for loop initialization and loop body but unfortunately, I don't even know what that means. I was given the following information: Input x // can be any float Input y // has to be a …

Member Avatar for confusedndazed
0
83
Member Avatar for evilsithgirl

Hello. I'm pretty new to debugging with visual c++. I've tried reading some tutorials but none of them seem to cover what my program is doing. i enter the command arguements for my code which is the file ./input.txt. I then get the following error. [code] 1>c:\documents and settings\jennifer\my documents\visual …

Member Avatar for JasonHippy
0
140
Member Avatar for CurtisEClark

I am trying to make pygame draw a shape from a list of shapes imported with fileIO but i get a pygame import error please help [CODE]import random import pygame w = 640 h = 480 x = open("shapes.txt") z = x.readlines()[n] n = random.randrange(6) screen = pygame.display.set_mode((w, h)) pygame.draw.z(screen, …

Member Avatar for CurtisEClark
0
491
Member Avatar for shmeeps

I'm working on a project for school. Normally I'm a C++ guy, but I have to go through standard C before that, so I'm struggling with certain aspects being different, such as getline. Here's essentially what I'm doing, I have a data file that has a certain about of lines …

Member Avatar for shmeeps
0
173
Member Avatar for orangejediman

Hello,all! I am attempting to make a program in which tetris music is played. However, to get the full effect, I need more than one beep at a time. I cannot use the getsound thing either, i am not allowed. It has to be using 'Beep()'. Is this possible, and, …

Member Avatar for mrnutty
0
100
Member Avatar for mohsennour
Member Avatar for AKJo
0
110
Member Avatar for COKEDUDE

Can someone please explain what both of these mean and the good details about them. Please also explain the parameters of how to use it.

Member Avatar for llemes4011
0
459
Member Avatar for bruceaj

I have a GUI window with a JFrame. On this JFrame, I have a JPanel that completely covers the JFrame. I then have another JPanel within this first JPanel that contains a text box and 3 buttons. Within an event handler, I want to expand the JFrame and 2 JPanels …

Member Avatar for AndreiDMS
0
152
Member Avatar for Mitja Bonca

I am doing an app which inclueds richTextBox, for inserting text. I put some text into richTextBox and save it into my sql database (column is varbinary(MAX) data type, with this code: [CODE]byte[] myFile = Encoding.UTF8.GetBytes(richTextBox1.Text);[/CODE] Here the text is changed into binary data, and them I add parameters and …

Member Avatar for sknake
0
1K
Member Avatar for Stivdion

//Stephen Igbinedion //CMPS 1043 //November 10 //This program plays multiple games of Simple Simon Bridge #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; ifstream infile; ofstream outfile; void Hand(char c1,char c2,char c3,char c4,char c5); int winner(int R_bid, int W_bid,int I_bid); int main() { int optimus; char gameplayer, …

Member Avatar for mrnutty
0
83
Member Avatar for SuntechWebsites

Heres one for ya... Lets say you have a mysql database with multiple entries (clients). Each one has a field for name, username ect. There is also one for say storing a doc file for billing. How can I make it so I can upload a file to just a …

Member Avatar for Atli
0
205
Member Avatar for shalabhgarg

hiii can u please help me in uploading files in JSP??? I have a code but it can only upload small sized files(only few bytes or kb) , please help me in uploading large files.I tried to upload a large file but it could not, although it didn't show any …

Member Avatar for peter_budo
0
722
Member Avatar for bruceaj

When I start NetBeans I get a dialog with the following: [QUOTE][B]Cannot locate java installation in specified jdkhome: C:\Sun\SDK\jdk. Do you want to try the default version.[/[/B]QUOTE] I click Yes and everything seems to work ok. Now, I did have the SDK installed but didn't have any need for it, …

Member Avatar for bruceaj
0
172
Member Avatar for VibhorG

HI!!!! i want to play videos in my application(C# window Application) and videos are playing fine. But I want to maintain security of these videos such that when I give my application to any user as setup file,then how can i include videos in the exe file such that user …

Member Avatar for Diamonddrake
0
820
Member Avatar for carobee

How to parse an xml from javascript from code beside page? i have tried [code] var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = false; xmlDoc.onreadystatechange = Readxml; xmlDoc.load("abc.xml"); [/code] but the error is that the xml is not loaded? i am using visual studio 2008.thnks in advance

Member Avatar for sahmed_12
0
112
Member Avatar for JustAnotherJoe

Correction: The subject line was supposed to have said BAR CHARTS, not bar codes. Rather than reinventing the wheel, I'd like to know if something already exists that will get going me in the right direction. I have a program that, among other things, ftp's files to multiple computers in …

Member Avatar for JustAnotherJoe
0
220
Member Avatar for web3
Member Avatar for splurchner

This is a program I wrote for class, and its completely done and compiles with no errors, but I keep getting a segmentation fault and even after using GDB and putting print lines (with fflush attached) I cannot figure out what the problem is. I do however think I found …

Member Avatar for Dave Sinkula
0
189
Member Avatar for Linky

Oh man, I'm sure you guys are going to have a good time making fun of my newbie self, so enjoy! I have output that looks like this: [' sum\n', '\n', '1257869640: 6.8744400000e-02\n', '1257869660: 6.8744400000e-02\n', '1257869680: 6.8634000000e-02\n', '1257869700: 6.9022750000e-02\n', '1257869720: 7.0189000000e-02\n', '1257869740: 7.0189000000e-02\n', '1257869760: 6.9119800000e-02\n', '1257869780: 6.8245000000e-02\n', '1257869800: 6.8245000000e-02\n', '1257869820: …

Member Avatar for Linky
0
252
Member Avatar for ebrutekim

[CODE]#include <iostream> #include <sstream> #include <fstream> #include <string> #include "Python.h" using namespace std; #define tP PyRun_SimpleString(pyCom.c_str()) double func(double x); int main() { //file to write numbers to ofstream file; file.open("numCache.txt"); //string for int to string conversion string temp; stringstream output; //string that is read from console string numCache; //returned number …

0
112
Member Avatar for crazybitez

Hi, Does anyone know how i could get a list of all files in a given directory given the directory's path using c++?

Member Avatar for Ashishinani1756
0
244
Member Avatar for geek_till_itMHZ

I need to make multiple action listeners for 4 radio buttons and a regular button. They all need to call different methods from another class I currently have [CODE]Import javax.swing.*; import java.awt.*; import java.awt.event.*; public class CardGameCH15 extends JFrame { public CardGameCH15() { super("Card Game"); add(new CardTable()); } public static …

Member Avatar for geek_till_itMHZ
0
183
Member Avatar for Mehwish Shaikh

Well I was just wondering what should be the first step of making a project(school or professional). Ohkay we've conceived it all. But i just make a garbage of ideas. How to make them bit neat n clear. What shud be the steps, a developer should take before going for …

Member Avatar for Mehwish Shaikh
0
157
Member Avatar for AirGear

i have a project that implements the using of database. i chose to use php as the application interface and mysql as the database. at the end of this month, we should submit the softcopy. now, i'm confused with the files of my project. i'm using wamp server, and in …

Member Avatar for AirGear
0
134
Member Avatar for mo_91

Drawing Hello 1. Horizontal Hello 2. Diagonal Hello Enter choice: 1 * * ****** * * **** * * * * * * * ******* **** * * * * * * * * * * * * * ****** ****** ****** **** Drawing Hello 1. Horizontal Hello 2. Diagonal …

0
50
Member Avatar for Phil++

Hey there, wonder if you can help me.. I have three classes: 1. Person 2. Accounts 3. Purchases (Accounts and Purchases both inherit from Person) You don't need an account to make a purchase but if you do you'll enter your: name, address etc.. The problem I'm having is association. …

Member Avatar for VernonDozier
0
114
Member Avatar for rajeesh_rsn

Hai, I had developed a self forum ( not third party ) for my web site. Working fine... But now I need to filter some words while submitting the form. Ie If I need to filter the word "duck" in forum then if an user type "duck" in any of …

Member Avatar for rajeesh_rsn
0
85
Member Avatar for anjaly.s

Hi, I am doing windows application prgm using webbrowser control.If I click any links in the webpage,it should open in the same webbrowser control.Otherwise one new windowform should popup with webbrowser control in it. I am in trouble how to proceed If anybody have ever tried this,please let me knw …

Member Avatar for johnsims194
0
642
Member Avatar for cgyrob

I am creating a gridview dynamically using Itemplate but I have run into an issue where the event handlers I create for my drop down boxes in edititem template are accumulating every time it fires. To be more specific. When I enter edit mode and select a new item in …

Member Avatar for cgyrob
0
129
Member Avatar for Vdub.za

Hi there, Me and a buddy are having trouble in getting shellexecute to work in delphi 7. No matter what permetation of the word shellexecute i use, when i want to run the app shellexecute is not recognized. so how do i get shellexecute to work. been trying to get …

Member Avatar for BitFarmer
0
3K
Member Avatar for Yeen

I'm making a small game in which you can choose the amount of points needed for victory. You play until either cpu_point or player_point is equal to (or greater than) the rounds. You get one point per win. What I'm having trouble with is the while check. I'd like to …

Member Avatar for vegaseat
0
307
Member Avatar for TomRandall

Hi All, I'm using a TStringGrid (has to be Delphi 7, and no 3rd party components) I've customised it to allow per-cell colouring/fonts/borders/validation etc, by using a custom onDrawCell method. I really would like to add per-cell tooltips too, but I've been unsuccessful so far. I've modified something I found: …

Member Avatar for BitFarmer
0
632

The End.