132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for n3red

Hello, Can someone please explain to me because i do not understand the tutorials on pointers. anyways i have a struct: [CODE] struct driver { int id; char name[30]; int runs; } //I am reading a file which goes in order ID NAME RUNS as: 1 Super Man 5 //I …

Software Development c c# c++
Member Avatar for abhimanipal
0
160
Member Avatar for mitmehta22

hello sir. i am trying to create a program that will perform read/write operation on csv file. i am using structure. my structure and code is as follow: struct item { int item_no; char item_name[20]; float rate; }i1; main() { . . fprintf(fp,"%d,%-20s,%.2f\n",i1.item_no,i1.item_name,i1.rate); . . . fscanf(fp,"%d%*c %s%*c %f",&i1.item_no,i1.item_name,&i1.rate); printf("%d …

Software Development c
Member Avatar for abhimanipal
0
7K
Member Avatar for chudapati09

Edit: Never mind I figured it out. I used Math.pow(base, exponent) to figure it out I'm creating a calculator and I can figure out how to the power of two doubles. This is what I have: [CODE] public Power(Double base, Double exponent) { result = base ^ exponent; //result is …

Software Development java
0
70
Member Avatar for shyla

I am trying to solve the second part of this question this is what i came so far i do it on GUI and when i push the button nothing happend [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace EmployeeExceptionDemo { …

Software Development gui
Member Avatar for shyla
0
85
Member Avatar for johnt68

Hello:( I have an assignment to build the booking and payment part of a Thearte Booking System. I have four classes linked to an MDF database - well they should be - the two that we have been given will will be and the two that I have done might …

Software Development linked-list
Member Avatar for johnt68
0
581
Member Avatar for norn

Hey I've been coding from a young age, I've just recently turned 18 I want to create an application for me and my friends to use, it scans a folder and from that folder it gains the movie information based on their backed up movies filename, I have a method …

Software Development
Member Avatar for norn
0
99
Member Avatar for VernonDozier

Here's a simple, though not the most efficient, program that flags and displays all prime numbers less than or equal to 1000.

Software Development c++
Member Avatar for 014
0
782
Member Avatar for G_S

Hello, This is a really simple question but I just don't see the error here: [CODE]def foo(): x = input('write something: ') if x == 1 or x == 2: print('OK') else: print('NO') print(x)[/CODE] Why does it keep printing NO? Also, I have a more complicated one: def foo(x, y): …

Software Development python
Member Avatar for G_S
0
115
Member Avatar for caut_baia

Hi everyone.I have a strange problem.I've written a class which handles registry keys and values of which there are two functions [code] template<> unsigned long RegistryEntry::GetValue <unsigned long> (std::string Name) { unsigned long Value; unsigned long DataSize; assert (RegQueryValueEx (Key,Name.c_str(),0,NULL,(unsigned char*)&Value, &DataSize)==ERROR_SUCCESS); return Value; } template <> char* RegistryEntry::GetValue <char*> …

Software Development c++
Member Avatar for Ancient Dragon
0
274
Member Avatar for fglom

I'm trying to save everything to a .txt file with a new line after every string, but I can't get it to work for me. I tried using [ICODE]<<endl;[/ICODE] and [ICODE]"\n"[/ICODE] but it all gets written in a single line. So if I enter "John" for [ICODE]first[/ICODE], "Smith" for [ICODE]last[/ICODE], …

Software Development c++
Member Avatar for fglom
0
179
Member Avatar for daviddoria

Hi all, I am trying to write a function to solve an equation for one of its variables. E.g. X + Y + Z = 0 This equation would be represented by its parameters: parameters[0] is X, parameters[1] is Y, parameters[2] is Z. If the user wants to solve for …

Software Development c++
Member Avatar for mrnutty
0
744
Member Avatar for mjavaid

I know this is a very common program that has been discussed, and I have searched through all the previous posts about it but still having problems. It's a program for an airline seating reservation. Consists of 12 seats total, 1-4 is First Class, and 5-12 is Economy. I have …

Software Development java
Member Avatar for hanvyj
0
283
Member Avatar for 24x24

My assignment: develop a limited application to track the statistics of sports players. For each player, track first and last name, points scored, assists made, and penalty rate. Design and implement an object capable of recording this info. Implement this object as Player. Must allow user to enter new player …

Software Development java
Member Avatar for yancouto
0
226
Member Avatar for rockerjhr

Suppose there are n ducks floating on the pond in a circle. The pond is also home for an alligator with a fondness for ducks. Beginning at the 1st position, the alligator counts around the circle and eats every mth duck (the circle closing as ducks are eaten). For example, …

Software Development c
Member Avatar for rockerjhr
0
196
Member Avatar for taumang

help me with this kind of program,i have tried to declare those variables but it continues to say u ndeclared identify CBDA [CODE]#include<iostream> using namespace std; int main() { float catergory A; float catergory B; float catergory C; float catergory D; const float Catergory of pair A = -999,99; const …

Software Development c++
Member Avatar for taumang
0
94
Member Avatar for blackhook

i have an error of line 40 illegal start of expression and line 73 class interface,or enum expected. im making a 10 random numbers display them determine the largest and the smallest number of 10 random numbers thanks.. [CODE]import java.util.Random; /** Generate random integers in a certain range. */ public …

Software Development java
Member Avatar for peter_budo
0
126
Member Avatar for SoftwareGuy

Hello. I've seen some tutorials, but I can't find one that particularly suits my needs. What I'm trying to do is this: I have a form that contains an object. I want this object to be able to modify its parent form when an event for it is thrown. The …

Software Development
Member Avatar for SoftwareGuy
0
234
Member Avatar for GhostMonkey

Hi, I've got an array where you enter values into it but I want the values you enter to be a separate colour from the values initially in the array. I tried simply using set colour when you enter the value but I've coded it so that after every user …

Software Development c++
Member Avatar for GhostMonkey
0
105
Member Avatar for snivek

have an implementation of BFS I got elsewhere and modified slightly, but I am having problems with its input. It takes a graph, and will take it as '((a b c) (b c) (c d)) But my input I am giving it is a weighted graph... I know it's not …

Software Development queue
Member Avatar for TrustyTony
0
1K
Member Avatar for jnewing

Ok so I'm looking for a quick efficient way of reading the following binary data into memory. I'm currently reading it all and then have my own functions that break it up via the separators 0x7d (|) and read each on into a variable, however I was thinking about reading …

Software Development c++
Member Avatar for jshoot
0
114
Member Avatar for kiranbkrishna

Hi all, i was writing a gui for a small desktop application i made as a part of learning python.I use python 2.7.I used Tkinter.I am new to python and this was my first trial with Tkinter. First i created 9 buttons arranged in the form of a 3*3 matrix …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
370
Member Avatar for kumarmpk4u

Hi, i am converting a vc++ project written in 16 bit code to 32 bit code. Am using VC++ 6.0. In the 16 bit code they have used a in build class [COLOR="Red"]cvbcontrol[/COLOR] which is not supported in 32 bit environment. CVBControl class was used in the code to display …

Software Development c++
Member Avatar for Ancient Dragon
0
172
Member Avatar for aquarian

hi all, hop all r fine. i want source code of "Apriori Algorithm for finding frequent itemsets" in c/c++ or any other language. can anyone plz send me that. i'll be realy v thankful.

Software Development algorithm c
Member Avatar for Ezzaral
0
1K
Member Avatar for jarograv

So I have a program I am making but I need to make it more efficient, is there any way to condernse the following code into a more compact and efficient code? [CODE]r1p1=o r1p2=o r1p3=o r1p4=o r2p1=o r2p2=o r2p3=o r2p4=o r3p1=o r3p2=o r3p3=o r3p4=o r4p1=o r4p2=o r4p3=o r4p4=o r5p1=o r5p2=o …

Software Development python
Member Avatar for woooee
0
205
Member Avatar for roud9

Hello, I want to display content of a file with the name has been entered by the user, but I have to enter the name of the file when I run the program (eg:. / myprogram test.asm). I would not have to specify the file name each time you run, …

Software Development assembly display
Member Avatar for untio
0
253
Member Avatar for Mark_48

Ok so does any body have any ideas or hints on how to select a range of values from an array??? say: Array1[1,0] to Array1[10,0] so that would be the first values in each row from 1 to 10. ANy ideas?

Software Development
Member Avatar for Mark_48
0
96
Member Avatar for CorruptionInc

I have to create a Pizza GUI that shows pizza size choices and topping choices for pepperoni and mushrooms and then calculate the total. I'm having trouble constructing the GUI. Down in the createCenterPanel method Eclipse is tell me that radioButtonPanel, checkBoxPanel, and pricePanel cannot be resolved to a type. …

Software Development gui java java-swing
Member Avatar for CorruptionInc
0
5K
Member Avatar for Mark_48

HAY people ive created the code as below but when i run the program it is displaying: system.Array[] or somthing like that instead of the value in the array. I though it mite be a problem when converting the string[] to string but i cant seem to find a solution. …

Software Development
Member Avatar for Mark_48
0
140
Member Avatar for I<LateNupurGuha

[B][COLOR="Red"]final[/COLOR][/B] members are used to specify that it can not be [I]revalued[/I] or [I]overriden[/I]. :icon_lol: [U]Explain [B]logically,[/B] [I]why[/I][/U] a [B][COLOR="Green"]static[/COLOR][/B] method can not [B][I]override[/I][/B] comparing it with an [I]instance method[/I]. May a [B][COLOR="Green"]static[/COLOR][/B] variable be [B][I]revalued[/I][/B]? :icon_exclaim: If, [B][COLOR="Green"]static[/COLOR][/B] also serves the same purpose at this point as [B][COLOR="Red"]final[/COLOR][/B], then …

Software Development java
Member Avatar for jon.kiparsky
0
92
Member Avatar for swathys

hi, I have made a web services app which i have install it in server. This web services is to check datetime form the server.....if the server time and my pc time is match it will proceed further to next step....i have set it to 5 min different...it is going …

Software Development vb.net
Member Avatar for jlego
0
101
Member Avatar for SWEngineer

I have the following `main.cpp` file: [CODE] #include <QApplication> #include "ui_checkabder.h" #include <QDialog> int main(int argc, char *argv[]) { QApplication app(argc, argv); Ui::CheckAbder ui; QDialog *dialog = new QDialog; ui.setupUi(dialog); dialog->show(); return app.exec(); }[/CODE] And, get the following errors when trying to run the program: [CODE] C:/Users/avbder/Desktop/abder/main.cpp:7: error: 'CheckAbder' is …

Software Development c++ qt
Member Avatar for JasonHippy
0
155
Member Avatar for micmo

Hi Guys, I'm trying to create a simple webpage which has a login form. When the user successfully logs in, I want a cookie to be stored with the name "MyCookie", and a value of "1". Then I want the login form to hide and instead display a textbox with …

Software Development c# html-css web-browser
0
105
Member Avatar for vaq

Here's the DLL I've compiled in VB6: [code]'--------------------------------------------------------------------------------------- ' Module : cNtPEL ' DateTime : 30/06/2009 06:32 ' Author : Cobein ' Mail : cobein27@hotmail.com ' WebPage : http://www.advancevb.com.ar (updated =D) ' Purpose : Inject Exe ' Usage : At your own risk ' Requirements: None ' Distribution: You can …

Software Development api vb.net visual-basic
Member Avatar for t3rmin4t0r
0
695
Member Avatar for rookanga

Im trying to load a text file from a specific location. What I need to do is find a way to allow my code to open a textfile from specific folder, basically what im trying to do it make it open to the desktop then assignment1 folder and thats it( …

Software Development file-system vb.net
Member Avatar for debasisdas
0
240
Member Avatar for Ravi.Srilatha

How to insert questions with multiple choice and its answers in .mdb file as a single row for each question .. How to retrive that .mdb file and display only the questions into the listbox. If i select the question in listbox it must display the data of selected question …

Software Development vb.net
Member Avatar for debasisdas
0
97
Member Avatar for Taimoor Rana

Hello, I'm currently looking for a book the covers "how to develop a game". I have basic knowledge of Java. I know: arrays,classes,GUI,basic animation with Timer class,basic graphic. I want to move on and start learning threads, collitions, keyboards and mouselistener and all other game related topic... I was wondering …

Software Development gaming gui java
Member Avatar for Taimoor Rana
0
179
Member Avatar for Gaspacho

Hello I have Java application that runs under unix and has console for user imput. I would like to perform something like this - If I enter "edit config" I would like to vi pop up with config file loaded (with java still running in background" and after user is …

Software Development java unix
Member Avatar for Gaspacho
0
192
Member Avatar for pooran.c

code above would print first month correct. but from the second month days or not in order.[code]import java.io.*; public class calendertest { public static void main(String[] args) { int months=12; int days=0; int i=0; for(months=1;months<=12;months++) { System.out.println("----------------------"); if(months%2==1) { for(days=0;days<=31;days++) { if (days%7==1) System.out.println("sunday-"+days); else if(days%7==2) System.out.println("monday-"+days); else if(days%7==3) System.out.println("tuesday-"+days); …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for SWEngineer

When I try running a Qt application with the following main.cpp file: [code] #include <QApplication> #include "ui_checkabder.h" #include <QDialog> int main(int argc, char *argv[]) { QApplication app(argc, argv); Ui::CheckAbder ui; QDialog *dialog = new QDialog; ui.setupUi(dialog); dialog-&gt;show(); return app.exec(); } [/code] I get the following errors: c:/QtSDK/Desktop/Qt/4.7.3/mingw/lib/libqtmaind.a(qtmain_win.o):-1: In function `WinMain@16': …

Software Development c++ qt
Member Avatar for SWEngineer
0
497
Member Avatar for burntout

I would like to know how i can replace an outputline with a write to a log file? Ive tried searching but no luck.

Software Development java
Member Avatar for JamesCherrill
0
100
Member Avatar for xanawa

I am getting the value of a datetime picker and add it in the database but it is throwing an exception saying : [COLOR="Red"]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime. The statement has been terminated.[/COLOR] This is my SQL Statement …

Software Development sql
Member Avatar for abelLazm
0
220
Member Avatar for Arjun_Sarankulu

I googled for 3.5 framework book to read but m not getting proper link can anyone suggest which book to refer for .net framework

Software Development
Member Avatar for abelLazm
0
76
Member Avatar for Jaseem Ahmed

[CODE]Option Explicit Private con As New ADODB.Connection Public RS As New ADODB.Recordset Public RS1 As New ADODB.Recordset Public cmd As String Dim ExlObj As New Excel.Application Private Declare Function GetSystemMetrics Lib "user32" (ByVal Index As Long) As Long 'Public Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y …

Software Development open-source visual-basic
Member Avatar for gsatya
0
290
Member Avatar for ayanbizz

In my program to implement huffman algorithm.I have created the huffman codes and stored the ascii values and corresponding codes in a map.While creating the encoded file I followed this approach:I firstly converted the ascii codes in to their corresponding integer values and wrote them in a file.Now ,while decoding …

Software Development algorithm java
Member Avatar for JamesCherrill
0
186
Member Avatar for vigneshkbv

I want to develop a Desktop application using web browser control and google local search API . could you give some idea? In my form have text box ,cmd button and web browser control.. when i type a search string in txt box and click button,the web browser control should …

Software Development api c c# c++ google google-api web-browser
Member Avatar for abelLazm
0
176
Member Avatar for coalman987

Hi all I'm new and I'm horrible at Java. I've written this decryption code for a Caesar cipher but now I need to decrypt a one-time pad. Is there any way to simply work with what I have and rewrite it to work with a one-time pad? Or must I …

Software Development java
Member Avatar for jwenting
0
702
Member Avatar for sirlink99

I am trying to sense multiple keys at a time and I am wondering how to use a hash map to do this.

Software Development java
Member Avatar for mKorbel
0
146
Member Avatar for DasQuark

Hi! :icon_biggrin: I'm trying to program a personal project, but I've hit a bit of a bump in the road. I've got a Button, a Textbox, and a CheckedListBox; when the button is pressed, whatever is in the TextBox is added to the CheckedListBox. However, when the form is closed …

Software Development vb.net
Member Avatar for codeorder
0
836
Member Avatar for khwabincod3

Hello, I am a beginner to java and needed some assistance...I am writing code to create my own singly linked list, and an iterator that iterates over the elements of the list...however I don't know how to use the iterator to display the elements of the list and I am …

Software Development java linked-list
Member Avatar for ztini
0
252
Member Avatar for kimbokasteniv

What I would like to do is get an integer index of a TextPointer, as if the flowDocument was just a normal string. So basically I want to replicate the indexOf method of String, but for a flowDocument instead. I currently have this partially working solution: [CODE]private int GetIntFromPointer(TextPointer mark, …

Software Development
Member Avatar for abelLazm
0
254

The End.