43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nathan Campos

Hello, I'm trying to get a string from a thing that is inside quotes as you can see [URL="http://www.daniweb.com/forums/thread209962.html"]here[/URL], but when i try to compile i got this errors: [code]ubuntu@eeepc:~/C++/Tree$ g++ -o tree tree.cpp tree.cpp: In function ‘int main(int, char**)’: tree.cpp:65: error: ‘get’ was not declared in this scope tree.cpp:65: …

Software Development c++ ubuntu
Member Avatar for Nathan Campos
0
1K
Member Avatar for Nathan Campos

Hello, I'm learning C++ and all that i learn i try to put in a interpreter of a language that i'm developing, it's only to practice, but here is a thing that i don't learned already, that is how i can get a string that is inside quotes, because i …

Software Development c++
Member Avatar for Nathan Campos
0
3K
Member Avatar for hemaljoes

I am facing problem with crystal reprot when i run that report on to the other machine and the database source is not the same as the machine where the reprots where created. It gives a logon Failed Message. I tried the following code as well but still it give …

Software Development
Member Avatar for DdoubleD
0
166
Member Avatar for darab

Hi How I can set ColumnType to MaskedTextBox in DataGridView?

Software Development
Member Avatar for kvprajapati
0
113
Member Avatar for aulason

hi there, i want to randomly pick an element from an array, so i used the following code. [code=C#] Random rndCell = new Random((int)DateTime.Now.Ticks); while (true) { rndCell.Next(aCells.Length); int rndIndex = Convert.ToInt32(rndCell.ToString()); if (aCells[rndIndex] != null) { aCells[rndIndex] = SOMETHING; // DO SOMETHING ELSE WITH rndIndex... break; } } [/code] …

Software Development
Member Avatar for ddanbe
0
215
Member Avatar for Zetlin

Hello everyone, ok so I am working on this code that takes a string and splits it using the re module. The string contains words in between "<" and ">" (sometimes multiple words). Now what the program does is it splits the string using the two characters above. Then it …

Software Development python
Member Avatar for Zetlin
0
126
Member Avatar for spauka

Hi all, I am a writing a small plugin to a piece of software that allows people to parse python files and return the output to the program, and to do that, i am allowing users to enter their script. However, they can only enter into a single line text …

Software Development c++
Member Avatar for spauka
0
115
Member Avatar for mandofl

Hello. What im tryin to do is answer the following. Write a class named Car that has the following member variables: yearModel, make, speed. In addition the class should have the following constructor and the other member functions constructor-accept the cars year model make as arguments. an assign to the …

Software Development c++
Member Avatar for necrolin
0
3K
Member Avatar for FJones

Here is the problem: Write a C# program that will read five scores, each on a separate line, from an external file named Unit09data.txt. Your program should then calculate the average of those scores and write the average, formatted to two decimal places in a different external file named output.txt. …

Software Development file-system visual-studio
Member Avatar for FJones
0
161
Member Avatar for dgr231

Hello all, I am in the process of teaching myself c++. I wrote one program successfully and I'm trying to write my second. I have run into a problem that I can not seem to figure out at all. I understand that this seems trivial, but I really need to …

Software Development c++
Member Avatar for dgr231
1
157
Member Avatar for kashn

Hi, I'm currently stuck, at this problem. I've created a tab control and make it add a new richtextbox each time a tab is added, but my problem is I can't figure out how to get the .Text part of that richtext box in that tab... here is my code …

Software Development
Member Avatar for kashn
0
148
Member Avatar for willygstyle

Hello all I have been a hobbiest programmer for quite some time now and recently got back into it. I'm starting with a pretty simple program that will track inventory for my moms buisness. I've worked through most the common problems but can't seem to figure out why im getting …

Software Development python
Member Avatar for willygstyle
0
129
Member Avatar for sivak

can anyone explain me abt these conecpts with example plz

Software Development
Member Avatar for sknake
0
142
Member Avatar for JackDurden

How do you erase an element thats inside a map. Not the key but the element the key is pointing to? This doesnt seem to be doing what i want it to. [CODE]map<int, vector<int> > my_map; map<int, vector<int> >::iterator it; void erase(int num) { for(map::iterator item=my_map.begin();item != my_map.end()) { if(it …

Software Development c++
Member Avatar for jesseb07
0
151
Member Avatar for smoore

Okay just started teaching myself python recently and am on to pickling stuff. I just wrote a simple program exactly like the tutorial said (a few different ones actually) and I am getting an error. Here is my code: [CODE] import pickle file = open('./text/pickle.txt','w') list = ['one',2,'three',4,'five'] pickle.dump(list, file) …

Software Development python
Member Avatar for smoore
0
244
Member Avatar for TheWhite

I'm looking for a way to detect when a JFrame is moving (maybe there is some kind of listener). I have a primary JFrame that loads a 2nd JFrame next to it. I want this 2nd JFrame to move simultaneously with the primary JFrame as though it were attached. I …

Software Development java
Member Avatar for Ezzaral
0
137
Member Avatar for sohil.shivani
Member Avatar for slayerace180

ok, so ive rattled my brain for quite some time now and im tired, i need help on my program because as of now, im down to 2 debugging errors "YAY!"... here is what the debugger says... " Line 7: error: too few arguments to function `void nextArray(bool (*)[20])' Line …

Software Development c++
Member Avatar for slayerace180
0
105
Member Avatar for penguin22

hi guys i can build and clean the vs solution in python and get the exe's to build but don't know how to create a window installer

Software Development python
Member Avatar for jlm699
0
144
Member Avatar for funfullson

Sorry I am asking a beginners problem between professional discussion.But I realy confused witch one is better.qt, gtk, wx, opengl or one else.please guide me with a clear comparison. Thanks dears. Editor ... moved from Re: Python GUI Programming (rule is: ask question in regular forum)

Software Development gui opengl python qt
Member Avatar for funfullson
0
142
Member Avatar for dgr231

Hey all, I know this is a very newbish questions, but I couldn't readily find the answer on this board so I figured I would ask. Consider the following code snippet: [code=cplusplus] for(i=0;i<5;i++) { int number; int counter; cout << "Enter a number less than 10:" << endl; cin >> …

Software Development c++
Member Avatar for Salem
0
133
Member Avatar for laghaterohan

I am developing a windows application wherein i need the application to work in the following way : Say i have a textbox n listbox . Say in a textbox i type R then all the items in the listbox that contains the letter "R" in them should be listed …

Software Development
Member Avatar for DdoubleD
0
150
Member Avatar for nkarvi

Hi everyone, I am new to c# and have come across to this: dataGridView[int a, int b].Value.ToString(); I understand that it takes the values of rows and turns them to string, but I cannot figure out the two integers. Are they the first and last rows respectively? What am I …

Software Development
Member Avatar for nkarvi
0
92
Member Avatar for 666kennedy

i know that the datetime.utcnow command is to show the date and time of the instant it was called. just say i have this [CODE] int time; time = //27/08/2009 09:00:00 time = time + //15 seconds [/CODE] what is the code or the numbers i need to use for …

Software Development
Member Avatar for ema005
0
191
Member Avatar for gopi17

I'm juz wondering how do I send a single value to a 8-parameter function... [CODE] void enterdata1(int &row1col2) { cout<<"Please enter the number for Row 1-Columm 2"<<endl; cin>>row1col2; if(row1col2 != 1 && row1col2 != 2&& row1col2 != 3 && row1col2 != 4) { cout<<"Please enter the correct number (Which is …

Software Development c++
Member Avatar for necrolin
0
152
Member Avatar for johnyjj2

Hello! I was looking for the answer here but I couldn't find: [url]http://www.freepascal.org/port.var[/url] . I've got old code in Turbo Pascal and I try to run it on Dev-Pascal 1.9.2. (I also tried Lazarus application, but there was "Error. Project raised exception class 'External: SIGSEGV'."). [code]Free Pascal Compiler version 1.0.6 …

Software Development pascal
Member Avatar for johnyjj2
0
2K
Member Avatar for lotrsimp12345
Member Avatar for packrisamy
0
263
Member Avatar for ladines

how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . .

Software Development assembly
Member Avatar for wildgoose
0
40
Member Avatar for lotrsimp12345

I understand the concept but i don't know when to use and what my teacher expects when he says overload certain operators.

Software Development c++
Member Avatar for lotrsimp12345
0
183
Member Avatar for sdmahapatra

Hi everyone I couldn't find the actual logic behind below two problems: [code](1) how to capture number of occurrences of 3 between 1 to 100? and (2) assigns a function to a pointer and subsequently call it.[/code]all problems are in c++ As I'm new in this field so,please help me …

Software Development c++
Member Avatar for mrnutty
0
125
Member Avatar for lolwtf

Hi all, I'm going to attempt to create middleware in C# and i need some advice. What I'm looking to do is have an open socket, then when our VB app connects to it, it makes another socket and keep the newly connected one open. It then has to get …

Software Development vb.net
Member Avatar for kvprajapati
0
157
Member Avatar for Voulnet

Hello all, I'm working on a C# application using MS Visual Studio 2008, and I want to make an installer for this project, so I used VS2008 to add a Deployment Project and chose Installer Wizard. The Wizard proceeded great and all, but when I try to build the Setup …

Software Development visual-studio
Member Avatar for kvprajapati
0
136
Member Avatar for sackymatt

Hi all, I want to know how i can decrement the value of quantity in stock in my data base. This would be based on how times an item is purchased. So every time an item is clicked, i want to show the quantity has decreased in the database. I …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
227
Member Avatar for Hiroshe

I'm seeing if it is possible to write a pong game only using standard C with maximum portability. I've worked out everything except user input. When the game is playing, If the user has no key pressed down, the paddle does not move but the ball should keep moving. I …

Software Development c
Member Avatar for Duoas
0
2K
Member Avatar for harry010

Hi, I've written a program that uses two objects that look like the ones below, and I was wondering why i would need an assignment operator and copy constructor for either of these classes. Are strings like[ICODE] char*[/ICODE] (dynamic memory)? It would not be difficult to write these methods, I'm …

Software Development c++
Member Avatar for harry010
0
196
Member Avatar for no1zson

What exactly does the "Return 0;" indicate in this function? I know my code will not even compile without it, but I have just been putting it in out of habit without realizing that I do not even know what it does. I was under the assumption that it meant …

Software Development c
Member Avatar for no1zson
0
329
Member Avatar for goody11

How do I make a line of code such as this possible? [code] LTEXT spnV,IDC_STATIC,57,10,200,8 [/code]

Software Development c++
Member Avatar for goody11
0
75
Member Avatar for fareast87

Greeting everyone.. This is my very first thread. I'm a final year student doing my thesis. I want to develop a software of Java that can encrypt an image so that it can be transformed to unreadable form. My idea is to transform the image file (i.e JPG, BMP) to …

Software Development encryption image java puzzle
Member Avatar for fareast87
0
184
Member Avatar for dilbert_here00

Hi all, Following is a piece of code which tries to open an image using Tkinter, the root window opens but I am not able to see the image. I don't know what is wrong with my implementation. Could you please have a look at the code & see if …

Software Development image python tkinter
Member Avatar for dilbert_here00
0
445
Member Avatar for turbomen

Dear Sir, Could you tell me what is (are) wrong of the following answer:- Question:- Create the first half of a game of rock, paper, scissors. Ask the user for R, P or S. Get the computer to generate 0,1or 2. Now convert the computer’s number to R, P or …

Software Development pascal
Member Avatar for TeejMonster
0
225
Member Avatar for el33t

In visual c++, what is the difference between these three: WindowClass.style = CS_HREDRAW | CS_VREDRAW; //Found in winmain() UpdateWindow(hWnd); // Also found in winmain() WM_PAINT //It is a switch case in funtion winproc() I unerstand that all three of them does something like to draw/redraw the client window/window. But can …

Software Development c++
Member Avatar for Frederick2
0
189
Member Avatar for darangho

Hi all I am working on a project with Python tk GUI and trying to make a scrollbar that scrolls more than one canvas horizontally tried to approach it as option command = ~~ and ~~ but it seems not working does anyone have any idea on this issue??

Software Development gui python
Member Avatar for darangho
0
3K
Member Avatar for Arunabh Nag

Well, i really got stuck into this problem. In my project i wish the user to be able to select a database using an open file dialog box. I am unable to connect with this database. i used the code.. [CODE] createConnection.ConnectionString = _ "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Tostring(ofdselectdatabase.FileName)" [/CODE] and [CODE] createConnection.ConnectionString …

Software Development open-source vb.net
Member Avatar for sknake
0
223
Member Avatar for lecotti

Hello, simple program here i can't seem to get to work. In a nutshell the program reads characters into an array using getchar and then prints them in a loop, although the numbers printed are not the ones i entered! thanks in advance [code]#include <stdio.h> #define MAXSIZE 100 /*max array …

Software Development c
Member Avatar for lecotti
0
2K
Member Avatar for emint

hi all i got problem reading multiple table from ms access using jdbc. i read two table from one class but i got 12 table to read. so how can i do dat? any help will be great thank you

Software Development java
Member Avatar for emint
0
222
Member Avatar for Dimansu

Hi In my listview I have a column called grantotal which is of type double.Now it is displayed as 12300 but I want to display it as 12,300. How can I do it? Thanx in Advance

Software Development listview
Member Avatar for sknake
0
97
Member Avatar for nrobidoux

For lack of a better workflow I decided to start my project off by focusing on restoring it's state in CWinApp::InitInstance() and saving its state in CMainFrame::OnDestroy() as I put in data structures. One of the items to restore/save is the simulation time. In fact the app pretty much can't …

Software Development c++ ide
Member Avatar for nrobidoux
0
504
Member Avatar for bhas85

Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once …

Software Development shell-scripting
Member Avatar for bhas85
0
150
Member Avatar for Voulnet

Hello there fellow members. I have two windows forms, and they call each other. - Form 1 has a button that calls Form 2. - Form 2 does not have an exit button, but rather a button that goes back to Form 1. - Form 1 is the main form …

Software Development algorithm
Member Avatar for Voulnet
0
127
Member Avatar for tdeck

I'm having a problem which can be exemplified by this python (3) code: [CODE] def askname(): sys.stdout.write("What is your name? ") x = sys.stdin.readline() sys.stdout.write("Hello, "+x) [/CODE] When I run it, I expect to get the prompt, type in my name, and then get the greeting. Instead, it prompts for …

Software Development python
Member Avatar for jlm699
0
151

The End.