43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Kob0724

I've been trying to compile a program I wrote with QT on a Mac for about a week now and I can't get it to work for the life of me. I'm very confused because the code compiles just fine on a linux machine using a core 2 duo, and …

Software Development c++ qt xml
Member Avatar for kmote
0
254
Member Avatar for J-son

The following program is to produce the sum of Even and Odd array element. The program works properly when I use int instead of double. But getting errors when using double. Could anyone tell me what is the problem? Cus I wan it by using double array. and I don't …

Software Development c
Member Avatar for J-son
0
92
Member Avatar for Coyboss

I am working on a simple "test 123" java program for a RoboJDE robot. I keep getting a semantic error when I compile. The error reads ***semantic error: "private" is not a valid modifier for al ocal variable*** ***semantic error: "staict" is not a valid modifier for a local variable*** …

Software Development java
Member Avatar for Coyboss
0
277
Member Avatar for elva.tanaem

Hey Guys, I'd like to try using function and procedures on my project, I tried to write them on different unit say unit2 to be used in unit1. I find a difficulties using them in unit1. thanks in advance! Elva

Software Development pascal
Member Avatar for elva.tanaem
0
327
Member Avatar for chenzhp

Why static data member 'int' could initialize in class body? but 'double' can't? eg: [code=cplusplus] class Example { public: static double rate = 6.5; //wrong... static int versize = 20; //right } double Example::rate = 6.5; //yes [/code] What reason by design that syntax ?

Software Development c++
Member Avatar for chenzhp
0
207
Member Avatar for pocnib

I know this is a homework question, but I have reached the end of my rope and really need guidance. I have had four years of Java programming then walked into my CS 3 class and was given an assignment in python. I have never worked in Python before but …

Software Development python
Member Avatar for pocnib
0
165
Member Avatar for ambarisha.kn

Hi everybody, I want to write enter in a text file. How to do this. I wrote the code as follows. see if i write like this, it is printing one special character like arrow. I want to print in the following line, instead it is printing in single line …

Software Development c
Member Avatar for ambarisha.kn
0
267
Member Avatar for dmanw100

Is there a reliable, cross-platform way to pause a program for a set amount of time? The getch() function will wait for user input, but I would like to be able to pause for say 3 seconds. If a for loop is used like so: [CODE]#include <iostream> using namespace std; …

Software Development c++
Member Avatar for Ancient Dragon
0
129
Member Avatar for lumeniel

Hello I have a problem that I can't understand. This errror return when I try to compile: name 'image_name' is not defined. This is my code: [CODE] def LoadImage(image_name): file_name = self.clssSnc.sprites[slf.clssSnc.stat] if self.clssSnc.stat == 0: file_name = self.clssSnc.spritesi[slf.clssSnc.stati] #carrega a imagem do cenário ou do personagem fl = None …

Software Development python
Member Avatar for lumeniel
0
729
Member Avatar for AUGXIS

hi guys, i have manage to copy and paste files (excel, word, txt) in specified locations, but when i used it to copy exe files, the exe files are not being copied to specified locations.

Software Development visual-basic
Member Avatar for AUGXIS
0
90
Member Avatar for twburkle

I am currently working on a program that takes input from a file and calculates the averages. I decided to just write the program they way I "thought" I could do it. [code]struct student{ char name[15]; double average; double score1,score2,score3; }; struct student num_students[50]; int main (){ int i = …

Software Development c data-structure
Member Avatar for twburkle
0
137
Member Avatar for kbrassfield

Can anyone tell me which utility package includes wwIncrementalSearch? I am trying to change a system that a programmer created that has passed away and left no documentation. Any help would be appreciated.

Software Development pascal
Member Avatar for kbrassfield
0
99
Member Avatar for Jennifer84

I have a problem with a redefinition when open a form. From Form15 I open Form13 wich works great: [code] #include "Form13.h" Form13 ^form13 = gcnew Form13; form13->Show(); [/code] Now when I add the same code on Form21 I will have the compilererror below: Why does this happen ? The …

Software Development c++
Member Avatar for Jennifer84
0
100
Member Avatar for random7

Hi, everyone I have a question about reading column data from file. helium.dat He 1.31 He 1.32 He 1.39 He 1.41 He 1.38 He 1.39 He 1.21 He 1.45 He 2.31 I want to print just the 2nd column data(number) from helium.dat like below 1.31 1.32 1.39 1.41 1.38 1.39 …

Software Development python
Member Avatar for hardik.38
0
237
Member Avatar for bops

It is quite hard to explain what I mean here, but... Say I have a class that is stored on a hard drive like this.. [CODE]project/helpers/MyToolkit.class[/CODE] i.e. the class MyToolKit is stored in the package project.helpers and would declare it in its code like this.. [CODE=Java] package project.helpers; public class …

Software Development hard-drive java
Member Avatar for Ezzaral
0
152
Member Avatar for newtechie

i did a codig to find the no. of words,no. of characters and no. of lines in a file i was not getting the output, can anyone help me [ICODE]import java.io.*; public class countCharacters { public void Lines()throws IOException { File f = new File("in.dat"); FileReader fr = new FileReader(f); …

Software Development java javascript web-server
Member Avatar for newtechie
0
454
Member Avatar for dmanw100

I was wondering if anyone was familiar with reading data from a file into your program. I tried using the file stream the same way cout is used but it doesnt seem to work properly. Would the getline(); function work? If so, how would that be implemented? [CODE]#include <iostream> #include …

Software Development c++ file-stream
Member Avatar for dmanw100
0
137
Member Avatar for laghaterohan

I am really at my wits end now....i am unable to find ne proper code for autonumber generation...if i do find its not working. plz i want it ..i am using sql server 2000 and vb.net 2005. just tell me can we make use of max function ? ie. first …

Software Development vb.net
Member Avatar for laghaterohan
0
242
Member Avatar for ambarisha.kn

I have input files like this a.iup b.iup c.iup....... i have these input files in a variable called fname; like this char *fname="c:\\iupfiles\\a.iup"; every time i will get file name in this variable. But how to concatenate the variable with some other name like as follows in output file name. …

Software Development c file-system
Member Avatar for ambarisha.kn
0
78
Member Avatar for laghaterohan

Can ne one of u plz tell me how to search a particular record in the database ? my prob is that when i enter say an ID / Name it should search into database for the same and accordingly if the record is found my cmdbutton will be enabled …

Software Development vb.net
Member Avatar for laghaterohan
0
107
Member Avatar for sciwizeh

I am using Visual Studio 2008, and i am working with a single document application, it is CView Based, and i want to know how i can in addition to the view, that i will be drawing on, how i can add controls, like CButton and CListBox. do i have …

Software Development c++ visual-studio
Member Avatar for sciwizeh
0
2K
Member Avatar for freelancelote

Hi, I'm learning c++ at the moment and the problem I have is probably very simple. I wrote some code to calculate prime factors of a given number. If I define variables as unsigned long, the code compiles and the program runs. If I define variables as double then compiler …

Software Development c++
Member Avatar for freelancelote
0
146
Member Avatar for gispe

hi ppl, im having a problem with this program. The thing is that i need to enter the license, age and level of education of an amount of ppl, but dont know how many. then i have to get the percentaje of runners and sellers, the average age, amount of …

Software Development c++
Member Avatar for ArkM
0
120
Member Avatar for onemanclapping

hi, when I try string.size on accentuated words, the result is bigger than it was "supposed" to be, as accentuated characters count as 2 size units instead of one. how can I count them as one? cheers

Software Development c++
Member Avatar for onemanclapping
0
182
Member Avatar for Clockowl

Hey guys, How would one create a vector of pointers to functions? I know from C to create an array of functions, but I'd like to learn how to do it with vectors as well. Here are my efforts so far: [code=cpp]#include <iostream> #include <valarray> #include <vector> #include <ctime> #include …

Software Development c++
Member Avatar for Clockowl
0
148
Member Avatar for EkoX

Hi all... i new to this language. so i m sorry if my question is very basically. I have two forms in my project. in first form i have a button. i want when i click this button form2 can be opened. Please help... Thank you

Software Development vb.net
Member Avatar for nileshsarode
0
175
Member Avatar for fsemilla

good day! can anyone teach me how to access images and display these images using c++?because i have a project regarding accessing and viewing images in mobile phones...kindly help me...:sad:

Software Development c++
Member Avatar for fsemilla
0
117
Member Avatar for shijunair

hello , I am facing a problem when i am trying to get the difference between two dates which is been taken from html page through datepicker. now i am selecting two different dates with different month.for example d1 dd/mm/yyyy = 12/09/2008 d2 dd/mm/yyyy = 2/10/2008 now i am getting …

Software Development java
Member Avatar for shijunair
0
99
Member Avatar for hanzi_ru

my data report does not provide the data that i need. instead it provides some integers. can someone please help. ive attached my programme herewith

Software Development visual-basic
0
82
Member Avatar for hanzi_ru

ive attached my programme herewith. the report doesn't function properly in the tab 2 i have put a command button which generates the report could you please help

Software Development visual-basic
Member Avatar for hanzi_ru
0
103
Member Avatar for dr_hamburger

hello guys... i have a bit of a problem with my assignment im working on :( what the problem is there is a function which accepts a string, a keyword and an array of keywords to replace the keyword occurrences with for eg, def function(text, keyword, keyword_list): and for eg, …

Software Development python
Member Avatar for woooee
0
503
Member Avatar for xcesmess

I'm having a little bit of trouble using the ifstream 'get' command. When I say trouble I mean it is not returning the values expected and I need a little guidance, if you will :). Basically what I'm doing is reading a file in through C++ and then going to …

Software Development c++ ios
Member Avatar for xcesmess
0
1K
Member Avatar for Duki

Probably a bit of an advanced question... How hard is it to allow for multi threading support with C#? For example, we have a motherboard that has the capability for two processors with four cores each (dual xeon quad cores). We want to dedicate one processor (or core) to calculating …

Software Development
Member Avatar for Duki
0
132
Member Avatar for curt22

I'm writing a class that does a lot of reading and writing from a stream It needs to write bytes, sbytes, and signed or unsigned int32 and 16. I have been having trouble finding ways to read/write evrything I need to. UInt16 and UInt32 were easy when i looked for …

Software Development
Member Avatar for curt22
0
136
Member Avatar for amrith92

Hello, Now, this may sound stupid, as it concerns basic file I/O, but my code doesn't work correctly- at least it isn't doing what I want it to. I wanted it to write a file the first time it runs, which it does perfectly, and every time it is run …

Software Development app-store c++ ios
Member Avatar for amrith92
0
122
Member Avatar for Hazey

Hi, I'm trying to work out this problem in my code where i am trying to replace a keyword with another word. The problem I am running into is that when the keyword is present inside of another word. Eg, "I'm trying to debug a problem but the debugger is …

Software Development python
Member Avatar for bvdet
0
74
Member Avatar for chillax137

I don't have a problem reading in one big array of numbers from a file. I can't figure out how to read in multiple arrays that are delimited by certain characters. For example, my dataset has the following format. #BEGIN 1 1 .1 .2 2 .8 .3 3 .9 .5 …

Software Development dataset python
Member Avatar for vegaseat
0
158
Member Avatar for sciwizeh

hello, google, daniweb, and microsoft searches didn't help me with this so i hope that someone here will know. i'm trying to have a method called at a fixed interval of time from the time an application starts until it ends ( RedrawWindow() ). i know how to do it …

Software Development c++
Member Avatar for sciwizeh
0
213
Member Avatar for zabr

hi.. :) i'm a first year college student and just starting with turbo c. We have a project that is to be pass on August 29. I hope someone can help me cause i'm really having a hard time with this. I have to make an exe. of the program …

Software Development c
Member Avatar for Aia
0
127
Member Avatar for Repurcussion

I'm working on a homework/project to tokenize a set of operands (double) and operators as inputs. It's been going well enough and I have been able to finish it by implementing my own tokenizer but when I tested my output exe with digits greater than 7 I get a random …

Software Development c++
Member Avatar for Repurcussion
0
166
Member Avatar for joshmo

Hey all.. I have 3 classes in my program but Iam having trouble accesing a method in another class. Iam getting the error message cannot find symbol method printInfo(). Below is the code [code=cpp] class Book{ private String author; private String title; private int year; private Chapter first; private Chapter …

Software Development java
Member Avatar for joshmo
0
219
Member Avatar for OutOfReach

Ok I'll get straight to the point, how can a create a search box? You know, you type something in and it filters out the ones that don't match. Is there a special widget for this? Or would I have to create a normal lineedit widget and do all the …

Software Development python
Member Avatar for OutOfReach
0
206
Member Avatar for tracethepath

i have made a program on text file to remove extra blank spaces in a file but it is not working correctly. when i run the program just "enter text" appears and after entering the text the screen just remains as it was. Nothing else appears. I cant find where …

Software Development c++ file-system
Member Avatar for udayasankar
0
9K
Member Avatar for Don Gino

Hey, I made a VB project which saves and loads data by writing and reading from an MS Access database. One problem is when i run the exe on a different computer i get the "Runtime Error 91 Object variable or width block not set " error. Now I am …

Software Development visual-basic
Member Avatar for Don Gino
0
157
Member Avatar for khbummy

Is Generics needed for this? TIA [code=c#] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VehicleWorld { public class Car { private int topSpeed; public Car() { } public Car Select(int topSpeed) { Car c = new Car(); c.topSpeed = topSpeed; return c; } public override string ToString() { …

Software Development
Member Avatar for khbummy
0
133
Member Avatar for Pikachumanson

I am making a character generator for school. What I have to do is make my CalcPoints method abstract. Unfortunately I keep getting These three error for each of my derived character classes and I don't know what to do. C:\Users\Hector Rosario\Documents\Visual Studio 2008\Projects\Rosario_Week3\ConsoleApplication2\Program.cs(126,26): error CS0115: 'UltimateWarrior.CalcPoints()': no suitable method …

Software Development visual-studio
Member Avatar for LizR
0
165
Member Avatar for eenceo

I made an mp3 player in Delphi. I set it up to register it's playlist file type. Now when you double click on a playlist in explorer it opens my player, like it should. How do I find out what file they clicked on to process? Google was useless for …

Software Development delphi pascal
Member Avatar for eenceo
0
84
Member Avatar for dineshdileep

Hi guys, i am a beginner with python, (in fact, i started yesterday) I have some experience with C and CPP. So somethings in python just surprises me(happily, i dont want to say confuses) [code=python] #consider there is a file object infile while 1: line=infile.readline(); if not line: break print …

Software Development python
Member Avatar for zachabesh
0
91
Member Avatar for Dio1080

The program compiles but is not run right can somebody help plz? There are two parts a class and a main. [code=java] public class LinkedList56 { private class node{ int data; node next; } //create an empty linked list public LinkedList56(){ first = null; } //return true if the list …

Software Development java linked-list
Member Avatar for Dio1080
0
140
Member Avatar for psycheheaven

I have the following code, which creates children process. Children process is a shell script on unix platform, which prints two lines to stdout. Parent process reads that output via the pipe: [code=c++] char *shell_command = "cd /home/user; for infofile in *.info ; do grep -q 'PID: 10631$' ${infofile} ; …

Software Development c++ unix
Member Avatar for psycheheaven
0
110

The End.