132,724 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Xufyan

Please see this program: [CODE]float area(float); void main(void) { float radius; printf ("Enter Radius"); scanf ("%d",&radius); printf ("Area is %f",area(radius)); } float area (float rad) { return (4*3.142*rad*rad); }[/CODE] please explain the above program, there no value has been assigned for [iCODE]rad[/iCODE] then what does it mean ? why it …

Software Development c
Member Avatar for Sodabread
0
104
Member Avatar for cppnewb

Hello everyone! I havnt posted in awhile, but I am working on a new project and have hit a speed bump. I was wondering if there is a way to transfer HTML form data to a C++ program. What I mean by that is, the user enters data into the …

Software Development c++
Member Avatar for cppnewb
0
81
Member Avatar for samready

Hi. I am trying to match a string: "RemoveAcc $k: $v" There are an arbitrary number of spaces between RemoveAcc and the two variables...Preferably I would like to store these to variables using $1 and $2 after the string is parsed, but I do not want to save the RemoveAcc …

Software Development perl regex
Member Avatar for d5e5
0
185
Member Avatar for tehmarto

Hi all This is the file i wanna write a program for [url]http://www.mediafire.com/?vzrz1ymnmlq[/url] . It contains a database with a game's "spells", the damage they do, they're icon and other useful info i wanna see. I wanna get this file in an sql executable format and into my sql database. …

Software Development c++ open-source
Member Avatar for tehmarto
0
797
Member Avatar for EireJoker

Hello, I am currently doing a VB project for a course, I have all the features working bar the datagrid, when i use the program without the datagrid it works perfectly, however if i put a datagrid in I can only add and delete, but I am unable to cancel …

Software Development visual-basic
Member Avatar for EireJoker
0
125
Member Avatar for msr

Hello, I would like to have a PriorityQueue whose elementes are instances of different subclasses. For example: Event is an abstract superclass. Event1, Event2, Event3 are subclasses. Xpto<> is an interface and PriorityQueueXpto<> is a class that implements Xpto and extends PriorityQueue. [CODE]Xpto<? extends Event> a = new PriorityQueueXpto<????>();[/CODE] Is …

Software Development java queue
Member Avatar for msr
0
103
Member Avatar for senormateo2011

[B]Redo the Lucky Sevens dice-playing program so that it uses dice objects. That is, design and implement a Dice class. Each instance of this class should contain the die's current side. There should be an accessor method for a die's current value. The method roll is the only mutator method. …

Software Development java
Member Avatar for charlieruns
0
830
Member Avatar for flashkarni

hello all, i have the following VB code which is expected to activate a storred procedure from SQL DB. for some reason i recieve a msg that the procedure does not recieve the inpute parameters. the code: [code] Sub Validate_Data() 'check if data is there: If Cells(5, 6) = "" …

Software Development open-source visual-basic
Member Avatar for hkdani
0
370
Member Avatar for hsncvs

Excuse me if it is a silly mistake but i am newbie to java and couldn't figure it out. Basically it searches if txtText (text area) contains the txtSearchParam (text field) and returns the number of txtSearchParam in txtText. Algorithm is working. simply i can't access variables defined in main …

Software Development algorithm java java-swing
Member Avatar for hsncvs
0
3K
Member Avatar for charqus

Hello guys. I have a question. How can i save my ellipse in a variabile ? i need this because i need to change it's position SolidBrush redBrush = new SolidBrush(Color.RoyalBlue); e.Graphics.FillEllipse(redBrush, 145.0F,95.0F, 10.0F, 10.0F);

Software Development
Member Avatar for ddanbe
0
61
Member Avatar for cyon

I have a bot that connects to a server. The server code is a base class and the code that processes the data from the server is in a class which inherits the base class. I have two conditions for this assignment: [LIST=1] [*]The entire code should be runnable from …

Software Development oop python
Member Avatar for cyon
0
156
Member Avatar for charqus

Hello Guys. Does C# includes a Graphic Header ? I want to create a circle , with some BIG DOTS on it , and that BIG DOTS to rotate on the circle axis. Is that possible ?

Software Development
Member Avatar for ddanbe
0
89
Member Avatar for bperiod

[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++)

Software Development c c++
Member Avatar for Fbody
0
830
Member Avatar for ilkeamasya

As you see at below I used "-1" as my sentinel value but my program wants the other 6 values i asked for in scanf too. How can i solve this problem? I just want the user to enter -1 and exit my loop. I would greatly appreciate for your …

Software Development c programming-construct
Member Avatar for ilkeamasya
0
249
Member Avatar for ilkeamasya

Hello, there. I'm trying to write a program which reads student information from keyboard and does some calculations. I've just started it and I dont know much about this "Struct" topic. As far as I know, I've tried to do something and here is the result. [CODE]#include <stdio.h> #define N …

Software Development c
Member Avatar for ilkeamasya
0
250
Member Avatar for turbomen

Hi, Are there any web version of Delphi? It is because I cannot install the Delphi from my portable harddrive to the public computers. Cheers,

Software Development delphi pascal
Member Avatar for bperiod
0
94
Member Avatar for vinians

Hi Im new to this comunity and Im in throuble with C heheh. My problem is that: Im using LUA to create scripting capabilities do my software in C. So, I ve created a file called script.c to suport all script code of my project. See: [B]script.c [/B](some lines) [code] …

Software Development c
Member Avatar for vinians
0
102
Member Avatar for tr6699

I have discovered a bug in some assembly code I have been working with but can't figure how to fix it. When shifting left by 0 the result ends up being 0 instead of jut the number. The same applies when shifting to the right. Any and all help is …

Software Development assembly
Member Avatar for tr6699
0
103
Member Avatar for krishnisilva

hi, how to i get the data i the dategrid view and save it in the SQL database in C#. and also how to aloow the user to enter details from the grid view. thankxxxx

Software Development c# sql
Member Avatar for krishnisilva
0
85
Member Avatar for COKEDUDE

I have 3 files. variables.h, variables.c, and dictionary_test.c. How would I use my variables.c to get information from variables.h and dictionary_test.c? I'm not supposed to touch the variables.h and dictionary_test.c. I gotta do all the work in variables.c. This is the variables.h. [CODE]#define MAX_VARIABLE_LENGTH 15 /* Set the variable with …

Software Development c
Member Avatar for COKEDUDE
0
140
Member Avatar for ilyaz

This is VC++ 6.0 code running on a Windows Server 2003 SP2 machine. 1. I launch an external exe from my code using CreateProcess() 2. This process creates a file on disk 3. I do rc = WaitForSingleObject(procInfo.hProcess,INFINITE); 4. rc is returned as WAIT_OBJECT_0 5. int result = _stat( strDestFile, …

Software Development c++ windows-server
Member Avatar for ilyaz
0
112
Member Avatar for bunnyboy

Can someone explain me why this string extended method gives me an ArgumentOutOfRangeException (Index and count must refer to a location within the string. Parameter name: count), [CODE=C#] public static string Remove(this string str, char lower, char upper) { return str.Where(ch => ch <= upper && ch >=lower) .Aggregate(string.Empty, (current, …

Software Development
Member Avatar for apegram
0
357
Member Avatar for zachattack05

I'm lost. I've been trying to do this for a while now and I can get halfway what I need. But I can't tell if it's working or not, or where my problem is. I don't want to use the wizard in VS to add a data source, I'd like …

Software Development dataset open-source
Member Avatar for zachattack05
0
114
Member Avatar for letmec

Hello to all of you I have been using Turbo C++ for last 6 mounths and do all my graphics very fine. But when i started using Vc++, graphics.h was not including there. Can any one of u tell me to how to start graphics programming in Vc++ using same …

Software Development c++
Member Avatar for Fbody
0
399
Member Avatar for goulda660

My program keeps giving my undefined references to my vectors and items in namespace fun class driver and i cannot change it I really need help I'm a pretty big noob at programming [CODE] /* * Austin Gould * * main.cpp * main to drivers in fun in the sun …

Software Development c++ ios
Member Avatar for goulda660
0
176
Member Avatar for Dinglish

I began teaching myself programming 3 weeks ago. Its hard (for me) i'm trying to include some date validating within a program i am writing. this is what i have so far, but invalid dates are validated unfortunately. eg. November 31 2010 or february 30 2012 have a look and …

Software Development c++
Member Avatar for Dinglish
0
74
Member Avatar for whoadiz

Hey guys, trying to create a binary search tree (BST) and I dont know why but the program is not reading my insert method? When I am testing it, it shows that I did insert the number, yet when I do a check to see if the tree is empty …

Software Development java
Member Avatar for cale.macdonald
0
135
Member Avatar for yohanus

I keep geting the following errors for my code while compilling can any one give me some dirrection on wha i have done wrong? C:\Documents and Settings\Mark Standerfer.DESKTOP\My Documents\Inventory2.java:117: class, interface, or enum expected System.out.printf("\n\nItem Name: %s\n",s.getItemName()); //display item name ^ C:\Documents and Settings\Mark Standerfer.DESKTOP\My Documents\Inventory2.java:118: class, interface, or enum …

Software Development java
Member Avatar for masijade
0
323
Member Avatar for replax

Hello, i got a problem with identifieng my classes upon its static ID number. Upon creation of each class, it recieves its individual number, the numbers are ascending from 0 to "endless". So now, I want to do a loop like this [code=c++] for(int i = 0; i <= Class::GetMaxIDNumber(); …

Software Development c++
Member Avatar for mattjbond
0
233
Member Avatar for jellybeannn

Hi, I've got a date range between a start and end date, which has to be each month on the valuation day, but if end date(2010/07/20) is before the valuation date(2010/07/31), the valuation month for that month must be displayed. if (endDate.Day < validDay) is true, then it works perfect. …

Software Development
Member Avatar for kvprajapati
0
123
Member Avatar for sweetgurl

i want to use a for loop in a function but error occur.. why?? public double weight( double d) { for(int i=0;i<5;i++) { d[i] /= 24;} return d; }

Software Development java
Member Avatar for sweetgurl
0
81
Member Avatar for byrnnryb

Hello, I currently have working code to solve a single first order differential equation using a predictor-corrector. I need to modify this to solve a system of first order differential equations. Here is the system I need to solve: y'' = -y' + 6y; y(0)=1; y'(0)=-2, on [0,4] And here …

Software Development c++
Member Avatar for byrnnryb
0
192
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around …

Software Development algorithm java
Member Avatar for sam8
0
3K
Member Avatar for sweetgurl

i want to passing a data from a method but in array.. some error occur like array required but double found and incompatible type.. i don't know how to do it..help me anyone... example: [code]public double getFood(Date date, double AA, double BB, double CC) { }[/code] [code]// below is in …

Software Development java
Member Avatar for sweetgurl
0
131
Member Avatar for inisca

[CODE] OpenFileDialog dlg; richTextBox1->Text=dlg.FileNames; [/CODE] Can someone tell me what am I doing wrong? I get the following errors cannot convert parameter 1 from 'cli::array<Type,dimension> ^' to 'System::String ^' I want to multiselect files and then print their names intoo richTextBox1. I know that richTextBox1>Text is System::String^ and dlg.FileNames is …

Software Development c++
Member Avatar for kvprajapati
0
200
Member Avatar for emaduddeen

Hi Everyone, There are so many controls, properties, etc in VB 2008 .NET it's mind boggling. I'm amazed at how much this product can do. Does anyone know of a VB 2008 .NET book that describes in simple language and shows sample code for all of those controls, properties, etc? …

Software Development asp.net vb.net visual-basic
Member Avatar for emaduddeen
0
153
Member Avatar for smithy40000

Hello all, i was just wondering how you can make a button link to another page, for instance i want the help option on my start menu to link to a help page, if you can understand this can you please supply a small snippet of code, here is my …

Software Development python tkinter
Member Avatar for TrustyTony
0
214
Member Avatar for rickymak

I have this error, " lvalue required as left operand of assignment," for line 10 where scanf command appears. I can't figure out a solution to it. [CODE]#include <stdio.h> int main() { int start; char delay; printf("We're close to blast off.\n"); printf("countdown initiated"); scanf=("%d", &start); do { printf("T minus %d …

Software Development c
Member Avatar for UncleLeroy
0
127
Member Avatar for TrustyTony

Ordering objects is one thing that is changing as we will move to Python3 Python 2.6 gives interesting results [CODE]a=[1,'23',('a','b'),False,[[]],[],'bc',['ab','34'],45,'0',{},True] >>> sorted(a) [False, 1, True, 45, {}, [], [[]], ['ab', '34'], '0', '23', 'bc', ('a', 'b')] >>> print True==1 True >>> print False==0 True >>> print False=='' False [/CODE] Python3 …

Software Development python
Member Avatar for vegaseat
0
219
Member Avatar for chinnaedu

Hello all, i am in need of developing an application (writing a C/c++ code ) to Run an application(say for example a vlc player or any as such) from the Code and get its process ID and perform certain manipulation and then kill it ..... i want the application to …

Software Development c++
Member Avatar for rinku2142
0
160
Member Avatar for blaisemcrowly

Hi Basically i am trying to read a file and insert a specific string at a position. but it seems that the entire process freezes and the program runs out of control. [CODE] fstream shot; char mess[240]; shot.open("file.vix"); while(!shot.eof()) { shot.getline("mess",240); if(strcmp(mess,"<DEPT>)==0) { shot<<"< ANNOUNCED >\n"; //TROUBLE } } [/CODE] …

Software Development c++
Member Avatar for blaisemcrowly
0
87
Member Avatar for sennat_26

hi all, thanks for viewing this post.. i have a java constant class for label and button [CODE]public class ButtonConstant { public static final String EXIT=ButtonConstant.getString("BUTTON_CONTENT"); private static String getString(final String key) { System.out.println("inside buttonconstant"); return new LocaleHelper().getString(key); } } [/CODE] here the button content is the key which is …

Software Development java
Member Avatar for javaAddict
0
148
Member Avatar for ubi_ct83

Hi and thanks for viewing my thread, i have a problem with JComboBox. in my situation, i have a code that display JTextArea and JComboBox. this is my code: [code] public class JScrollPanes extends JApplet { //-------------------------------------------------- static String[] t_value2 = { "2", "3", "4", "5", "6" }; // ----------------------------------------------- …

Software Development java
Member Avatar for javaAddict
0
64
Member Avatar for Bobon

Hey lads. Doing a while loop question but am having a little difficulty with this question. I thought i knew enough to get questions like this correct but unfortunately not experienced enough. The following code is attempting to get sum of values in array that are less than 10. When …

Software Development java
Member Avatar for JamesCherrill
0
86
Member Avatar for BuhRock

Im writing the demo for my class to demonstrate each method. The class takes a number and assigns it to a month, or is supposed to. I have it working to say month 1 is January, month 2 is February and so on. I want to user to enter a …

Software Development java
Member Avatar for wolstaneye
0
119
Member Avatar for sennat_26

Hi, Im currently in a situation to get all the application name that is currently running in windows but i can get only the processes that is currently running using the following code Process p = Runtime.getRuntime().exec("tasklist.exe /v "); Can anyone help me out in getting the application name... Thanks …

Software Development java
Member Avatar for sennat_26
0
3K
Member Avatar for charqus

If i have a listBox , with 10 elements ( or whatever ) , can i select a element and to change it's color ? Only for that element , not for all ... Something like: listBox Collection: [B]ENG [COLOR="#ff0000"]UNG[/COLOR] IT RO [/B] Like in my example , to choose …

Software Development
Member Avatar for charqus
0
113
Member Avatar for Skeltpl

Hi I'm pleased to say that my programming in Python is going really well and I've managed to write about 70% of the codes I need (for a data analysis program) and now I'm starting with the last 30%. :) I have a text file containing data from a set …

Software Development pdf python
Member Avatar for Skeltpl
0
186
Member Avatar for Mohsen6558

Hi a GPS Device Send position information to My server IP and Port with GPRS system Now I Want See That information on server I a project for listen the IP and Port (Like Chat) but I recive only $$ ! why?

Software Development vb.net
Member Avatar for Mohsen6558
0
92
Member Avatar for tien113

hi, i have some problem with my project, can u help me??? I google but no solution found...:( I used hibernate, strust 2 and spring to manage transaction. I want to try catch username in New.java, username is a PK, this pape throw can throw excetption error but the server …

Software Development java session
Member Avatar for tien113
0
2K

The End.