199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for danbellinger1

I am working on a project using 2D arrays ( I have never really understood the use, I know how they work, just have always had problems implementing) that holds a 4x4 "magic square." Magic squares contain unique numbers whose rows, columns, and major diagonals add up to the magical …

Member Avatar for Lerner
0
171
Member Avatar for jmasta

I'm getting a whole bunch of null pointer exceptions when I run my program. Here's the info: My program takes a text file (myIn.txt), will keep individual totals of all the characters, then put them into an ordered linked list. Now I need to build a pseudo-Huffman binary tree, with …

0
93
Member Avatar for 3nCrypti0n

Im making this program. But im having trouble calling certain functions. Im having trouble calling ShellExecute, RemoveDirectory, CreateDirectory, FindFirstFile, & DeleteFile. I get the following errors when trying to compile... [CODE] c:\documents and settings\george\my documents\visual studio 2005\projects\mmpc v1.0\mmpc v1.0\prog.cpp(42) : error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const …

Member Avatar for Duoas
0
231
Member Avatar for alcoheca

Hi, Despite triple checking my code for duplication and checking that the headers include #ifndef I still can't trace what is causing this error message: drawscr.o(.bss+0x0):drawscr.cpp: multiple definition of `massage' main.o(.bss+0x0):main.cpp: first defined here Ideally I'd create the pointer at struct definition time via a declarator. [CODE=C]// drawscr.cpp #include <iostream> …

Member Avatar for Duoas
0
288
Member Avatar for 1pal4u

Just starting to program, 1st assignment was to create lottery interface for randomize numbers 1- 54. displays 6 lottery numbers separate label control, Print button printing w/o command buttons showing, and an exit button. So far this is what I've done for coding what am I missing or doing wrong? …

0
148
Member Avatar for guitarrick

Hello again everyone. This one is a project to help with understanding another project (aren't they all?)... At any rate, this was running up through main where I was attempting to call and get my grade computation function (which you'll see a bunch of stuff commented out). I fooled around …

Member Avatar for guitarrick
0
114
Member Avatar for locsin

Greetings! Im using this format to use and open database Set ac = New ADODB.Connection Set ar = New ADODB.Recordset strconek = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\record.mdb;Persist Security Info=False" i want to use variable value in my data source. my database is record.mdb. i want to make syntax for …

Member Avatar for thekickers2006
0
184
Member Avatar for finalheavenx

help me make this shorter.. i think this is too long.. i'm a newbie student.. #include <iostream.h> #include <conio.h> int main() { int x, n=0; clrscr(); for(x=1;x<=5;x++) cout << " " << x; if(++n==5) { cout << " " << endl; } n=0; for(x=2;x<=5;x++) cout << " " << x; …

Member Avatar for WaltP
0
125
Member Avatar for kittycat07us

Hi. I was wondering if someone could help me with this program.. the purpose of this program is to play tic tac toe, and I'm having difficulty getting it to compile. I have gone through it several times. I would most appericate it if anyone could look at it and …

Member Avatar for Ancient Dragon
0
89
Member Avatar for kv79

Hi to all, just a small question? This is typed in the book. hInstance is used for things like loading resources and any other task which is performed on a per-module basis. What is pre-module basis. Google won't help.

Member Avatar for kv79
0
93
Member Avatar for squidd

I have one form that is doing a security check. if the serial number or whatever is found, then a button will appear to open the actual program. Welp, that isnt working out so well. How do I have a Tbutton open another form and close the first form? This …

Member Avatar for squidd
0
467
Member Avatar for kidjl

i need a little help with the function, i created 9 buttons in VB6 at runtime. I set them to swap colors when each time the button is clicked. However, i want all the buttons to stop swaping colors when all 9 buttons are in the same color. so i …

Member Avatar for jbennet
0
103
Member Avatar for lacy1104

I am working on a project in which i have to use Classes and do multiple things with different sorts of data. The basic question i have though is this: what am i doing wrong here in terms of this class declaration etc...i get ton of errors and cant seem …

Member Avatar for Ancient Dragon
0
292
Member Avatar for delphinew

Please...i ask helping from..all .... i want to write sound value from dinamic array,,to save in .wav type... i tried to write header .wav and result it i think is true... but i still confused how way to write sound value.. i put sound value in array, name is hasil_wav,,, …

Member Avatar for Duoas
0
227
Member Avatar for ferhatkuskaya

Hi, I want to learn whether any components such as coloured bars whose heights are automatically changing in the two values which comes from one editbox. If I write 50 to editbox, The colour bar will be half of its height automatically. If I write 75 to editbox, The colour …

Member Avatar for Duoas
0
123
Member Avatar for Underdog67

I'm having a lot of difficulty trying to figure out how to label headings in a 2D array using enum type. Here is the basic for-loops to read in and out the values of an array. (This is a 5x5 array). [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstring> …

Member Avatar for Duoas
0
2K
Member Avatar for ferrari77

#include<string> #include<iostream> #include<fstream> using namespace std; class fileHandleString { private: ifstream infile; ofstream outfile; public: fileHandleString() { infile.open("input.txt", ios::in); outfile.open("output.txt", ios::in); } ~fileHandleString() { infile.close(); } string getFromFile() { string str; getline (outfile, str); return (str); } }; The above code is what I am using but I keep getting …

Member Avatar for Duoas
0
516
Member Avatar for claudiu_is

I`m creating a desktop application which need s to store some data. I would probably store no more than 100rows with 10-15cells. Question is, should I use csv or an sql database; which one is accessed faster ?

Member Avatar for Ezzaral
0
154
Member Avatar for ENG ISE student

I am getting an error i dont recognize and dont know what to do to fix it and input would be great. The error is: [CODE]prog4.cpp:23: error: no matching function for call to 'std::basic_istream<char, std::char_traits<char> >::get(char [500])'[/CODE] [CODE] #include <iostream> #include <ctype.h> #include <cstring> using namespace std; void encrypt(char ch, …

Member Avatar for Ancient Dragon
0
100
Member Avatar for raj1

I am using a for loop to calculate the distance between the vertices of a polygon using for (i=0; i<N, i++) { j= (i-1) result = sqrt (sqr(X-X[j])+sqr(y-y[j])); } return result; This work fine however it doesn't and I cant calculate the distance between the last and first vertice e.g …

Member Avatar for raj1
0
112
Member Avatar for tiffy1012

I am having a hard time getting this program (my homework assignment) to compile. I have looked it over a million times. The program is supose to read an inventory of an art gallery from "art.dat" into a struct (the Type and Place have to be enum types), and then …

Member Avatar for vmanes
0
122
Member Avatar for yuzhang

Hello All: I have been thinking to learn develop a GUI using C++. Any suggestions on where to start? (Using which development kits and etc) Thank you

Member Avatar for maddog39
0
87
Member Avatar for adaykin

Hey suppose I have code like: <td id="something">I want to put stuff in here</td> How would I be able to put the value of a JavaScript array into the part where I want to put stuff. Say the value of the array at a position is hello, I would output …

Member Avatar for adaykin
0
81
Member Avatar for balla4eva33

I have this code: [code] void ShapeArr::publishStats() { double ap = 0.0; for (int i=0; i < currCount; i++) { Shape *s = arr[i]; ap += s->getAPRatio(); } cout << "Max APRatio = " << [COLOR="Red"][B]???[/B][/COLOR] << " Average APRatio = " << ap/currCount << endl; } [/code] What do …

Member Avatar for balla4eva33
0
118
Member Avatar for edouard89

Hello All, well this is my first post after a while of inactivity. I have run into a problem. I have an assignment for school, but when I debug my program using Dev C++(BloodShed) it give me a segmentation fault. I am reading from a file that looks like this: …

Member Avatar for edouard89
0
154
Member Avatar for mauro21pl

Hi I just started to learn Java and I woulkd like to make my life a little bit easier. I am looking for a good java compiler, something that works as good as Dev-c++ for c++. The application taht collor specific text of code and do the indentation. Thanks

Member Avatar for jwenting
0
196
Member Avatar for devilofangel

i am new at programming basic.. i got this problem at school... i want to seek help from you!..its all about inserting and deleting arrays in c language!.. for example: given this output: Menu Operations: [1]Insert at beginning [2]Insert at middle [3]Insert at End [4]Show array elements [5]Delete array elements …

Member Avatar for jwenting
0
85
Member Avatar for np2100

I am still a beginner, I recently started learning C++. However I am writing a program that converts currencies. For example Dollars to Euros. However when I have them pick the number of the currency they want to convert the number 2 doesnt work. Here it is: [CODE]#include <iostream> using …

Member Avatar for np2100
0
309
Member Avatar for gym_shorts

Hello all, I have a problem and after searching for hours was hoping someone would have some information that would greatly help me out. I am developing a website locally on my development machine, (Mac OS X Tiger 10.4.11, Apache 1.3.33, and PHP 5.2.2). The site is based on a …

Member Avatar for gym_shorts
0
109
Member Avatar for ybn1197

Hi all - I'm hoping someone here can help me with this as I have been trying to figure it out for the past 48 hours and have made little progress. I have two table in my database. The Primary Key (Serial) in tblTitles is the Foreign Key(Serial) in tblQuotes. …

Member Avatar for ybn1197
0
107
Member Avatar for nathanpacker

Quick question here. I wanted a way to quickly change the URL of an image that is place on my page, so I came up with the following little script: [code=php] <?php echo "Status: $status"; if ($status == 'Online'){ rename('status.bmp', 'offline.bmp'); rename('online.bmp', 'status.bmp'); } elseif ($status == 'Offline'){ rename('status.bmp', 'online.bmp'); …

Member Avatar for nav33n
0
342
Member Avatar for Tetch

With my program, I have been trying to simulate the game of Roulette (at a casino) with a GUI, but I have a problem that I can't seem to figure out. For some reason, any kind of accumulator for "current funds" I place in the program doesn't seem to work …

Member Avatar for Tetch
0
2K
Member Avatar for drsmith

I posted this in the html section but I am not sure if it will be that simple. I have a .php form that populates from info in a MySQL DB. Anyway, I want to have the ability to email the form(whatever happens to be displayed at the moment) to …

Member Avatar for drsmith
0
113
Member Avatar for Dio1080

My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that? Here is my code: javax.swing.JOptionPane.showMessageDialog(null, "\n-------"); for (int i = 0; i < 3; i++) { System.out.print("| "); for (int j = 0; j …

Member Avatar for Ezzaral
0
131
Member Avatar for justapimp

I have this ArrayList that consist of list of structure and I would like to use the content of the ArrayList as the return type for the function bellow. Can anyone help please. [code] public struct DeviceSchedules { public string StartDate; public string EndDate; public string Interval; public string DeviceTimeZone; …

Member Avatar for justapimp
0
99
Member Avatar for finalheavenx

Hello I'm a newbie c++ student, I would like to ask how can I get this kind of program output by using c++: [B]10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 …

Member Avatar for Salem
0
352
Member Avatar for hemanth.balaji

I am a student and have to submit a Mail Program. I have been asked to do the program using [B]GridBagLayout[/B]. The program is working fine but for the Layout. I just am not able to manage the layout problems I am facing in this program. Could I get some …

Member Avatar for Ezzaral
0
139
Member Avatar for jenjen02

I've been having some problems with a little piece of Javascript. I am completely new to the language, so bear with me. What the end goal is to have a few link on the left side of a table, when the user hovers over them, there will be a thumbnail …

Member Avatar for jenjen02
0
76
Member Avatar for Aprilia

Hi all, i'm new so not sure if this is the right place or not. But none the less i'm hoping someone can put me somewhere in the right direction! Basically i'm wanting to know is it possible to open ax existing exe? to create further add-ons to its existing …

Member Avatar for MattEvans
0
190
Member Avatar for rime

I am trying to write a code to get IP of a computer. I have written the following code : <?php $ip=@$REMOTE_ADDR; echo "<font face='Verdana' size='3'><b>IP Address= $ip</b>"; ?> But the output I am getting is : IP Address= 127.0.0.1 i.e the common IP for all machines, what is the …

Member Avatar for nav33n
0
124
Member Avatar for ratul

Hi All I am trying to write a perl script which will check some particular process is running in a machine or not. If the processes are running properly then its ok if the processes are not running then the script will start those processes and send a mail to …

Member Avatar for BobUillean
0
125
Member Avatar for rlwright12

I am trying to take the following code so that my bottom function first pulls out the first three scores of a text file and averages them, then pulls the last three scores out and averages them. I am using a known good text file that has 7 entries with …

Member Avatar for WaltP
0
97
Member Avatar for Dumburashe

Am trying to develop a front-end to Mysql database. I do not intend to use it for web purposes so I do not need PHP. which slanguage can I use?

Member Avatar for mwasif
0
79
Member Avatar for djbsabkcb

I was wondering is there anyway to wrap the text in the columns? Also, is there a way to adjust the column width automatically? I know how to do it manually, just wondering if it would adjust on its own. :?:

Member Avatar for GolferGuy
0
121
Member Avatar for wijitha

hi ..... can any one help me how to change logger level of ACE framework loggers. wijitha

Member Avatar for Ancient Dragon
0
175
Member Avatar for Samudricka

hi i am new to j2me. can any body say how an http connection could be done in j2me

Member Avatar for Samudricka
0
492
Member Avatar for pickachu

Im having arrayoutofbounds error on my code. [code] import java.io.*; class s{ public static void main(String args[]) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String[] a = {"X","C","O","M","P","U","T","E","R","S"}; System.out.println("Enter Price: "); String b = in.readLine(); for(int i=0;i<b.length();i++){ System.out.print(a[b.charAt(i)]); } } } [/code] what am i doing wrong here? The output should …

Member Avatar for Black Box
0
112
Member Avatar for kings

hi i am not able to update my table.plz do tell me the bug in my code..... when update link is clicked in the first page..the table should get updated [B][COLOR="Green"]page 1[/COLOR][/B] $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $x = $_GET['name']; $result=mysql_query("SELECT * FROM table1 where name='$x'") or …

Member Avatar for nav33n
0
245
Member Avatar for cs378

Hi I am programming in Unix. My task is really simple, but I don't know and where to debug this problem. My C program opens up the "ls" manual and makes an exact copy to a new file. However my program stops/freezes in the middle of read. (It works fine …

Member Avatar for Ancient Dragon
0
123
Member Avatar for cga2

Hey guys, I wanted to know how can I code the game ball lines in Yahoo. It is a game very easy to understand and similar to tic tac toe but I just cant figure out anything as to how to start. Please help!! u can mail me on [email]chandanagrawal17@hotmail.com[/email] …

Member Avatar for Black Box
0
139

The End.