132,726 Archived Topics
Remove Filter ![]() | |
i have an integer like this:1 4 3 2 1 1 3 8 1 1 1 1 1 2 1 6 2 3 1 12 what can i do to add each individual number together like this: 4+3+2+1+1+1+3+8 etc? Software Development java | |
Hello All: Im using a dataGridView in unbound way, and would like to set the foreColor of the cell i just added based on info i fetch from my db table, here is my current code :- [code]if (cheque == true) { dgv.Rows.Add(date.ToString("dd ddd"), venue, fee,"chk"); } else { dgv.Rows.Add(date.ToString("dd … Software Development | |
Hi, I have done a lot of regex in perl and feel like in no mans land in c++ :) Well I want to parse a tab delimited file and want to print specific fields as per my needs. One more thing the input file may not be sorted and … ![]() | |
m using access 2007 and vb 2005 this is my code [CODE] Dim drNewRow As DataRow = m_DataTable.NewRow() drNewRow("Code") = txtColourCode.Text.Trim drNewRow("Colour Name") = txtBaseColour.Text.Trim drNewRow("Price") = txtPrice.Text.Trim m_DataTable.Rows.Add(drNewRow) m_DataAdapter.Update(m_DataTable) [/CODE] Software Development vb.net | |
Hi all, I'm not sure a allegro questing should e posted in Software Development>C++ but all other allegro questions are in this section, so here goes. Im doing some Genetic Algorithms, and normaly used OpenGL for doing the graphics, but now I reprogramming the GA to run on multicore systems, … | |
We are creating a loop in my CSET class and I am stuck. This is the original script I created: [code=python] #This is a game character health simulator health = int(input("What is your characters health?")) if health <0: print("Dead") elif health >=0 and health <100: print("Weak") elif health >100 and … Software Development python | |
This is from a training project. So the objective is to learn how to do a specific task, though there may be better ways to do the same thing. Okay, the background of the problem at hand: It's from my training Mastermind clone. The user has chosen his colours and … Software Development | |
I am just wondering if there is a way to stop my paging images from moving around the gridview footer when using the builtin gridview paging control. Software Development | |
The output of the code below is: start Caught One! Ex. #: 1 Caught One! Ex. #: 2 Abnormal Program Termination I don't understand why the exception isn't caught. [CODE]#include <iostream> using namespace std; // Different types of exceptions can be caught. void Xhandler(int test) { try{ if(test) throw test; … Software Development c++ | |
![]() | Hi, I am trying to develop a GUI application that has a text area for a 10 digit number. I would prefer to right click on the field and select a max length and "number type" instead of coding an 'if function on keypress' and so on. Is this possible? … Software Development gui java java-swing ![]() |
Why am I getting the wrong output? I have a feeling it has something to do with using type char vs. int....but im not specifically too sure. Please help! [CODE]1. blade71(130)% gcc -o vt visitype.c 2. blade71(131)% vt < vt.in > vt.out 3. blade71(132)% cat vt.out 4. The code 55 … Software Development c | |
Hi I am having problems using the readline command, I get an alarm lineA = fin.readline[lpa].strip() # Read line indicated by pointer a and delete CR TypeError: 'builtin_function_or_method' object is unsubscriptable when trying to run this code I tried removing the strip component and that didnt help. Some help would … Software Development python | |
Hi every one! I am working with a project which envolve database. I have a datagridview to veiw the table. when i delete some data from the data base i also want to delete it from the datagridview and when upgrade some thing also want to upgrade the datagridview. How … Software Development | |
Hi All, I need to open a exe from python. For ex i used [CODE]import os os.system("C:\Winamp\Winamp.exe") [/CODE] but I need to open an exe from the "Program Files" directory. I get an error because of the space between "Program" and "Files". [CODE]import os os.system("C:\Program Files\Winamp\Winamp.exe") >>'C:\Program' is not recognized … Software Development python | |
Hello All: In asp.net there is a Multiview control which allows me to switch between panels programatically, so different sets of controls can selectively be displayed in the same area on screen. I understand there is no such control in winForms but is there a best practice or technique for … Software Development asp.net | |
I'm writing a program that needs to use only the Unix system calls open, read and write to get and print data!The problem is that the program doesn't allow me to input the marital status of the first student! Am I missing something? Here is the code: [code] #include<stdio.h> #include … | |
i want solution program for this program...... Given a string and a non-empty substring sub, compute the largest substring which starts and ends with sub and return its length. test cases: strDist("catcowcat", "cat") → 9 strDist("catcowcat", "cow") → 3 strDist("cccatcowcatxx", "cat") → 9 Software Development c++ | |
Is there an easy way to capture a firefox browser address(url) in c++? I'm trying to check if a page pops up after a click event, the test address is known and static. Any help would be greatly appreciated, thanks! Software Development c++ | |
public class OpenMenuListener implements ActionListener { public void actionPerformed(ActionEvent ev) { if(ev.getSource() == b) { f2 = new JFrame("shashikant verma"); p2 = new JPanel(); f2.getContentPane().add(p2); String str = "<html>"+"<h>"+"<P ALIGN = \"CENTER\">"+"<i>"+"<font size = \"10\">"+"<font color= \"#800080\">"+"2. Definition of Function<br>"+"<br>"+"</i>"+"</h>"+"<P ALIGN = \"LEFT\">"+"<font size = \"5\">"+"2.1 "+"<u>"+"Mathematical Definition <br>"+"</u>"+"<P ALIGN=\"LEFT\">"+ … Software Development java mathematics | |
Hello. I am a new member of this web site. The reason for joining is that when I experienced some problems , I found most solutions on this website. Sadly, I cannot find all answers to my problems. That's why I am here now and I want to ask you … Software Development c++ | |
I have a text file that I need to find data and assign it to a variable. I have found code to read and search a file but the information I want is not always constant. The Items in Red will change. Is there a way to find this information, … Software Development python | |
[code]Public Class Form1 Private Sub Button1_Click(ByVal sender As _ System.Object, ByVal e As System.EventArgs) - Handles Button1.Click Button1.Text = "Hello World" End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class[/code] The name of the button isn't changing to Hello World... Anyone … Software Development vb.net | |
In the Quake 4 console, there is a "spawn" command, then you put the class name of what you want to spawn, eg. "spawn weapon_railgun". >Meaning that it tried to construct the weapon_railgun class from this input. If the class that you specify is not one that can be spawned, … Software Development c++ | |
[CODE] private void writeToDB(string password)/// { string cmdstr = "INSERT INTO " + TableName + " (Password) values (@Password)" ; OleDbDataAdapter adapter = new OleDbDataAdapter(); OleDbCommand insert = new OleDbCommand(cmdstr, vlAccessConnection); adapter.SelectCommand = insert; insert.Parameters.AddWithValue("@Password", password); }[/CODE] Hi all this is the code i've insert to update data with password … Software Development | |
Hi all, I have a program that need to insert the data to the database. In the form, I have 5 textbox control which required the user to insert the data in the database. To create this, I am using the visual studios 2005 and sql server 2005 for the … Software Development open-source sql vb.net | |
Hi guys.. I am currenly coding a program which outputs the next state table for flip flop circuits. I have already finished the the generator for one type of flip flop, and I have 3 more to go.. So far, my arithmetic parser is working good but I suddenly remembered … Software Development gui java java-swing storage | |
This is a program for generating a state table for flip flop circuits. My problem is that the program does not get anything from the Textfield which gets the value for KAEquation, but for JAEquation, it works just fine. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @author Jenielle … Software Development gui java java-swing storage | |
Hi I am working on a page which requires the grid to be populated with 'n' number of rows, as the user enters the number 'n' in a text box. Can anyone help me out in this? | |
I know java doesnot support multiple inheritence.lets say my class A extends B.Now my class A is extending class B as well as Object Class .how this happens?Why class A gets compiled? Software Development java | |
Hi all, Please help me in writing a program to find the similarity between two texts and return a percentage value. Code must be efficient . Regards, Raj Software Development c++ | |
Hello All, how can I create a member function for a class that is reading from a txt file, which is reading computer network addresses and names for the addresses. I was guessing they need to be string and 4 ints data type. Example of data.txt file input 111.22.3.3 "green … Software Development c++ | |
Hello Everyone, I just started to program and I'm having a bit difficult with it. Can someone run this code and please explain to me these errors and why they are not compiling. Error 1 error C2228: left of '.setFirstName' must have class/struct/union c:\documents and settings\administrator\my documents\visual studio 2008\projects\projec314p\projec314p\project314p.cpp 71 … Software Development c++ visual-studio | |
I am a total beginner with this, started a couple days ago. I have no idea on how to get numbers in order, I have to have a user enter 3 numbers and put them in order, help is appreciated [CODE]#include <iostream> using std::endl; using std::cin; using std::cout; int main() … Software Development c++ | |
Hi -- After lots of searching I cant seem to find an answer (well one that I understand at least..) I want to make the variables wobstacle, waisle, and wturn ONLY numbers where a user cannot input a letter and break the program. I was thinking of something along the … Software Development c++ | |
I'm trying to compile a program that I created that takes a number and finds its average and reverses it. It's a very simple program, but when I try to compile it with g++, it gives me an error. Why won't it compile? What code is wrong? [CODE] #include <iostream> … Software Development c++ | |
Pls. enumerate the steps in using a Status Bar Control wherein, Date, Time, Capslock will be displayed in every panel. Thank you very much for your help. Software Development visual-basic | |
Sorry about the title of the thread, I was looking at the wrong problem. For our class, we're supposed to get a sentence from a user and output the number of three letter words entered. Here's what I have so far: [CODE]#include <iostream> #include <string> using namespace std; void main() … Software Development c++ | |
I'm really having trouble spotting where my seg fault might be and I know a fresh set of eyes will help. Basically [code]start_ptr[/code] is the head pointer and [code]start[/code] is initialized to 0 and [code]end[/code] is initialized to the number of nodes in the list. here's the code [code] node … Software Development c++ linked-list | |
Not necessarily hard I just have a hard time where to exactly inherit the , I have a bass class and 2 separate classes which inherit the base class Lets class base class - Class A Other two classes - Class B and Class C Class A has the following … Software Development c++ | |
I have been posting a bit about my current side project, a scripting language interpreter. I have gotten past my getline error I talked about in a previous post and am now trying to get the results from the script. I created a map of all the labels in the … Software Development c++ | |
hi Ive been working on a program that finds hidden files copies the contents and then deletes the hidden file so far ive got system("set OLDDIR=%CD%&&@ECHO OFF&&ECHO Finding Hidden Files&&dir /ah&&PAUSE"); printf("Please Choose The Files You Want To repair separated by spaces\n"); scanf("%c",&d1); getchar(); string cmd="echo"+d1; system(cmd.c_str()); but im having … Software Development c | |
[code] #include <stdio.h> #include <conio.h> void *memset(void *dest,int value,int cnt); void *memset(void *dest,int val,int cnt) { void *start=dest; while(cnt--) { *((char *)dest)++=(char)val; } return start; } int main() { char arr[]={1,2,3,4}; memset(arr,0,4); printf("%s",arr); _getch(); return 0; } [/code] error : ++ need lvalue I know how to resolve this,but I … Software Development c | |
So, hi, this is my first post here. I can't find a good source for my problem here. My problem: Creating a linked node using classes. I managed to create a list of linked nodes but the problem was that I forgot to delete the nodes I created so now … Software Development c++ linked-list oop | |
The following is a function that compiles just fine, but when I run it, I get a "Debug Assertion Failed" and it says "list iterator not dereferencable". As far as I can tell the error occurs at whileIter++. I've looked at examples of iterators and how they are used, and … Software Development c++ | |
i just finished making my custom renderers after a while i noticed a small problem and isolated the problem to onrendertoolstripborder it seems when i paint my border around my tool strip it also paints it to any open dropdown menus here is an image to show what i mean … Software Development | |
My teacher wrote this code. i am having trouble understanding what is going on in the code. can someone please help me by commenting in the program if you can tell me the importance of the functions and how everything works. please help me.... i'm a noob programmer #include <iostream> … Software Development c++ programming-construct | |
Hi All, I'm trying to find a way to display a table to the user using mySQL DB. [better then the DataGrid View] The table should have options to merge cells for related items and to embed buttons in the cells. Thanks for your help. | |
Ok, this is not going to be a hugely helpful post because I am completely new to any form of programming and so don't know anything really. I am not sure if the application is in C# or vb.net so I have posted in both forums. Essentially I have a … Software Development vb.net |
The End.