43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for seanbp

What are some hints or tips on writing efficient functions? I read about converting the code to assembly, and I've also read about the stack and functions. However, I fail to understand how data stored higher can be accessed before the end on a FIFO stack, as any local variable …

Software Development assembly c++
Member Avatar for vijayan121
0
107
Member Avatar for miturian

So, this is probably a bit abstract, and I apologize if the title was imprecise: I have a simulation class, which contains a vector of objects of class A, the member functions of which depend on parameters a,b,c: [CODE] class SIMULATION { vector<A> array; }; class A { A(a,b,c); } …

Software Development c++
Member Avatar for mike_2000_17
0
187
Member Avatar for steven8579

I have a listbox titled lstResult1 and lstResult2. I am pretty new to C# programming. I am trying to save the two list boxes along with the rest of the file. I was able to save the three textboxes to the file but i cant get the two listboxes to …

Software Development
Member Avatar for steven8579
1
172
Member Avatar for x2fair

kindly help me........ [code] Public Sub JoinTable() Dim conn As ADODB.Connection Dim rs As ADODB.Recordset conn = New ADODB.Connection rs = New ADODB.Recordset With conn .ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _ & "SERVER=" & MySQL_SVR & ";" _ & "DATABASE=documentdb;" _ & "UID=" & MySQL_UID & ";" _ & …

Software Development vb.net
Member Avatar for jlego
-1
200
Member Avatar for RenanLazarotto

Hey guys! Me again. I want to change some text inside a textbox when a checkbox is checked. I tried many things, but none seems to work. I need that, when checkbox gets checked, the textbox value gets deleted from backwars until a dot. Then, place another predefined text immediately …

Software Development vb.net
Member Avatar for RenanLazarotto
0
172
Member Avatar for DJSAN10

If the main() takes 3 arguments i.e. int argc,char * argv[],char *env[] and SINCE C DOES NOT SUPPORT FUNCTION OVERLOADING ,y does the c compiler does not give error for simply void main() //that is no arguments at all OR void main(int argc,char *argv[]) //2 arguments

Software Development c
Member Avatar for DJSAN10
0
195
Member Avatar for mrteey2k
Member Avatar for AndreRet
0
83
Member Avatar for J0shu

Hello everyone. I've been trying to implement a linked list in C++. I found this implementation on the web, where they created a struct for the list's nodes. When trying to add a new node to the list, I get this error: [B]List.C: In member function `bool Linked::addNode(Point)': List.C:23: error: …

Software Development c++ linked-list oop
Member Avatar for jonsca
0
562
Member Avatar for tom_289

Code given below, suppose to give hourly pay * number of hours + if hours greator then 37 then calculate rest with given rate (overtime) and display final result but its just multiplying pay rate hourly with pay rate for overtime hourly and i made it in VS 2010 windows …

Software Development
Member Avatar for jaffar_ramnad
0
143
Member Avatar for zobobthegreat

Hello community im new! I am really rusty at C# but i do not want to learn the basics all over again so i hit the ground running and ran into a hurdle. I want to use an xml file for a database. Its a car repair tracking system i …

Software Development asp.net c c# c++ xml
Member Avatar for kvprajapati
0
3K
Member Avatar for yuri1969

Hi, I'm fighting with [B]make[/B] for hours and I rly don't know where is my problem. I need to have a static lib libxml.a and an application (make.c) which uses it. I tried to compile it under GCC 4.4.5 and 4.5.0 and the compilation run fine. But under GCC 4.3.2 …

Software Development c xml
Member Avatar for Martin B
0
2K
Member Avatar for bibiki

I am working on this exercise: Write an application that asks its user to type a complete sentence on one line. The application then displays in the console window the words in the sentence, one word per line, less any punctuation. I have the following code: [CODE] import javax.swing.*; import …

Software Development java java-swing
Member Avatar for bibiki
0
148
Member Avatar for Rookie09

Allright dudes ,listen up .. i am programming C++ about 2 days now , so i am not into it , in any way , so the problem is that the preproceccor macro #define should trigger the constructor , but the problem is that i got that annoying compiler error …

Software Development c++
Member Avatar for Rookie09
0
240
Member Avatar for shanki himanshu

hi guys...actually m in deep trouble.i have to make projct in turbo C. but i dont have any time left.Can ny1 help me. can ny1 send me projct so dat i cant lose my marks. plz help meee...

Software Development c
Member Avatar for Kamatari
-8
134
Member Avatar for achava

I have an xhtml document that contains many lines that look like: <div style="position:absolute;top:224;left:108">The line was longer than we expected</div> For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with …

Software Development html-css xml
Member Avatar for achava
0
171
Member Avatar for afaque01

Hello! Iam trying to Check Values Of 2 textboxex .. n then Print A certain Amount.. can Any 1 help me.... Code: [CODE]If C1.Text = "Agra Fort" & C2.Text = "Delhi" Then L8.Text = "800Rs/-" End If [/CODE] Actualyy i have jst Started learning VB.net... Iam trying to Check from …

Software Development vb.net
Member Avatar for afaque01
0
85
Member Avatar for headedtomexico

I'm not used to getting this deep in c++, but all these pointers are making my brain boil. I'm trying to get a str_replace working [CODE]VOID str_replace(PCHAR Dest, PCHAR Find, PCHAR Replace) { PCHAR New=(char *)malloc(sizeof(CHAR)*MAX_STRING); PCHAR Found = Dest; PCHAR Temp = Dest; strcpy(New,""); while(strstr(Temp,Find)) { Found = strstr(Temp,Find); …

Software Development c++
Member Avatar for headedtomexico
0
174
Member Avatar for daudiam

Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } } class R3 { void doit(R2 a) // (1) { a.set(new Integer(5)); } }[/CODE] When I compile the file containing class R3, it rightly gives an unchecked warning …

Software Development java
Member Avatar for daudiam
0
167
Member Avatar for Seldar

Hello everyone and Merry Christmas. The reason I am opening this thread is that I am required to write a polynomial calculator in Common LISP as part of a Course Work. As I am newbie to LISP(s) I am asking you if anyone can help me with it . The …

Software Development
0
77
Member Avatar for htowa

hi I have been working in this code for a while and I need to know what's wrong with it ASAP. here: [CODE]#include<iostream> using namespace std; class Node { public: int value; Node * next; Node(); Node(int); }; Node::Node():value(0),next(NULL){} Node::Node(int v):value(v),next(NULL){} bool AllPositive(next * h) { bool test = false; …

Software Development c++ linked-list
Member Avatar for frogboy77
0
154
Member Avatar for Sara Tech

Hi Guys :) I hope you fine :) I want when I color a shape ,that color does not wipe the background picture.I want it be [COLOR="Red"]transparent not solid [/COLOR] :S I tried Opticity property :-/ but it is [COLOR="Red"]just for the whole form[/COLOR] :icon_sad: ,it does not available for …

Software Development vb.net
Member Avatar for Sara Tech
-1
139
Member Avatar for kapilsolanki84

hello, can any 1 please help/guide me for creating an program .exe file in C. as i am using Dev c++ compiler.say for E.g( program of addition in this by compiling & running it i get the required output. but if i dont want to run the program again n …

Software Development c file-system
Member Avatar for sharunkumar
0
3K
Member Avatar for tom_289

hi i am currenlty studying C sharp Visual studio, trying to convert a case study of polymorphism in payroll (which is avaiable in different books as console application) into windows application.. everything is going well, except here where i got switch statement and giving error in case 2- case 4 …

Software Development visual-studio
Member Avatar for tom_289
0
161
Member Avatar for ssudra

Hi im having trouble linking my database. I dont understand what ive done wrong and keep getting the following message: Syntax error in FROM clause. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at................................... My code ive used is: [CODE] using System.Data.OleDb; namespace coursework2 { public partial class Form1 : Form { public OleDbConnection Coursework2; …

Software Development c# open-source
Member Avatar for kvprajapati
0
2K
Member Avatar for VernonDozier

I have a project with a bunch of different options that you can turn on and off sprinkled throughout many files. You comment and uncomment the options you want, much like the php.ini file in PHP file, though this is actual code. It looks something like this: [code] //#ifndef _OPTION_1 …

Software Development c++
Member Avatar for VernonDozier
0
174
Member Avatar for WolfShield

Hello everyone, I have just recently started learning Java (previous Python programmer) and I am making a text based calculator program. I have had no problems with programming it so far, and I just need help with one part of perfecting it. [code=java] package calculator; import java.util.Scanner; public class Main …

Software Development java
Member Avatar for WolfShield
0
280
Member Avatar for mag12203

I am just plain stuck. I can not figue out why when I type a word to test a palindrome sometimes it comes back as true and other times as false. Thank you for any help. import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static …

Software Development java
Member Avatar for mag12203
0
175
Member Avatar for Thisisnotanid

Hi everyone. I was trying to solve Pb 35 on Project Euler ([url]http://projecteuler.net/index.php?section=problems&id=35[/url]). It essentially asks to write a program to list all circular primes under 1e6. I wrote the program and it works well for the most part. However, in the end it seems not to be able to …

Software Development algorithm python
Member Avatar for Thisisnotanid
0
2K
Member Avatar for mcenley

Hi friends, I am trying to write a program for drawing a Koch curve in Python. The Pseduocode is given as follows and the hint is to use recursion: [I] To draw and Koch curve with length 'x' all you have to do is: 1. Draw Koch curve with length …

Software Development python
Member Avatar for vegaseat
0
3K
Member Avatar for tawes01

I'm making a dialog based text editor, using dev-c++. how can I insert text at the current cursor position? as in get the location of the cursor (not the mouse) and insert text at that point in the edittext control

Software Development c++
Member Avatar for tawes01
0
224
Member Avatar for Mike Bishop

Morning, Please a clever person help me, i am using VS2010, I have a form with a button with the following code. [CODE]Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim cryRpt As New ReportDocument Dim crtableLogoninfos As …

Software Development sql vb.net
Member Avatar for Mike Bishop
0
195
Member Avatar for piotr_kast

I have general problem with bindingSource control In VS 2005 C# professional. In project I created new Form and: 1. added a BindingSource component named bindingSource1 and DataGridView control named dataGridView1. 2. binding bindingSource1 to data (DataSource), and the DataGridView controls to bindingSource1. 3. in bindingSource1 set properties DataMember to …

Software Development dataset
Member Avatar for piotr_kast
0
215
Member Avatar for Joey_Brown

Hello I was wondering whether is it possible to create a .txt file or check if a .txt file exists inside the folder earlier defined as a path. Basically I have a path : [CODE]#define some_little_file "/User/Joey/Desktop/" [/CODE] and I would like to create and manipulate a txt file there. …

Software Development c c# c++
Member Avatar for Joey_Brown
0
92
Member Avatar for lielee

Hello. My project is like this. When I select from "TypeComboBox" and "BeanComboBox", the "PriceTextBox" will display the appropriate amount of the "Private PriceDecimal". But when I added the "Private SnackPrice", it will display only the 1st array, (0, 0) for both array. I try using "Select Case" but doesn't …

Software Development display vb.net
Member Avatar for lielee
0
127
Member Avatar for radc

I am new to wx.Python and I am stack. Is it possible to put wx.Check into wx.StaticBox?? I have found some examples with Radiobuttons inside wx.StaticBox. In short window displays an wx.ListCtrl box on the left, and some check boxes and wx.StaticText arranges into wx.StaticBox on the right. But the …

Software Development python
Member Avatar for richieking
0
658
Member Avatar for Allasso

Hello, Is there a reference anywhere that I can find out the number of cycles each instruction takes for ia-32 processors? I do not find this information in the docs, neither has much googling come up with anything. Thanks, Allasso

Software Development assembly
Member Avatar for Tight_Coder_Ex
0
85
Member Avatar for localp

I am using VS2008, OS win Vista. I need to create a C++ windows form program to add a .swf flash animation to the form. How is this done. Any sample code, or a good tutorial is appreciated.

Software Development c++ flash gui image windows-vista
Member Avatar for localp
0
81
Member Avatar for Mike Bishop

Morning all, I have the following code that gets a jpg image from sql which works fine. What i would now like to do is save this image as a file on my pc in a temp folder that i can use in a report. i would like to change …

Software Development image sql vb.net
Member Avatar for Mike Bishop
0
205
Member Avatar for twohot

I'm looking for ways to create variables in python3 as needed. E.g book1 = book(name1) # book is a class book2 = book(name2) book3 = book(name3) book4 = book(name4) book5 = book(name5) : : : V book-n = book(name-n) I have the names of the book in a list but …

Software Development oop python
Member Avatar for twohot
0
261
Member Avatar for solfinker

I'm trying to calculate the standard deviation from data in a grid, but sth goes wrong. I have tried with variable declarations inside and outside the function and the result stays the same. It seems to me that the loop doesn't work properly. Can you take a look at the …

Software Development visual-basic
Member Avatar for solfinker
0
173
Member Avatar for Naveed_786

Dear all, Please help me i want to check record already exists in database please modify this code please help [CODE]Private Sub txtempno_KeyPress(KeyAscii As Integer) On Error Resume Next If KeyAscii = 13 Then btncalculate.SetFocus rs2.MoveFirst While rs2.EOF = False If Val(txtempno.Text) = rs2.Fields!EmpNo Then txtsub.Text = rs2.Fields!subjects txtempname.Text = …

Software Development visual-basic
Member Avatar for AndreRet
0
205
Member Avatar for Unhnd_Exception

This should be easy. Haven't writen a C++ app in over 10 years. Trying to delve back into it. Will someone be kindley enough to show me a sample Function and Procdure Name the function AnyFunction that returns and integer. Name the procedure AnyProcdure Heres my .h and .cpp [code] …

Software Development c++
Member Avatar for Unhnd_Exception
0
182
Member Avatar for blur0224

So I'm building a web crawler for a pet project I've been working on. I'm using tutorial code for the crawler then building on it. I've done extensive troubleshooting and haven't had any luck. The problem: [LIST] [*]Roughly half the websites return content, but all of them return headers. [*]Some …

Member Avatar for blur0224
1
312
Member Avatar for mrcpp

Hi, I tried doing Project Euler #27 today, which asks the following: [QUOTE] Euler published the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 40^(2) + …

Software Development c++
Member Avatar for mrcpp
0
310
Member Avatar for allen2663

I am writing a program to store data and want to make the main page uneditable I have an edit button that will allow editing from another form but I don't want to change stuff by accident. I have disabeled all of the boxes but don't like the way it …

Software Development vb.net
Member Avatar for allen2663
0
76
Member Avatar for Kanoisa

Hi guys, I have been away from programming for a while and i started back today now that i have some time again. However i have run into a bit of a brick wall. im trying to impliment a queue with a simplified interface for holding messages. What I have …

Software Development c++ queue visual-studio
Member Avatar for Kanoisa
0
167
Member Avatar for frankvw

Hi, Firstly, I am quite new to python so hopefully this could be quick answer for any kind sole who give help. I am trying to connect the data files created from one piece of equipment to another process that require similar, but not the same, data .txt files. The …

Software Development python regex
Member Avatar for frankvw
0
103
Member Avatar for jackmaverick1

I am trying to make a card class that has a bunch of functions to make it possible for the AI to judge what cards can be played. The card game I am working on at the moment is Rummy by order of my brother. I made a 3 pointer …

Software Development c++ hard-drive
Member Avatar for jonsca
0
284
Member Avatar for dynamyt3

Hello.I'm a begginer in C++. I'm trying to make an algorithm that will shuffle randomly the elements of a matrix[4][3],but i don't know how to start... Can someone help me with the algorithm ? I think is something like this but i'm not sure : [code]bool test=false; int x; x=rand()%4; …

Software Development algorithm c++
Member Avatar for dynamyt3
0
1K
Member Avatar for emongs

can some one help me w/ codes in making picture editor. that allows the user to use the following: Picture ToolBar Color Picture Color BackGround Effects Insert Text Alignment of Picture Resize thanks for the help

Software Development visual-basic
Member Avatar for AndreRet
0
142

The End.