132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zukkoor

Hello, I am trying to develop a program and I am stuck on a few portions. 1. I need the program to calculate the gradient of a user entered function. 2. I need to multiply matricies which I think I know how to do but the matricies need to have …

Software Development c++
Member Avatar for jonsca
0
73
Member Avatar for kalehl

I am not sure how to accomplish this, but I am trying to take dates from two fields and using the current date show the progress percentage in a different field. So, if past date is Jan 1st, the current date is "x", the future date is Jan 11th. How …

Software Development vb.net
Member Avatar for kalehl
0
361
Member Avatar for ilyaz

I need to develop a piece of code in an old legacy Visual C++ 6.0 system. I am invoking a stand-alone executable via a system call. This exe is supposed to create a file if processing goes OK or not create one if it fails. The name of the file …

Software Development c++ file-system
Member Avatar for ilyaz
0
202
Member Avatar for yoni0505

Hi there, I want to learn how to log in to websites using python 3.1, I've searched for any info and couldn't find. The closest thing I found was an example for older version of python, which I couldn't learn much from it cause the functions are not used in …

Software Development python
Member Avatar for snippsat
0
140
Member Avatar for bp2005

Hi, apologies since I feel this is a very basic question... I need to feed a function that takes a few arguments, and I'm having trouble with one of the variables: my_function(..., ..., const char* const*, ...) I'm trying to initialize that variable like this: const char* const myVariable[] = …

Software Development c++
Member Avatar for bp2005
0
98
Member Avatar for txwooley

So I have figured out how to receive output from an application using [CODE]process = subprocess.Popen("my_app", shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE) info = process.communicate() [/CODE] But how do I SEND info TO an app? I have an application that asks for a yes(y) or no(n) confirmation …

Software Development python
Member Avatar for txwooley
0
84
Member Avatar for john_prince

Hi, We're trying to monitor our logs, and would like to be alerted in case of repeated occurrence of a certain field ( ie PY1011 ). We'd like the script to be run every half hour, which will scan the log file, look out for repeated of any user, if …

Software Development perl
Member Avatar for d5e5
0
137
Member Avatar for knshn

Hi, I want to take a command with its options as input and execute it with one of the exec() functions. My approach is to take input first and put it in an array by dividing with string tokenizer. Then I call execvp() which takes the array including the command …

Software Development c
Member Avatar for knshn
0
397
Member Avatar for VernonDozier

I'm relearning (OK, "learning" would be a better term since I never really understood it the first time) piping. My end goal is to execute some shell commands like "ls", get the results into another variable, and do some stuff with it. I imagine I'll end up using commands like …

Software Development c
Member Avatar for VernonDozier
0
141
Member Avatar for moein_soltani

Hi Guys.. I have a problem in tellg() function.. When I open file in Binary mode , It returns true value,but when I open in default mode it returns false value.I can't understand what has happened ...(the problem is in this code) : [CODE] for(int t=1;t<size;t++){ char ch=input.get(); codes_list[t].symbol=list[t].symbol=ch; input>>list[t].q; …

Software Development c++
Member Avatar for moein_soltani
0
246
Member Avatar for pala2222

hi. How to save a bit on the physical disk in the C + +. ofstream write only file, and I would like to save the hard bits but I do not know how to do it

Software Development c++
Member Avatar for pala2222
0
252
Member Avatar for johndoe444

For this content of the file/stdin: [CODE] a 3 W 10 A 100 , 10 k 7 . 3 I 13 [/CODE] I have written the following code [CODE] while (k-- > 0) { scanf(" %c %d",&c, &p); printf("c: %d p: %d\n",c,p); } [/CODE] if I change the format string …

Software Development c
Member Avatar for WaltP
0
2K
Member Avatar for COKEDUDE

When you have a function and need to scan for 2 different numbers, should the scanf be in the function or in the main() and why?

Software Development c
Member Avatar for WaltP
0
153
Member Avatar for COKEDUDE

Could someone explain where and when you would use << and >>. I read these 2 articles but don't really understand them. [url]http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B[/url] [url]http://en.wikipedia.org/wiki/Arithmetic_shift[/url]

Software Development c
Member Avatar for gerard4143
0
112
Member Avatar for Siren88

Hi, I'm trying to create a program that reads in a line of text. For some reasons, when I try to run the program, "Your input has ---- non-blank characters." comes up under every words. I want it to just come up once at the end. Any help will be …

Software Development java
Member Avatar for donaldw
0
77
Member Avatar for dusktreader

I have a class hierarchy in which the base class is abstract. Each derived class has a set of private members which describe parameters that control how the class processes data. I want to enforce implementation of a setParams() function across all derived classes. However, because the parameters for each …

Software Development c++
Member Avatar for dusktreader
0
271
Member Avatar for lashatt2

I have a question, for example I input something on edit and in that time when I'll click on search button it will show find message, but it shows mysql error :'( why? what I am doing wrong in this code? :( [CODE]HWND edit; char t[MAX_PATH]; char query[MAX_PATH]; GetWindowText(edit,t,MAX_PATH); mysql_query(conn, …

Software Development c++ mysql
Member Avatar for mitrmkar
0
99
Member Avatar for gedas

hey everyone, i just started working with java graphical user interface, i found some source codes from the web and trying to play around with them and i am just unable to understand it fully, the code is well commented and easy to understand it is a simple game called …

Software Development java java-swing open-source user-interface
Member Avatar for gedas
0
331
Member Avatar for COKEDUDE

With my code below how would I either ignore or remove decimal numbers? I tried typecasting it but that messed up my code. I can't think of any way to make a loop to accept only integers either :(. I don't understand why the scanf is accepting decimal numbers when …

Software Development c
Member Avatar for WaltP
0
200
Member Avatar for Kruptein

If I do this code in the command line: [code=python]f = open(fl, 'r') txt = "" for line in f: txt+=line f.close() print txt[/code] I get all the output for the file fl, but if I do: [code=python] def editfl(self, fl): f = open(fl, 'r') txt = "" for line …

Software Development python
Member Avatar for vegaseat
0
238
Member Avatar for Ana_Developer

Hi, I need to have a grid view that will select only few columns from two tables in the database and show them. I have my own data layer implemented, i.e. I have functions that are pulling all the tuples for a satisfied condition and returning them back to me. …

Software Development
0
79
Member Avatar for bufospro

Hi all, I have to make a function which take as parameter two arrays and merge in one new. For example int array1[][] = {{1 , 2, 3, 4}, {2, 3, 4, 5}}; int array2[][] = {{5 , 6, 7, 8}, {6, 7, 8, 9}}; To take as result arraynew[][] …

Software Development c
Member Avatar for ndeniche
0
132
Member Avatar for nukes88

Hi, i have a problem, i am using a library given by my university to create a game, these are my classes and cpp files, and i am getting this error: error C2512: 'Board' : no appropriate default constructor available, pls help. [code] class Board { protected: GWindow &Gwin; int …

Software Development c++ oop
Member Avatar for jonsca
0
170
Member Avatar for ashokkumarrsp

kindly give me the source code for NFA to DFA conversion.

Software Development c++
Member Avatar for Nick Evan
0
2K
Member Avatar for cassie_sanford

I am writing a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax is 6.75 of the meal cost. The tip is 15 percent of the total after adding the tax. I have to dislay the meal cost, …

Software Development c++
Member Avatar for Fbody
0
413
Member Avatar for pearle

Hi, all. I'm pretty new to C++, and I think I'm getting the hang of it, but there's a problem with a program I'm writing and I just can't seem to fix it. The program's supposed to print a pyramid like this: [ICODE] 1 1 2 1 1 2 4 …

Software Development algorithm c++
Member Avatar for tetron
0
126
Member Avatar for Bench

The C++ [i]string[/i] type can be converted to a [b]const[/b] null-terminated string using [icode].c_str()[/icode] for interoperability with legacy C code. However, this poses a potential problem when mixing [i]std::string[/i] with functions designed to mutate a string in-place. a const_cast to get around this issue results in undefined behaviour, since the …

Software Development c++
0
966
Member Avatar for drabsch

i need to play a system sound like in a chat program i am using [CODE]Interaction.Beep[/CODE] at the moment but would like to use a different sound. any thing i could not find any thing on the net

Software Development visual-basic
Member Avatar for debasisdas
0
3K
Member Avatar for jrosh

I have 2 frames (classes exactly) customer & items... when a button clicked (button 'BUY') on customer frame it navigates to items frame. mean time i made customer frame [B]customer.setEnabled(false) [/B]. i called to item frame by simply creating an object of item class. then , when i coming back …

Software Development java
Member Avatar for saw.pawan
0
613
Member Avatar for blackmagic01021

hello Everyone, I have a problem with type casting. My code is [CODE] zcpr.next_in = FilePtr;[/CODE] next_in is a element of the zcpr structure where its type is and FilePtr is a void type pointer. zcpr is a z_stream type structure and next_in is a Bytef type pointer. This code …

Software Development c++
Member Avatar for blackmagic01021
0
125
Member Avatar for scottlafoy

Hello, My problem is, I am trying to format a number into a certian format. The number is 100072305608500 (this is the exact copy from what was passed in) the format it should be in is 100/07-23-056-08W5/00 I am using [CODE]return (string.Format("{##0/00-00-000-00W0/##}}", Convert.ToInt64(wellLocation)));[/CODE] where the # are optional digits. I …

Software Development
Member Avatar for DanielGreen
0
131
Member Avatar for chixm8_49

Hello again. :) I am comparing two nodes (some of my other methods need this method). I am having a problem with this method because it returns false even though both nodes have the same content. What are the problems of this code? Any suggestions? This is the critical part …

Software Development java
Member Avatar for chixm8_49
0
2K
Member Avatar for suncica2222

I need simple timer that should not mess with the threads,and doesnt use Sleep(). I need something like this: [CODE]int main(){ function1 { whule(1) { // do stuff execute evry 30 min function2(); } } return 0; }[/CODE] So function1 and while(1) must not be slowed down and need to …

Software Development c++
Member Avatar for suncica2222
0
149
Member Avatar for Behi Jon

Hi, When I want to run a simple project in NetBeans, I receive an error : [quote] ! was unexpected at this time. c:\MinGW\bin\make.exe: *** [.validate-impl] Error 255 BUILD FAILED (exit value 2, total time: 219ms) [/quote] My eclipse is working properly with this MinGW installed on my computer . …

Software Development c++ java-netbeans
Member Avatar for Behi Jon
0
361
Member Avatar for bobsta

I am trying to render multiple scenes in different window. I am confident that the data is correctly read in from the .txt file and used to initialise the Beam and Segment objects (each Beam object comprises >=1 Segment) However when I attempt to render the scenes the program tries …

Software Development c++ opengl suse
0
81
Member Avatar for abhi_marichi

When we copy/cut and paste a file a dialog box opens showing the process of coping and pasting files it includes only cancel button, but I want to add "pause" & "resume" button also there.... To do this how should I write a program, on what I should write the …

Software Development vb.net
Member Avatar for abhi_marichi
0
79
Member Avatar for qariella

This is what I'm gonna do and I know I havnt got far, but have been searching on google for 5 hours and dont have the solution yet, Your little sister / brother asks you to help her/him with the multiplication, and you decide to write a java application that …

Software Development java
Member Avatar for qariella
0
162
Member Avatar for chinnaedu

hi everyone...... am right now working on a project which needs to connect to vlc player from code....does libvlc support this or else if there is any other please let me know...... my another doubt is there any possibility(like any available APIs) that takes video file as an input and …

Software Development c++
Member Avatar for chinnaedu
0
115
Member Avatar for hosamath

Hi Friends... I use Delphi 2010 application.. To do some calculation I load array of numbers into string grid but some times i have to make some of the rows inactive and do the calculations..Can any body help me out with a code to disable selected rows and do my …

Software Development delphi pascal
Member Avatar for finalist
0
2K
Member Avatar for preethi_ga2005

hei friends can anyone tell me how to upload excel file to access in vb.....if u give code it will be very much helpfull to me, thankx.

Software Development visual-basic
Member Avatar for abu taher
0
275
Member Avatar for emilio

hi i created a new OutlookAddIn project. the project adds a custom toolbar button to outlook. when run the project in debug mode, i see the custom button and everything works. i want to install the poject in another computer, i added a new SetupProject to the solution and targeted …

Software Development
Member Avatar for emilio
0
157
Member Avatar for rena0514

Hey i have a program thats due sunday and my teacher doesn't really teach that well....so i'm kinda confused and need help. problem: read a file of positive intergers and then print each lin and then print each number in the line (i've done this part) this is where i …

Software Development java
Member Avatar for jwenting
0
148
Member Avatar for pinsickle

I have << overloaded to write to a file, however I get an error when I try to use it in main. I tried calling the actual write method. Is the SpareTable that operator that is failing. I already checked the .h and .cpp parameters and that all my #includes …

Software Development c++ ios
Member Avatar for jonsca
0
163
Member Avatar for moein_soltani

Hi guys.. In the huffman algorithm I have made an output file contain 0 and 1.. how can I say to compiler that these 1 and zero are bit no Byte. and how can i make the real Huffman output that its size is lesser than the initial file, What …

Software Development algorithm c++
Member Avatar for moein_soltani
0
104
Member Avatar for rajani mayekar

hiiii all, i want to create a cube in vb.net through code.. and even i want to retrieve cube created in anlysis manager in vb.net so i want connectivity code... please help me!!!!!!!! thanks a lot!!!!!!!!

Software Development vb.net
Member Avatar for kvprajapati
0
288
Member Avatar for COKEDUDE

Can someone tell me why my compiler won't compile this code and how to fix it? [CODE]void gcd(int x, int y) { if (x > y) { int c; while(1) { c = x % y; return y; x = y; y = c; } if (y > x) { …

Software Development c
Member Avatar for COKEDUDE
0
184
Member Avatar for RahulV

Hi, I've a really huge recordset having lacks of records. For some reasons I've to take all the records into an array (using loop) to do some processing and then put it into a grid. Now since the recordset is huge the memory is not able to handle the array …

Software Development visual-basic
Member Avatar for QVeen72
0
165
Member Avatar for sleepybug

hey, i was writing this program for complex number calc and when i run it ,it never returns me the right values.. so can u plz make necessary changes where i m wrong.. YEAH AND ONE IMP THING TO TELL U I M BEGINNING WITH POINTERS AND I LITERALLY SUCK …

Software Development c++
Member Avatar for jonsca
0
204
Member Avatar for caribedude

I've been trying to make a synthesis game for my Organic Chemistry class, but when I try to draw some buttons on the screen I get a segmentation fault. I am using some functions for loading taken from Tim Jones's tutorial. I have built a Button class that has the …

Software Development c++
Member Avatar for caribedude
0
246
Member Avatar for fardoonmuhafiz

Which is the most efficient way of creating a string object in java? [icode]String s="helo";[/icode] or [icode]String s=new String("helo");[/icode] in terms of memory usage? Thanks in advance...

Software Development java
Member Avatar for fardoonmuhafiz
0
93

The End.