132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Usura

hey Ive been given a task which im suppose to create a chained container which recieves only 1 string, and continues chaining untill there is a repeat in the input, I was thinking that maps would be more appropriate but im not sure if I would be able to chain …

Software Development c++
Member Avatar for StuXYZ
0
110
Member Avatar for mingke

Hi... I've been trying to make a program where the input is txt file, and the output will be saved in txt file. But, I keep getting error Message. My code looks like this: [code] #include <stdlib.h> #include <stdio.h> int main (){ int i,j; float H [100][100]; FILE*in; in=fopen("0.txt","rt"); FILE*out; …

Software Development c file-system
Member Avatar for mingke
0
202
Member Avatar for Mudi

Hi, can any one tell me that how can i add two different statment constant and show it one answer for example , cout<<"cost of letter ,0.40"; cout<<"GST:0.05"; i want to add values between these two statment o.40+0.05=0.45 i want to perform this function in programme so can anyone please …

Software Development c++
Member Avatar for siddhant3s
0
118
Member Avatar for happypig112
Member Avatar for tux4life
0
76
Member Avatar for lqdo

Im am using serialization and deserialisation to read and store settings in a xml file. I have het created a generic class because I want to store different kind of settings in different kind of xml files. Is it possible to instantiate the type of the generic class within that …

Software Development xml
Member Avatar for lqdo
0
99
Member Avatar for Pavan_

Hello friends, I have have found lots of ways to implement a stack using different data structures. But i want to what us the best way (best means code understandability , performance) to implement a stack!! Share ur thought so i can reach to any final answer. Different ways ->1. …

Software Development c
Member Avatar for Salem
0
106
Member Avatar for psychoangelo89

so my program goes like this: combobox1 controls conbobox2, so if I choose an item in combobox1, combobox2 will be populated by my query from my database. the problem is that, whenever i try to choose another item from combobox1, combobox2 will only stack the items from the database, and …

Software Development
Member Avatar for AmirBedair
0
217
Member Avatar for Jemjoo

Hello, I have a problem with BindingSource.Find. I have a datagridview with the columns Klantnummer, Achternaam, Contactpersoon, Straatnaam, Plaats, Telefoon and Mobiel. I want to find a row with the Bindingsource.find method. Above the datagridview i have a combobox to select the column and a textbox where I can type …

Software Development vb.net
0
65
Member Avatar for AnujSuper9

Hello everyone! So, I've been given an assignment to create something of a simplified Scrabble game in C. I'll start of by mentioning that I'm aware of the vastness in similarities between C and C++, but I am more versed in C++ and so I'd consider my C to be …

Software Development c
Member Avatar for jephthah
0
6K
Member Avatar for yun

i need little help of urs in the above code, RightFrom Function is perfectly working but there is a logic bug in LeftFrom Function. when i m sending North as argument the result from LeftFrom is -1 but i need 0. help me to solve this issue. [code]#include <iostream> using …

Software Development c++
Member Avatar for Ancient Dragon
0
100
Member Avatar for mimio134

Hey guys appreciate u can help to do this: Write a program to implement linked lists to handle large integers. Since we cannot store big integers in any of the primitive types, the only way is to manage each digit as a node in the linked list. Take care that …

Software Development algorithm c++ linked-list
Member Avatar for Sky Diploma
0
2K
Member Avatar for titosd

Hello, I have a problem with this method: [code=java] public boolean addRaceDrivertoTeam(String driverLicenseNumber,String nationality,String constructorName, String fullName, Date dateOfBirth , int worldChampionships, int totalScore, int highestRaceFinish){ RaceDriver driver = new RaceDriver(driverLicenseNumber,fullName,nationality, dateOfBirth,worldChampionships,totalScore, highestRaceFinish); Constructors con; con = Constructors.valueOf(constructorName); RaceTeam team= new RaceTeam(con); if (driver.getRaceDriverKey()!=null) if (raceTeam.containsKey(con)&&(driver != null) && !team.isDriverExists(driver)){ …

Software Development java
Member Avatar for titosd
0
128
Member Avatar for suretd

Good Day All, I have a problem with a database program. The program is to create a database for a Stocktracker program. The details for the code, I got directly from our textbook, and it compiles perfectly, but as soon as I run the program it gives me the following …

Software Development java microsoft-access
Member Avatar for suretd
0
131
Member Avatar for pspwxp fan

Hello, i'm learning to work with loops and it was fine untill it came to nesting loops. In an exersize, i was told to use nested loops to display a pattern of asterisks like this: (2 asterisks, 4 asterisks, 6 asterisks, 8 asterisks, 10 asterisks, 12 asterisks) ** **** ****** …

Software Development algorithm c++
Member Avatar for pspwxp fan
0
577
Member Avatar for atman

Hello., I'm very green in c++, and at school we just had a first lesson on pointers to functions, and I'm going over teachers code using debugger and dont understrand why the line age = getInt(IsValidAge); executes before printf, i thought C++ compiler executes lines sequentially. Any help would be …

Software Development c
Member Avatar for Salem
0
158
Member Avatar for Joe Shmoe

I am just starting to learn x86 assembly language because eventually I want to make my own OS. I wrote a boot sector in fasm and it doesn't load the second sector into memory. Because I just started, there is probably something obvious wrong with the code. Could anyone tell …

Software Development assembly
Member Avatar for Joe Shmoe
0
132
Member Avatar for Tamir09

How would I read XML data into an array? I have an XML sheet, and I want to read each of the values of a specific element into an array. So for each element in each data group I would have an array holding that data. The idea is to …

Software Development vb.net xml
Member Avatar for Tamir09
0
3K
Member Avatar for sivak

can anyone explain stactic vs instance method by understanding example plz

Software Development
Member Avatar for kvprajapati
0
70
Member Avatar for hypernova

[code][/code] Hello everyone ! I am still a beginner, and am posting the code in which I have problems - I compiled it in VC++ 6.0 standard edition, and it gave two warnings and no errors. The warnings disappear if i use double everywhere instead of float. the warning (same …

Software Development c
Member Avatar for s_sridhar
0
138
Member Avatar for don0369

Hello everyone this is my first post. My problem is reading from a text file. The file is in the format: name\tdouble\tdouble\tdouble int Since I have no control over the format of the file and do not know the size, I first begin by counting the lines of the file(nLineCount2). …

Software Development c++
Member Avatar for don0369
0
120
Member Avatar for connormcleod

hello, I am working on a little database program in C++ that writes to a text file, saves, and then reads the text file into array's, but i'm not real sure how to go about converting the information in the text file back into arrays. the text file looks like …

Software Development c++ file-system
Member Avatar for kvprajapati
0
9K
Member Avatar for KimJack

Hello all, I am trying to display time in the following format that represents hours and minutes: hh:mm [code] public String getTime() { String time = String.format("%tI:%tM", hours, minutes); return time; } [/code] For some reason I keep getting the following error: "The method format(String, Object[]) in the type String …

Software Development java
Member Avatar for Xhamolk_
0
204
Member Avatar for Prakash_8111

Hey guys, How I will come to know my perl script for copying files (generally very big sized file 1000 gb ) between two server successed or interupted ? How I will get the error status of the scp commmand I used for copying file ? Thanks in advance

Software Development perl
Member Avatar for mitchems
0
108
Member Avatar for gretty

Hi I am testing myself by making a simple program that reverses the contents of an array. It works for some values but the last value of the array is not correct. Can you take a look over my code to point out where its going wrong? the original array …

Software Development c++
Member Avatar for s_sridhar
0
118
Member Avatar for shibu.web

I have create a database in ms access 2007 but i don't have to connect this database to vb6.0 please help me.........

Software Development visual-basic
Member Avatar for vb5prgrmr
0
124
Member Avatar for gretty

Hi I am making a program that reads a string, when it finds a '.' character it changes the next character after the '.' to uppercase. My problem is, I am trying to take a string with 5 arrays (string line[5]), & extract the 1st character of line[0], then the …

Software Development c++
Member Avatar for siddhant3s
0
265
Member Avatar for terdie

hi there.Good day!its me again.. Can you help with some codes that I have trouble with Im using visual c# 2008 and access 2000/2002 database,I have this database called VIDEO and some tables. theres add/edit/delete button in my form to add/edit/delete videos to the database. If the user adds a …

Software Development c c# c++
Member Avatar for terdie
0
134
Member Avatar for Biolizard5000

Quicktime automatically plays files I want to download. Such as Mp3 download links and such. An example is [url]http://beemp3.com/[/url] (There are more sites than just this one.) I use FireFox and tried "Save Link As" and also tried Internet Explorer's "Save As". It does nothing. Just flashes the timer and …

Software Development
Member Avatar for Biolizard5000
0
128
Member Avatar for trickx0729

Hey guys, [INDENT]I just want to know if its possible to code a java program that will automatically logs you on your online accounts (e.g. such as yahoo mail, facebook, gmail, multiply, or even in this site) using your own username and password you use to register on such accounts. …

Software Development java
Member Avatar for PhiberOptik
0
669
Member Avatar for leverin4

Picture 1 down below is of a Maze program I wrote as it looks when you open it. Picture 2 is the same Maze after the program finds its way out. I want to alter the code so the program adds each blue spot one at a time as it …

Software Development java
Member Avatar for VernonDozier
0
242
Member Avatar for adarshcu

[code=Cplusplus] file.open("1.txt"); file.seekp(pos,ios::beg); getline(file,temp); file.close(); [/code] i ve this small code where temp is string data type. suppose the value of pos points to a location yet to be filled with data, what would be the value stored in temp? is it NULL? temp is not been initialised by any …

Software Development c++ ios
Member Avatar for vmanes
0
102
Member Avatar for follow33

Hello to everyone !!! I have a problem with query in sql. Look in the photo and you will find details about my problem. Why i cant add a new record. When i will add ID, Emri and Cmimi i want to show them automatically... Does any one have idea …

Software Development sql
Member Avatar for follow33
0
111
Member Avatar for sonia sardana

hi frnds i want to ask that what is the format of cookies last modified..Coookies of Mozilla are saved in C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\x5ncmceb.default\cookies.sqlite If we read it last accessed date of cookie is in format 1244272348453125. How to convert it to date..Can somebody tell me?

Software Development sqlite vb.net
Member Avatar for Teme64
0
101
Member Avatar for osmano807

Hello, I am developing a program that will read files with many lines of text (perhaps 20 thousand), and to look for a text on each line, hit the text, perform a function. I have a problem because the files have as many lines, the program will be very slow, …

Software Development c++
Member Avatar for ArkM
0
122
Member Avatar for mrclark

I am trying to make a drawing app integrated into a program that i am making, but i am having the problem of trying to save the drawing. [code] Private Sub SaveDrawingToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveDrawingToolStripMenuItem.Click SaveDrawing.ShowDialog() Try DrawPad.Image.Save(SaveDrawing.FileName, System.Drawing.Imaging.ImageFormat.Bmp) Catch ex As Exception MessageBox.Show("Drawing …

Software Development vb.net
Member Avatar for Teme64
0
133
Member Avatar for Majestics

I want to learn JNI , please suggest me some basic guide.

Software Development java
Member Avatar for Majestics
0
120
Member Avatar for mindfad

[code]from psychopy import visual, core, misc, event import numpy #for maths on arrays from numpy.random import random, shuffle #we only need these two commands from this lib from random import * import math win = visual.Window([1024,768], units='pix', monitor='testMonitor',rgb=(-1,-1,-1)) numbers = range(100) #range of stimuli to be generated or how many …

Software Development ide python
Member Avatar for mindfad
0
208
Member Avatar for BestJewSinceJC

Ok, as I mentioned to Ezzaral, I'm working on learning Eclipse RCP but it is pretty hard to find good resources. I've found one good resource but it was written in 2006 and I'm really looking for some up to date online tutorials or resources using Eclipse Ganymede. Does anyone …

Software Development java
Member Avatar for BestJewSinceJC
0
105
Member Avatar for fatbob

Hi all I am new to programming and python and am having trouble reading particular strings from a text file and writing them out to a separate file. The file has a large number of lines, has the following format and is interspersed with signature sentences i don't need: subdoc="Book=2:chapter=1" …

Software Development file-system html-css python
0
71
Member Avatar for BillWebber

Hi I did have this code working some time ago and now for some reason it just returns a blank message box. In fact I have been trying to get this back running for many hours now and I am left with little option but to ask outside help. It …

Software Development visual-basic
Member Avatar for BillWebber
0
154
Member Avatar for fwso

Hello, everyone! I will graduate in this month, and I have contracted with a software development company as a Java Programmer. I am, however, wondering how could I become an excellent Java programmer! I need some suggestions on: how to improve my development skills? what kind of book or journal …

Software Development java
Member Avatar for peter_budo
0
323
Member Avatar for tomtetlaw

How do you render a font so that it changes when the variable changes? This is my code: [code=python] ############################## # Copyright lololol (c) 2009 # ############################## import pygame from pygame.locals import * pygame.init() GRAVITY = 0.07 FRICTION = None def getNumKeysPressed(): temp = 0 for item in pygame.key.get_pressed(): if …

Software Development python
Member Avatar for scru
0
291
Member Avatar for tomata2

this is a code for my project ,the project is In the beginning of the program, the users will choose either to create the road by them self by entering the speed of the car, the lane in which the car is moving and the position of the car in …

Software Development display java
Member Avatar for VernonDozier
0
105
Member Avatar for FallenPaladin

Hi I am a little confused about interfaces. Can an abstract class inherit an interface, so that interface can be used in conjunction of a class derived from the adstract? eg A is an interface, B is an abstarcat class, C & D inherit from B but have different proerties. …

Software Development
Member Avatar for sknake
0
302
Member Avatar for headacheinC

Hi all, I just get stuck with this kind of simple problem. Such a novice i am. Could you help me guys.:$ I try to built the code and for the first procedure i should open first the file. The file which i should opened its depend on the input …

Software Development c file-system
Member Avatar for headacheinC
0
136
Member Avatar for wrigha

I need to write a applet that displays between one and three figures that walk across the screen at different speeds form left to right. I have one figure walking across the screen but can't seem to get figure two or three to work correctly. This is what I have …

Software Development java java-swing
Member Avatar for VernonDozier
0
104
Member Avatar for lukethedrifter

Hello: Anyone know of an easy way to cast the unsigned char in[16] in the below code to an LPCWSTR using just the CRT? I tried swprintf but it wasn't working. I've been googling this for a week and appreciate the help. [CODE]/* ****************************************************************** ** Advanced Encryption Standard implementation in …

Software Development algorithm c encryption
Member Avatar for Ancient Dragon
0
226
Member Avatar for gretty

Hi I am making a program that reads a text file & displays them into an array. My problem is; I read the text file to determine how big the array needs to be, then I clear the input from the text file, then I read the text file again …

Software Development c++
Member Avatar for Ancient Dragon
0
93
Member Avatar for catchmrbharath

I was coding for a particular problem whose time limit was 2 seconds.. The no. of input was max 300000. Simply taking in the number using cin and outputting the same number with cout will take more than 2 seconds. Any ideas on how to increase efficiency??

Software Development c++
Member Avatar for s_sridhar
0
152
Member Avatar for alaamido

[B]Hi All , I have a simple question Iam now making a c# huffman compressor so I read the text file and decode it using the huffman tree that I will make ,I just have a simple problem which is writing bits I used the bitarray class but there is …

Software Development c#
Member Avatar for kvprajapati
0
155

The End.