64,152 Solved Topics

Remove Filter
Member Avatar for
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 …

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 …

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 …

Member Avatar for jonsca
0
122
Member Avatar for daneuchar

hi, i wanna print the result in a table but i am failing to do so.. other query in my table are working but dont knw why this query is not displaying in the table [CODE]SELECT user_profile.user_id, user_profile.user_name, payroll.salary, payroll.hra, payroll.da, payroll.pf, payroll.nsa, payroll.ince, user_profile.desig, user_data.period, user_data.work_hours FROM payroll, user_profile, …

Member Avatar for daneuchar
0
78
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]

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 …

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* …

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 …

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.

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 …

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

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 …

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

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?

Member Avatar for dilake
0
99
Member Avatar for Slammer

Hi, my problem is in regular expression. I need to catch from html code hyperlink tag's href atribute content if this hyperlink contains search condition. here is snippet: [CODE=php]$a = "nail"; //search ctriteria between <a></a> $s =<<<EOF <a class="level2" onmouseout="this.style.background = '';" onmouseover="this.style.background ='#2c7cf4';" href="index.php?item&amp;module=1&amp;category=11" style=""> kaut kas cits </a> …

Member Avatar for Slammer
0
128
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 …

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 …

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

Member Avatar for kvprajapati
0
112
Member Avatar for Benbo1980

Hi there, I have successfully setup a page using a tutorial (shown [url]http://www.phpeasystep.com/mysql/10.html[/url]) It's all working fine as it stands. I have now added another column to the database that can either be 1 or 0 and I would like to be able to change it on the update page …

Member Avatar for freshmem
0
1K
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 …

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 …

Member Avatar for noname1015
0
99
Member Avatar for JuliaNell

Hi guys, its nice meeting you all, forgive me i might be asking simple questions believe me im totaly new to PHP and im so lost. Help me out with this. Create an array with random number of elements and each value and each value is random itself. Display array …

Member Avatar for JuliaNell
0
79
Member Avatar for preetg

hi........... my update code is working correcty.... .....but i want update links in front of every record of table ... plz tell me how it is possible........... thanx for last reply..... m pretty new in php [code=php] [file name=updaterecord.php] <? $con=mysql_connect('localhost','root','root'); if (!$con) { die('Could not connect: ' . mysql_error()); …

Member Avatar for preetg
0
113
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 …

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 …

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.:(

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 …

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 …

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 …

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 …

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. …

-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 …

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 …

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 …

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 …

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 …

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, …

Member Avatar for Metraton
1
186
Member Avatar for whiteyoh

Hi all, My code lists items based on the logged in users id. when listed these items have an edit function. When the use clicks edit, the url holds the id for that item. My problem is that its possible to change the url to show details of something thats …

Member Avatar for whiteyoh
0
170
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. …

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 …

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 …

Member Avatar for mrnutty
1
622
Member Avatar for MDanz

i have multiple entries with starting with the letter 'a' .. but the query below only displays one result. [CODE]<?php mysql_connect("localhost", "Master", "pword"); mysql_select_db("db"); $letter = htmlentities($_GET['search']); $user = mysql_query("SELECT DISTINCT keywords FROM Stacks WHERE keywords LIKE '$letter%' ORDER BY keywords")or die (mysql_error()); while($rowz = mysql_fetch_array($user)){ $keyword = $rowz['keywords']; $name …

Member Avatar for MDanz
0
114
Member Avatar for aryanmughal

Hello Everyone i am here to get help from you to make a php website where people can post videos which are hosted on different video hosting websites and also earn revenue from their sharing.... The website will look like [CODE]http://www.e-soft24.com/scripts/video-embed/[/CODE] And Form Will Look Like This One I Found …

Member Avatar for diafol
0
138
Member Avatar for Ana_Developer

I am implementing BFS, A*.... I got confused by all the terms used in the books. Like, what would be th difference between a search node and a state node, or a search tree and a search graph? I have two files as input, a nodes file (coordinate with id …

Member Avatar for Agni
0
63
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); …

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 …

Member Avatar for vegaseat
0
155
Member Avatar for geek_till_itMHZ

Need writing a java script that will list prime numbers from 1 - 999 in a 10 Row table...I think I have the prime number logic part down but I cant figure out how to get JS to start a new column after it lists 10 numbers? I would obviously …

Member Avatar for madmital
0
129
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 …

Member Avatar for Kru
0
143
Member Avatar for Stefano Mtangoo

Hi I want to make form dynamically by just passing array of stuffs. I have tried but cannot may be due to my limitation in PHP. Here is what I have so far. Please help me! [CODE=php] class MyForm{ private $formArray; //pass array to build a form in form of …

Member Avatar for Stefano Mtangoo
0
116
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")

Member Avatar for vipin saxena
0
2K

The End.