43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for C++ Beginner

Problem: Write a class that defines a car. The car class stores the following data about a car: [B][U]Member Name Data Type[/U][/B] make string model string vin string owner string doors int mileage float gas tank float trip float gas remaining float Create methods to set data into the data …

Software Development c++
Member Avatar for jonsca
0
480
Member Avatar for nkinar

Hello-- I've been writing some code in C++ to test the [I]tffs-lib[/I] library, which is written in C. The library provides functions for directly accessing a FAT file system from within a program. Although most modern operating systems have drivers for accessing the FAT filesystem on SD cards, I am …

Software Development c++ legal operating-system
Member Avatar for nkinar
0
297
Member Avatar for I0adidas0I

OK I need some help... so far ive been able to get everything on my own but...im making a program that selects questions from an array numbered 1-40. i put in a random fuctions so the questions are chosen randomly. but i want to have it so that theres no …

Software Development c++
Member Avatar for peter_budo
0
160
Member Avatar for ms_farenheit1

I have been having a lot of trouble getting my overloaded operators to properly with each other, especially in cases such as a=a+b+c When I execute the program, I get an error: "Unhandled exception at 0x01201f10 in Project1_v3.exe: 0xC0000005: Access violation reading location 0xcccccccc." But I am not sure exactly …

Software Development c++
Member Avatar for jonsca
0
122
Member Avatar for invisi

It doesn't compile, why? [CODE]#include <iostream> #include <string> using namespace std; int main() { for(int cnt1 = 0, int cnt2 = 10; cnt1<10; ++cnt1, --cnt2) { cout << cnt1 << "--------Hello!---------" << cnt2 << endl; } system("PAUSE"); }[/CODE]

Software Development c++
Member Avatar for WaltP
0
307
Member Avatar for corbenik

Hi,everyone. I've been trying to extend Python's file type but I'm new to Python so I don't know if I'm going about it the right way. I hope someone can help me out with this or point me in the right direction. The problem isn't really subclassing file, but a …

Software Development python
Member Avatar for corbenik
0
125
Member Avatar for tetron

I have a std::string (char *, std::string::size_t ) constructor failing and I am not sure why. For my small test file there was no problem, but when using ifstream::read() with an unsigned int sz of 1Gb (1073741824) (I think that I used a pos_type 1st time) and the resulting char* …

Software Development c++ file-system xml
Member Avatar for tetron
0
211
Member Avatar for Her-o

I have never done any programming in my life but I have decided to go into engineering and in doing so we have to take this intro to programming course and I am pretty clueless. I am starting to get the hang of how python works but to put my …

Software Development engineering python
Member Avatar for jwenting
0
247
Member Avatar for vsagarmb

I have installed the Python Imaging Library. But i am not able to use it. When I run the script in windows it says "ImportError: No module named ImageGrab" I also created the PATH VARIABLE called PYTHONPATH and gave the location of the installed modules. Please help.

Software Development python
Member Avatar for Stefano Mtangoo
0
293
Member Avatar for Krstevski

Hello... I have problem with regex, I want to get the tables from another site... the regex is re.compile(r'<table.*?>(.*?)</table>') but when I get the tables I don't know how to return the value into the tables. [CODE=Python] #html = the page tbl = re.compile(r'<table.*?>(.*?)</table>') return tbl.sub('', html) #return html without …

Software Development python regex
Member Avatar for Krstevski
0
84
Member Avatar for sujithy15

overriden methods provide one interface multiple methods. what is meant by one interface multiple methods

Software Development java
Member Avatar for verruckt24
0
116
Member Avatar for tetron

I am having problems with the new operator() specifically within std::string I appear to have hit a memory limit in visual studio. Ideally I would like someone to help me find one of the following solutions: 1 - Can I access the memory in a very big file directly without …

Software Development c++ file-system ios visual-studio
Member Avatar for Ancient Dragon
0
1K
Member Avatar for anatwe

Hi, I want to define buttons that will switch between tab pages in a tabControl. What should I put in the click functions of the buttons? I tried focus, bringToFront, select, show. Nothing works... Thanks

Software Development
Member Avatar for anatwe
0
134
Member Avatar for dilake

I am not able to find the Compile Tab in Project Properties in vs 2008. Can someone help me out?

Software Development
Member Avatar for dilake
0
99
Member Avatar for elexender

Hi, Im pretty new to c++ programming so plz dont be offended if i ask "stupid" questions. Im want to open a file named "Alexander". The name of the file is stored in an Ansisting. So i want to add an ".txt" extension to open the file. Then i want …

Software Development c++
Member Avatar for elexender
0
138
Member Avatar for invisi

I wrote this programme but what two numbers you choose exit it? can you guess just by looking? Because I can't :( [CODE]#include <iostream> #include <string> using namespace std; int main() { bool aHo = true; int a = 0; int b = 0; while(aHo) { cout << "Enter Number …

Software Development c++
Member Avatar for invisi
0
81
Member Avatar for scias23

i just want to know, what is much better to do for data access? include the database to my solution (tools>connect to database), or just hardcode everything? somebody reply please. thanks

Software Development vb.net
Member Avatar for kvprajapati
0
112
Member Avatar for shrublet

Hello there, I am a Java programmer by trade and am VERY new to C so please excuse any blatant pointer ignorance, if possible. I am having a problem with the concept of returning something but also freeing it afterwards within a method. I am implementing a stack program and …

Software Development c
Member Avatar for rajdesire
0
114
Member Avatar for noname1015

I am doing fyp with rfid student attendance system currently. And, I face the problem on saving the database's data.This is the code that i write below: [code] Dim sqladapter As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("select * from table_0", conn) sqladapter.Fill(ds, "table_0") Dim sqladapter_1 As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("select * from …

Software Development vb.net
Member Avatar for noname1015
0
99
Member Avatar for moein_soltani

Hello all, I have registerd lately, we have a project about the implemention of huffman algorithm...! I have some problem... first is that I want to read space and Enter from txt file how can i do that? Next is how i should output to say that 0 and 1 …

Software Development algorithm c++
0
79
Member Avatar for hannaxbear

The function I am trying to write is supposed to be recursive and does the following: Return the number of ways that all n2 elements of a2 appear in the n1 element array a1 in the same order (though not necessarily consecutively). The empty sequence appears in a sequence of …

Software Development c++
Member Avatar for hannaxbear
0
165
Member Avatar for Prachi Doshi

Hey I m not able to understand the topics such as Abstract classes,annotations. Plz help me out. And I also want to know how can i practice online java programs. I m not able to find some specific practice problems.:(

Software Development java
Member Avatar for Prachi Doshi
0
157
Member Avatar for frank.zappa

I've started using vim recently as my main text editor and I've tried to come up with a map command which compiles and runs my java source code. This is what I have so far: map <F4> :!javac % <CR>:!java %< <CR> but it doesn't always work. For example, when …

Software Development java
Member Avatar for frank.zappa
0
810
Member Avatar for C_Dannehl

Ok so a little bit of background, I am trying to write a boggle solver, I had everything working until I tried to implement a Binary Search Tree for storing the words found on the board, when I tried to do this I got the following errors: Error 1 error …

Software Development c++
Member Avatar for C_Dannehl
0
135
Member Avatar for angel6969

//Define a function that takes a partially filled array of numbers //as its argument and returns the standard deviation of the numbers in //the partially filled array. Since the partially filled array requires //two arguments, the function will have two formal parameters: an array //parameter and a formal parameter of …

Software Development c++
Member Avatar for jonsca
0
264
Member Avatar for sniperx99

Hello all, I am completely new to python, but unfortunately a professor I am working for needs some code done in it. Basically, I need to look through a file for the word "DATA" and then perform some manipulations (simple algebra) do a long list of numbers (3900 to be …

Software Development python
Member Avatar for sniperx99
0
84
Member Avatar for bardcode1

i need this to work in my program Create a Number Operations Super Class Create an Numbers Operations class that contains common attributes and methods of the child classes create a child class of Number Operations super class that specializes the behavior that is appropriate for the type of operation. …

Software Development java java-swing
-1
64
Member Avatar for Nicholas_Roge

In the code below, I check if test.dll has been loaded, and it always returns false... I can't figure out what I'm doing wrong. Can anyone give me a hand? P.S.: I've triple checked that the DLL is in the running directory. [code=c++]#include <iostream> #include <windows.h> typedef int (*AddFunc)(int,int); typedef …

Software Development c++
Member Avatar for Ancient Dragon
0
157
Member Avatar for hawkoftheeye

Hiya. Many apologies if the question I am about to ask has already been answered. I searched the forum, and found a couple of threads that seemed to be relevant to my problem, but none seemed to describe the problem fully. I'm fairly new to C++, having only been using …

Software Development c++
Member Avatar for Ancient Dragon
0
236
Member Avatar for Democles

I am currently having somewhat of a brain stump here. I am programming in a larger project and well, it's on the move to c++. the source code is all c we compile by using a makefile. There is a file with several functions we are taking one removing everything …

Software Development c++
Member Avatar for Ancient Dragon
0
174
Member Avatar for PhiberOptik

Hey guys, I am making a block breaker type game. One panel houses the background, and one panel has the bricks, paddle, and such. and the other has the background. In my main class when I add the panels in this order: [CODE=java] add(new BrickBoard()); add(panelbg); [/CODE] the background image …

Software Development java
Member Avatar for PhiberOptik
0
84
Member Avatar for Ed Ashworth

I wrote some C++ programs and classes a few years ago using Visual C++ 6.0 as my editor/compiler. Recently I replaced the 6.0 with Visual C++ 2008 Express. Now, none of my older code will compile. I read that there were some changes to the C++ standard library some time …

Software Development c++
Member Avatar for jonsca
0
141
Member Avatar for Metraton

Hello guys, that's my first post around here and I have a problem with binary files. I'm writing a simple editor for my arkanoid clone game. This editor opens a binary file defined by this: 0-26 byte: Descriptor for the file. Once in each file. 27->(1141*n): Levels inside the file, …

Software Development c++ file-stream ios
Member Avatar for Metraton
1
186
Member Avatar for alex-VX

hello I created a simple program that login then the program gets some data from a file. I logged in but then a error message pops out error cant read file cause it is used by another process. The weird thing is that it can be open in the notepad. …

Software Development file-system open-source vb.net
Member Avatar for alex-VX
0
154
Member Avatar for Zaad

Hi; I have a problem which involves the road map of a certain country is given and I have to find the best solution to find a best solution for the map by demolishing the extra roads in the map and keep the roads that would make it possible for …

Software Development algorithm java
0
85
Member Avatar for miteigi-san

I've been reading sites that talk about clock() but I don't really get an answer by doing that. I mean, I still need to confirm and know some more stuff. I hope you could help me... Here's what i would like to know: 1] what does the value returned by …

Software Development c++
Member Avatar for mrnutty
1
622
Member Avatar for bibiki

Hey there, I have the following code: [CODE]public void paintComponent(Graphics d){ int gjeresia_e_kornizes = 800; int lartesia_e_kornizes = 800; d.setColor(Color.white); d.fillRect(0, 0, gjeresia_e_kornizes, lartesia_e_kornizes); d.setColor(Color.red); d.fillOval(105, 70, 250, 350); try { Thread.sleep(2000); } catch (InterruptedException e) { } d.setColor(Color.blue); d.fillOval(150, 170, 50, 20); d.fillOval(270, 170, 50, 20); try { Thread.sleep(2000); …

Software Development java
Member Avatar for bibiki
0
275
Member Avatar for rixxir

[B]Hi. I need some help. I need my python program to get information from the .txt file.(text file). I have managed to get this:[/B] [CODE]import string months = [] temperatures = [] fm = open("weather.txt","r") count = int(fm.readline()) # Number of the moths are read from the .txt file for …

Software Development python
Member Avatar for vegaseat
0
155
Member Avatar for Kru

Hello I have two c files I am working on. One is a stand alone program (I will call it helper) that will take two ints as a command line argument, add them together, prints the operands and the sum, and exits. This program can be run from the command …

Software Development c
Member Avatar for Kru
0
143
Member Avatar for RahulV

Hi, I am working with ListView. How can a ListView have multiple columns and also have CheckBox at the same time? (preferably in its View property set as "Report")

Software Development listview visual-basic
Member Avatar for vipin saxena
0
2K
Member Avatar for sfp

Hello :) I would appreciate some help with these few areas, i do not intend to use any of this knowledge maliciously, and am just merely interested... 1) Does delphi have the ability to make a form partially or fully transparent / invisible? 2) I understand and have come across …

Software Development delphi pascal windows-vista
Member Avatar for fayyaz
0
112
Member Avatar for betabasic

Im a total newbie here.. :) I have a file in [B]C:\Program Files beta.txt[/B] inside the file [B]beta.txt[/B]: ------------------------------- Line1 LineUser=12345 LinePass=1234 Line4 Line5 -------------------------------- I have two textbox.. Text1 is for LineUser input (fixed to 5 characters) Text2 is for LinePass input (fixed to 4 charaxters) Example: LineUser: [ …

Software Development visual-basic
Member Avatar for betabasic
0
556
Member Avatar for beforetheyknew

Hi guys, my lecturer has mentioned overriding the equals method before. Am I correct in saying that you override the equals method so that instead of checking if two objects have the same reference it checks their values? And therefore is it also right that there is only one code …

Software Development java
Member Avatar for ~s.o.s~
0
129
Member Avatar for Dasau

I wonder if it okay to write a big equation in System.out like this or Seperate [CODE]else if (earn>=200 && earn<=693) { System.out.println("Excess Earning" + (earn-200)); excess = (8.40+((earn-200)*.15)); System.out.println("Tax Withholding" + excess); }[/CODE]

Software Development java
Member Avatar for musthafa.aj
0
83
Member Avatar for mmasny

Hello, I'm not much of a programmer and will probably never be, but am just curious. Can I initialize a pointer with a constant value different than NULL? I.e. can I tell my pointer to point at one particular memory cell? It's a number so why couldn't I? I know …

Software Development c++
Member Avatar for Salem
0
100
Member Avatar for Dasau

I am working on some assignment. I read the book, and did exactly as it said, but it came up some weird error I don't know how to fix. Please edit my problem, so I can continue my work. Thank you. [CODE]import java.io.*; public class Assignment4 { public static void …

Software Development java
Member Avatar for Dasau
0
130
Member Avatar for MichelleCrews

Hey i been workn on this code for a few days now and im stuck!! i gotta make sum nested circles ... but the code i have here draws a bunch of circles but they are connected :'( and i tryed everythin T.up, T.forward, T.goto ... all of that .... …

Software Development python
Member Avatar for vegaseat
0
173
Member Avatar for kikilala

can you help me on this code.. Private Sub cmdRead_Click() Dim target As String lstName.Clear target = txtIdTag.Text If target = "" Then MsgBox "You must enter a tag number" txtIdTag.SetFocus Exit Sub End If target = "id tag=" & target datStudent.Recordset.FindFirst target If datStudent.Recordset.NoMatch = True Then MsgBox "No …

Software Development visual-basic
Member Avatar for abu taher
0
122
Member Avatar for Lukezzz

I am trying to declare a Doublebuffered panel in C++ I can only find the declaration for this in C#. So I wonder how this could be converted to C++ ? [code] public class DoubleBufferPanel : Panel { public DoubleBufferPanel() { // Set the value of the double-buffering style bits …

Software Development c# c++
Member Avatar for Lukezzz
0
386
Member Avatar for arithehun

I am trying to create an expression evaluator to expand my C++ knowledge. It is supposed to evaluate 5(x+7)-2. Here is the code: [code=c] #include <iostream> #include <stdio.h> #include <time.h> using namespace std; time_t now, later; void sleep(int delay) { now=time(NULL); later=now+delay; while(now<=later)now=time(NULL); } int main(void){ //It finds an error …

Software Development c++
Member Avatar for arithehun
0
191

The End.