199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for polawyz

Hi my professor for an entry level C++ class recently assigned us a homework problem, but hasn't quite taught us how to approach this problem. The problem asks us to create a working C++ program that has a class called [ICODE]Fractions[/ICODE] that has two int data members called numerator and …

Member Avatar for caut_baia
0
764
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around with …

Member Avatar for sam8
0
472
Member Avatar for sam8

Hi guys, I'm trying to count and time the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count and stopwatch function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem …

Member Avatar for sam8
0
465
Member Avatar for DumbProgrammer

Ok I've spent more time than you would believe on this one. I built the program, started from scratch. Over the course of the last week I've spent no shit about 30 hours on this and still cant get it to work right. What is suppose to happen is the …

Member Avatar for CanYouHandstand
0
129
Member Avatar for PDB1982

I'm new to VB, and I'm having some trouble creating an array of random numbers between 100 and 150 (where the numbers represent # of students). I'm not sure what I'm doing wrong, but my textbox is showing 0, no matter how many times I press the generate button. here's …

Member Avatar for PDB1982
0
1K
Member Avatar for pok.kys90

Problem Statement: Consider a collection of songs in an MP-3 library where each song is characterized by artistName, songTitle, albumName, playTime (in seconds), musicCategory, and albumProducer – hence, you will need to use a struct data type to hold a song and an array of structs to hold the song …

Member Avatar for pok.kys90
0
206
Member Avatar for sarfrazashfaq

Hi there I have following hash related code in Perl that i need to translate in Python if ( exists $legs->{$reference} ) { logg(" 2nd leg of swapes: $ref - merging"); my $swap = merge_swap_legs( $legs->{$ref}, $fields ); $ref = new_fk_ref( $fxall, $ref, $swap ); } else { $legs->{$ref} = …

Member Avatar for leegao
0
244
Member Avatar for jnthn205

Here is an example of the return statement in question: [CODE]public boolean either24(int[] nums) { boolean n1 = false; boolean n2 = false; for (int i=0;i<nums.length-1;i++) if (nums[i]==2 && nums[i+1]==2) n1 = true; else if (nums[i]==4 && nums[i+1]==4) n2 = true; return !n1 && n2 || n1 && !n2; //<----what …

Member Avatar for moutanna
0
109
Member Avatar for goodwin912

I have finally got my program finished and going. Im now looking to make it look a bit better. While it is processing it shows and empty tk window. How does one go about putting something in here? I'd just like my users to be reassured it is actually working …

Member Avatar for TrustyTony
0
679
Member Avatar for ElegantElephant

Is it possible to use PHP and a mysql query combined to allow a whole database backup file to be downloaded? For example, I'm currently backup up my database by using the export tool in phpmyadmin, but what if I wanted to add a button or link on my site …

Member Avatar for diafol
0
182
Member Avatar for nwalser

The board game scrabble works by assigning points to wooden tiles arranged in cells on a board. It's described here:[url]http://en.wikipedia.org/wiki/Scrabble[/url]. We'll simplify this considerably, and consider the following question. We begin with the letter-scoring scheme from Scrabble: a = 1, b = 3, c = 3, d = 2, ..., …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for bubba-bo

Hi, I am trying to do an assignment about buying zoo tickets but I am becoming stuck on the last hurdle when trying to get the accumulate number. [CODE]import java.util.Scanner; public class ZooTaking { public static void main(String[] args) { // Create a Scanner Scanner input = new Scanner(System.in); // …

Member Avatar for bubba-bo
0
123
Member Avatar for cyberparadox

I am writing a command line dbm editor and have ran into a small issue. If I try to run certain commands (ie add, remove, display) when I do not have a file open, I get the following error: [icode] Traceback (most recent call last): File "C:\Users\William\Desktop\dbmEditor.py.py", line 35, in …

Member Avatar for cyberparadox
0
147
Member Avatar for jvestby

Hello Today is the first of february and I noticed a bug in my coding. I use the php date function to give me todays date in an european style: 010210 I then insert this date to a mysql table. The problem is that the date after being inserted is …

Member Avatar for njm5785
0
78
Member Avatar for mission_PHP

I have been working on this for 2 days now. I have a form with a text box that allows 180 characters, if a user types in something with no spaces it wrecks my site since there is no space for the text to wrap in the table cell when …

Member Avatar for mission_PHP
0
182
Member Avatar for Tops

def T2(x): return x * 2 def dozen(): return T2('12') def enestrate(): return T2(3) print int (dozen()) + enestrate() I know it prints 1218 but i dont understand the code and the whole concept ... I used python to run it

Member Avatar for BestJewSinceJC
0
127
Member Avatar for ahmed.123

hello n is 10 numbers 10 50 25 75 2000 30 500 800 10 25 485 p.s var[i] is the variable contains all above numbers for example if the user enters 25 how do i print out how many times number 25 was enterd not in which index it is …

Member Avatar for ahmed.123
0
92
Member Avatar for Sharon5

I have a difficult time with getting the programs started. I read the book but I am not getting anywhere. There just is not enough examples to help me. The book we are using for CSC 135 is called Java Software Solutions by Lewis & Loftus. We are starting on …

Member Avatar for BestJewSinceJC
0
490
Member Avatar for esash28

Hi everyone.. I am a new programmer to OpenGL using C++. I have an nxn grid having numbers in each cell of the grid.. I have to swap the content of two cells.. ie., the numbers in 2 cells selected, have to be swapped. I am not knowing how to …

Member Avatar for daviddoria
0
931
Member Avatar for xcarbonx

[CODE] getline(inFile, st[i].name) while (inFile){ inFile >> st[i].id >> st[i].eng101 >> st[i].hist201; i++; getline(inFile, st[i].name); [/CODE] The above code only reads the first line of my input file, and the rest prints out zeros. My input file is set up like: John Wall 345505050 95 66 The output looks like: …

Member Avatar for kenji
0
93
Member Avatar for Tigermes

Guys, Appreciate if anybody can help me. I have a send_mail.php on my site that works great. The point is that I want a copy of all sending emails to be redirected also in one of my postbox. I need this to track what is going on, and what kind …

Member Avatar for mmartinho
0
162
Member Avatar for vskumar19

Hello friends, I am writing an Application in pygtk ,there i got stuck up with this problem I want to open a text file using any editor using python Can any give some solution to this please ... Thanks in Advance ...

Member Avatar for hondros
0
11K
Member Avatar for johnnyd1986

Hey everyone, I need help with a Python issue. This is what I have so far: [CODE]scores = [] choice = None while choice != "0": print \ """ High Scores Keeper 0 - Quit 1 - List Scores 2 - Add a Score """ choice = raw_input("Choice: ") print …

Member Avatar for Gribouillis
0
145
Member Avatar for the_mia_team

I Have this problem and honestly have no idea where or how to start this, can anyone give me an idea or help? [QUOTE]Write a JavaScript program to calculate the statistics of words in a web page. When running the program in a web page, the script should output all …

Member Avatar for fxm
0
134
Member Avatar for pichi89

Hey, I need a function that virtually increase the size of an array, by creating a new array with the size of the old array plus the default array size and copying the content of the old array to the new array, finally returning the new array. This is a …

Member Avatar for Fbody
0
94
Member Avatar for balam

Hi, I changed my table to InnoDB so one table can be used as foreign key. To do that i had to DELETE the content in my child table. I exported and saved the data on my computer. 1, Now that im trying to import all the data with phpMyAdmin …

Member Avatar for rch1231
0
59
Member Avatar for inetsubscriptio

I am breaking my brains for 3 days already on this. I read a lot on different web sites (so please do not have an impression that I am being lazy), I do not understand how to make it using php - in my case I use the name process.php …

Member Avatar for fobos
0
218
Member Avatar for jiraiya

Hi everyone, I've written a small program to convert combinations of English characters into their corresponding Chinese and Japanese equivalents, and it's working on my computer at home, so so far so good. However, I'd also like it to work on computers which don't have Chinese or Japanese fonts installed, …

Member Avatar for jiraiya
0
171
Member Avatar for yznk

I am writing a sort program and i am getting the error " error: no matching function for call to 'Object::setdepend(Object*&)' " in this line " graph[i]->setdepend(graph[atoi(buffer.c_str())]); " which is in my read function. I am not sure how to fix this, can anyone help? [CODE] #include <iostream> #include <fstream> …

Member Avatar for Fbody
0
1K
Member Avatar for verbalurbs

Hello I want to compare an inserted date against two stored dates in order to validate an entry. The date entered is being stored in a separate table from the stored dates. I am not sure how to go about this. So far I have this: [CODE]create PROCEDURE sp_GetTime @FullName …

Member Avatar for verbalurbs
0
1K
Member Avatar for Dcurvez

I have a question I am hoping someone canhelp me with. I have a form that consists of a Tab Control..that is filled with text boxes..a ComboBox..and a Notes Box. I just really dont know what extension to put in the SaveFileDialog :(. Can I just put something like *.* …

Member Avatar for Dcurvez
0
95
Member Avatar for khan17

hi, i know tat enter and f1 keys can be pressed programmatically using "SendKeys" function. but now i just want to know whether it is possible to press the alphabet 'S' in the keyboard programmatically. Expecting reply. thanks.

Member Avatar for ddanbe
0
151
Member Avatar for riahc3

Hey Im doing a loop with somthing similar to this: [code=C] char stn[25]; do { printf ("Insert a number:\n"); gets(stn); }while (stn!="123"); if (str=="123") { printf ("Good value!"); } [/code] Now if I input 123, it enters the if that prints "Good value!" and the program ends naturally. Now if …

Member Avatar for jephthah
0
203
Member Avatar for bondzerg

HTML files use tags enclosed in angle brackets to denote formatting instructions. For example, <B> indicates bold and <I> indicates italic. If a web browser is displaying an HTML document that contain < or >, it may mistake these symbols for tags. This is a common problem with C++ files, …

Member Avatar for bondzerg
0
385
Member Avatar for bajanpoet

I've created an SSIS package where I have an FTP Task inside a ForEach Loop container. I am trying to loop through each file in the particular folder and send it to the FTP site. I am sure that I got the For Each Loop working, as the error message …

0
149
Member Avatar for zhollett

Hi, I would just like to start off saying that I probably don't know enough to be even asking this question but I am pretty good at taking examples and working with them to produce the results I am looking for. So, here is a little bit of information about …

0
121
Member Avatar for mannoosh2000

Hello, I have got an assignment to modify an existing ISR. Can someone guide me how to do so? It is to write an assembly program that exploid an existing ISR and modify it. Thanx

Member Avatar for mannoosh2000
0
104
Member Avatar for bongoboia

Hi to all, I have a problem and can't understand why this happen... I'll explain all now. I'm not a very good programmer, I'm just starting and I'm doing a program that must run on linux like a daemon. The job of this program is to take all the characters …

Member Avatar for nezachem
0
162
Member Avatar for rcsamich81

Hi, I'm trying to hide 5 to 12 buttons on a form until a screenshot is saved to the clipboard. I have it set right now so the user clicks a button(btnSavePDF) and then whichever buttons are visible are made not visible. But I haven't a clue how to restore …

Member Avatar for rcsamich81
0
3K
Member Avatar for moni94

Hi. I made a program for tcp chat but I'm really confused with which IP to use. I can send a message to myself by sending a message to a local IP such as 127.0.0.1 or 192.168.1.100. When I tried with my external IP (the one from whatsmyip.com) I get …

Member Avatar for Mattan360
0
113
Member Avatar for veeresh.k

hi... 'm findin it difficult to access system date in a c program.. pls help me... N also to write code fo airline reservation in c...

Member Avatar for Salem
0
121
Member Avatar for smush

Hi everybody, I'm having some difficulties with mysql_num_rows( ) on line 26. I keep getting a warning that the supplied argument is not a valid MySQL result resource. What does that even mean!? I get the same warning on line 51. Can somebody fill me in on why this comes …

Member Avatar for Froger93
0
154
Member Avatar for rahul8590

How to restrict the size of image thats to be uploaded . I am creating a small social network and have space constraints . So , i dont want to restrict the image size to be confined to certain limit.

Member Avatar for Froger93
0
165
Member Avatar for TigerGirl

Hi, I am trying to understand why this statement in the book is wrong: "given a C entity, there is at most one related A entity and at most one related B entity". Is it that it doesn't apply to a specific kind of relationship?? So, if I have an …

Member Avatar for pclfw
0
756
Member Avatar for xerreck

Hello everyone I am working on a secruity program Demo. The program should allow the user to enter a message, one character at a time. The program should then display the corresponding digit or punctuation according to the ASCII character set. For example, if the user enters the letter a, …

Member Avatar for xerreck
0
157
Member Avatar for jephthah

i know this is about MySQL, but there is no 4GL forum, so i'm hoping one of you experts might know: we have an application that uses Progress (on a unix system) that imports data from .csv files and writes the various fields to the database. one particular type of …

Member Avatar for jephthah
0
226
Member Avatar for StratmanPereida

I need to make this into a multi-dimensional array. I know I need to change presArray = Table1Builder(60, "STR") to presArray = Table1Builder(60,3, "STR") I am not sure how to load it. Do I need three load statements? Help Please! [code] # Import string to use split function. import string …

Member Avatar for StratmanPereida
0
185
Member Avatar for Ultratermi

Hey, I wanna use OpenReadAsync instead of OpenRead because its blocking my Form.... But i cant get it work.... Ok... Im programming in C++/Cli but its not rly different. [CODE] IO::StreamReader^ sr = gcnew IO::StreamReader(webClientOther->OpenReadAsync(gcnew Uri("Site"))); [/CODE] In C#? [CODE] IO.StreamReader^ sr = new IO.StreamReader(webClientOther.OpenReadAsync(new Uri("Site"))); [/CODE] I hope I …

Member Avatar for Ultratermi
0
342
Member Avatar for letigre

I've not programmed extensively, and I've got to create a program that's beyond my knowledge. I'm trying to create a program that will help me measure the amount of memory a certain IP routing algorithm will use to store address prefixes. The program must convert each dotted decimal address to …

Member Avatar for masijade
0
131
Member Avatar for dragontruong

This is what my debugger says, but I can't find the problem. Holding.h:15: warning: `class Holding' has virtual functions but non-virtual destructor In file included from p6.cpp:12: Recording.h:13: warning: `class Book::Recording' has virtual functions but non-virtual destructor p6.cpp:90: error: expected `}' at end of input Book.h:14: warning: `class Book' has …

Member Avatar for mitrmkar
0
159

The End.