132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kamina00

Hi I am new to C++ and I just need some advice on declaring dynamic arrays. Take for example this code block: int a=0; cout << "Enter Arr size: "; cin >> a; int arr[a]; My compiler gives no error doing this but looking around the web I see many …

Software Development c++
Member Avatar for Kamina00
0
220
Member Avatar for quantumss

I'm causing input letters to write ones into variables through an array. I'm trying to count the occurences of ones in a variable. Lets say I input aaaaa. The count output displays 12345. Instead of outputting the whole count of numbers, I want to output the biggest number in the …

Software Development c++
Member Avatar for np complete
0
221
Member Avatar for techyworld

Hi, I write some data(Hello) in a file copy.txt. I read from the file copy.txt to convert the text "hello" to ASCII and then i store it in another file copy1.txt. It saves the ascii like this in the file copy1.txt: 104101108108111. Below is the ascii of each character: 104 …

Software Development file-system python
Member Avatar for vegaseat
0
278
Member Avatar for Gen.Asura

Hey, I posted earlier about arbitrary expressions and I did find solution to that. The question is how do I create random expressions? So far I've created codes to generate random operators and random numbers, how will I generate random expressions? E.g. a1,a2,a3 are variables for random numbers I've assigned …

Software Development java
Member Avatar for JamesCherrill
0
175
Member Avatar for Loi-se

I wonder if I should continue to get a degree in software engineering because I think the work envoirments are a bit to much centered around verbal and direct communication for me. I'm not a very good verbal communicator and in agile teams this seems to be a very important …

Software Development agile-development engineering
Member Avatar for Loi-se
0
309
Member Avatar for Brian_L

#include <iostream> using namespace std; class Lists{ public: void insert_head(int insert); void remove_head(); void insert_tail(int insert); void print(); Lists(); private: Node *head; Node *tail; }; struct Node{ int data; Node *link; }; int main() { Lists temp; temp.print(); return 0; system("PAUSE"); } Lists::Lists(){ head = new Node; head->Link=tail; tail->Link=NULL; } …

Software Development c++ linked-list
Member Avatar for JasonHippy
0
151
Member Avatar for jontennyeah

i have a 1 listview with the records from my ms access datebase. Can you help me to work with the button than can search all the records in each cell / subitems on the listview? THAnKS godbless :)

Software Development gui seo vb.net
Member Avatar for jontennyeah
0
109
Member Avatar for hillman.chen

Hi guys, I am trying to write a program that will ask for users name, birthdate and pet and from those info I need to use a random number generator to select 6 char from the name and animal and 2 numbers from the birthdate. This is my code to …

Software Development c++
Member Avatar for vijayan121
0
419
Member Avatar for sundog1

Hi Guys, Currently I have a form that load an XML file and populates Text Boxes with certian Values from that XML. I also have an 'Admin' form which accept new values. What I am wanting to do is the following: When the Admin screen is loaded from a button …

Software Development xml
Member Avatar for sundog1
0
300
Member Avatar for subith86

I have a code which gives the maximum value I can get by filling the knapsack with the optimal set of weights. int arr[5] = {0, 0, 0, 0, 0}; int Weight[5] = {2, 5, 8, 7, 9}; int Value[5] = {4, 5, 7, 9, 8}; const int n = …

Software Development c++
Member Avatar for Lucaci Andrew
0
332
Member Avatar for guillier

Dim ADP As SqlDataAdapter = New SqlDataAdapter Dim CONN As SqlConnection = New SqlConnection("Data Source=|DataDirectory|\dbTesting.sdf") Dim COMM As SqlCommand = New SqlCommand("SELECT * FROM tbTesting") Dim DS As New DataSet CONN.Open() Dim DR As SqlDataReader = COMM.ExecuteReader() DR = COMM.ExecuteReader() TextBox0.Text = DR("Test").ToString This was my coding in order to …

Software Development dataset open-source vb.net visual-studio
Member Avatar for guillier
0
127
Member Avatar for sean.downes.96

Hello, Can someone help me please. Ive got a listview with the columns etc, when i save a form and it shows up in the listview with some items in the columns, how can i get a textbox to add a number each time a row is entered. example: I …

Software Development listview vb.net
Member Avatar for Begginnerdev
0
122
Member Avatar for ben.sugden

I am responsible for developing and maintaining a widescale CRM platform written with Visual FoxPro 9.0 (sp2 SEDNA). Alongside a SQL 2008 back end, I make extensive use of the Microsoft Common Control libraries for the purposes of providing TreeViews, ListViews and the like (the kindof theing that VFP does …

Software Development gui listview
Member Avatar for ben.sugden
0
224
Member Avatar for suntec

Hi! I have a real simple problem :) I wrote an application in VB.NET and I need to loop through multiple files. Now my code looks like this: [code] Private Files() As String = System.IO.Directory.GetFiles(My.Application.Info.DirectoryPath & "\Data", "*.spe") [/code] which allows only one file to be opened. I have 12 …

Software Development vb.net
Member Avatar for Begginnerdev
0
1K
Member Avatar for Jmartez31
Member Avatar for deceptikon
0
142
Member Avatar for ronb

i wrote and compiled an vb 6 program on a windows xp sp2 box i am trying to run the program via a batch file from an nt box i get this error: runtime error 91: object variable or With block variable not set the program runs under the scheduler …

Software Development ide visual-basic
Member Avatar for aronhugos
0
4K
Member Avatar for prakhs

#include <stdio.h> #include <malloc.h> struct node { int data; struct node *link; }; void append (int data, struct node **s) { struct node *p, *q; if (*s == NULL) { p = (struct node *) malloc (sizeof (struct node)); p->data = data; p->link = NULL; *s = p; return; } …

Software Development c linked-list
Member Avatar for deceptikon
0
146
Member Avatar for asrith001

hi i need a code for update a record in vb6 i am using ms acess and ado

Software Development visual-basic
Member Avatar for AndreRet
0
162
Member Avatar for anisha.silva

hi how do i create a contaer class for a processors in C#?

Software Development oop
Member Avatar for anisha.silva
0
100
Member Avatar for Beastegargoyle

Hello, I am currently writing a card game in Java. My question is when I write the follwoing code below: `Inline Code Example Here` 38 // select a random number between 0 and 51 39 int second = randomNumbers.nextInt( NUMBER_OF_CARDS ); Will the program properly generate 52 cards? Should I …

Software Development gaming java
Member Avatar for NormR1
0
321
Member Avatar for killerSmile

can anyone help me to make a program for multiple choice test using visual basic and ms access???pls ..

Software Development vb.net visual-basic
Member Avatar for deceptikon
0
107
Member Avatar for sundog1

Hi Guys, I've been working on a little something where details get put into an XML File and then squirted into another form which has been working fine. I've now added another section to the XML file to hold the Company Name and it gets written to the XML without …

Software Development file-system xml
Member Avatar for sundog1
0
558
Member Avatar for mcmanuel20

How to i write a c# programme to store data into a text file using C#? using System; using System.Collections.Generic; using System.Linq; using System.Text; class Contact { string Name; string Address; string Email; string PhoneNo; public void AddContact() { Console.WriteLine("Enter contact name"); Name = Console.ReadLine(); Console.WriteLine("Enter contact Address"); Address = …

Software Development
Member Avatar for Mike Askew
0
327
Member Avatar for mcmanuel20

using System; using System.Collections.Generic; using System.Linq; using System.Text; class Contact { string Name; string Address; string Email; string PhoneNo; public void AddContact() { Console.WriteLine("Enter contact name"); Name = Console.ReadLine(); Console.WriteLine("Enter contact Address"); Address = Console.ReadLine(); Console.WriteLine("Enter contact Email"); Email = Console.ReadLine(); Console.WriteLine("Enter contact PhoneNo"); PhoneNo = Console.ReadLine(); } public void …

Software Development display
Member Avatar for Mike Askew
0
126
Member Avatar for KronoAngel

I am not to sure what the error is in my code but the order variable does not seem to initialise properly and hence my gui displays the wrong output, for example when cheese,tomato and chicken are selected it only displays Chicken with Tomato Tomato $12.75. Any help will be …

Software Development gui java java-swing
Member Avatar for stultuske
0
323
Member Avatar for jnewman3

I've been working on this code for 2 days now and i finally think i got the while loop running correctly but now i cant seem to print the child process id's. The code starts with the parent process forking 3 child processes. Then the parent must wait till a …

Software Development c unix
Member Avatar for rubberman
0
276
Member Avatar for linabeb

hi all i would like to ask...ermm i have an erorr it say that my winscard.h no such file or directory...when i search it in my include folders there is no winscard.h in that folders..so...what should i do..is it somekind relate to the pcsclite.h ??? do i need to install …

Software Development c++ ubuntu
Member Avatar for rubberman
0
2K
Member Avatar for juliani91

A corporation has six divisions, each responsible for sales to different geographic locations. Design a DivSales class that keeps sales data for a division, with the following members: • An array with four elements for holding four quarters of sales figures for the division • A private static variable for …

Software Development c++
Member Avatar for rubberman
0
510
Member Avatar for TheNotoriousWMB

I am building an application that calculates travel time necessary to reach a user selected destination from predetermined city based upon an estimated travel speed determined by the user. For this program I am to utilize classes/class source files. When compiling my source file I continuously get the error “undefined …

Software Development c++
Member Avatar for TheNotoriousWMB
0
297
Member Avatar for hello10

How to make a program that prints out 10 stars with using cout or for loops or while loops.

Software Development c++
Member Avatar for WaltP
0
163
Member Avatar for Some Dude

So basically I am new to API programming and teaching myself. I've done a bit of console C++ that I got off of.... an internet tutorial. The story is the same here too. I am somewhat aware of what the lines of code do, though I am not yet a …

Software Development api c c++ windows-api
Member Avatar for neithan
0
314
Member Avatar for fdama

Hi, I'm new to python and I am trying to write a 'Guess the number program'. I am however getting the following error message: Traceback (most recent call last): File "C:\Users\fdama\Documents\python\GuessMyNumber.py", line 8, in <module> guess = false NameError: name 'false' is not defined I don't know why I am …

Software Development python
Member Avatar for snippsat
0
214
Member Avatar for ibthevivin

I'm totally lost. I have a programming partner and this is what he sent me. I can't get the program to compile. I don't know where to start. Any suggested place to start? package Assignment2; public class TooBigException extends Exception { private static final long serialVersionUID = 1L; public TooBigException(String …

Software Development java
Member Avatar for NormR1
0
269
Member Avatar for Chuckleluck

This might be a general math question, so excuse me if it doesn't belong here. I have an airplane that flies around the screen. Pressing the W key will make it counterclockwise, and pressing the S key will make it rotate clockwise. When I press space, it shoots bullets. However, …

Software Development image java
Member Avatar for Chuckleluck
0
156
Member Avatar for nsharif

I would like to know what tool/class should I use to create a map that used for games? such example: user use key to move an object...and if moves then the more map will shown ... I admit, I did not do much research on this.. but I wanted to …

Software Development gaming java linked-list
Member Avatar for nsharif
0
110
Member Avatar for sean.downes.96

Hi, i need help when i press the save button on a form that i have created (i have no save dialog etc yet) then it saves that form with all the information in their corresponding boxes when i open it again. Example: I fill in the form then i …

Software Development vb.net
Member Avatar for jireh
0
143
Member Avatar for veeeeebeeeee

I keep getting a NullReferenceException. Any help would be great! Private Sub fillpub(ByVal argPubID As Integer) Dim drpub As _books_Fall2012_A2DataSet.PublishersRow drpub = _books_Fall2012_A2DataSet.Publishers.FindByPubID(argPubID) If drpub.IsNameNull Then txtPublisher.Text = "" Else txtPublisher.Text = drpub.Name End If If drpub.IsAddressNull Then txtAddress.Text = "" Else txtAddress.Text = drpub.Address End If If drpub.IsCityNull Then …

Software Development vb.net
Member Avatar for jireh
0
97
Member Avatar for jacobcarrick

Hey there, I need help writing a python program that takes your input and gives it back in a pig latin type way. This is what i got so far: [code=python]running = True while running: word = raw_input("Enter word:") if word[0] in "aeiou": print word + "way" else: print word[1:] …

Software Development python
Member Avatar for fecaled
0
2K
Member Avatar for vinaylucky2

Hello, I wanted to know whether its possible in VB.Net to use a string as an object name. Lemme describe my problem. I have four radio buttons - p1,p2,p3,p4. Now i want to check whether these buttons are selected or not, for this thing would have to use for if …

Software Development vb.net
Member Avatar for adam_k
0
122
Member Avatar for noblepants

Hi every I'm new here and new to programming. : ) Here is a practice assignment I have completed but seemingly not correctly. Can anyone offer advice as to my error? It compiles correctly but using some test numbers I only ever recieve that the circle has no x intercepts …

Software Development c++
Member Avatar for noblepants
0
418
Member Avatar for paul9519

hi everyone i have a problem with this code below. when i try to read all the files in a directory i can but when i try to put them in a vector, it doesn't work, all the elements in the vector become the last element added. I'm not sure …

Software Development c c# c++ microsoft
Member Avatar for Tumlee
0
215
Member Avatar for mikewyatt

Problems clearing and adding items to Jlist box. I have a set of 12 items stored in each record of a database. These record items are named as follows: LANGUAGE1 LANGUAGE2 . . LANGUAGE12 I have no problems in accessing the database. rs.getString("LANGUAGE1") and so on.... I need to clear …

Software Development java
Member Avatar for mikewyatt
0
211
Member Avatar for Red_Rain

Hey Guys, Im new to learning java and I am writing a few programs for practice. I cant figure out whats wrong with my code. When i try to compile i get an "error . class expected" Any advice is appreciated, thank you. import javax.swing.JOptionPane; public class TuitionCost { public …

Software Development java java-swing
Member Avatar for dimasalang
0
149
Member Avatar for Aditya_MUHAHA

Hi, I have a sytem path like "C:\Users\ABC\XYZ\1.txt". I need to convert this to 'C:\Users\ABC\XYZ\1.txt'. Any help is appretiated. Thank you.

Software Development perl
Member Avatar for 2teez
0
203
Member Avatar for Majestics

I am working on grid view in c#. I want to attach a key press listener with grid view to dectect up and down keys. I tried "Editcontrol" but it didnt worked. Also "Keypressed event" with grid view , it also didnt worked. Before that I used "Mouse Event" and …

Software Development
Member Avatar for TnTinMN
0
173
Member Avatar for nquadr

Hi, I am trying to display the contents of a vector. The vector is defined from a class I created. I seem to be only storing the most recent values in my vector. I am not sure where my logic is incorrect. I am trying to store multiple objects in …

Software Development c++
Member Avatar for nquadr
0
222
Member Avatar for jdh1231

Hi. I am pretty new to C++, and trying to understand how to use switch and case statement. So I was practicing with some bubble sorting algorithms, and it seems case 1 and 2 is not workig in my code. Can someone figure out why it's keep breaking please? The …

Software Development c++
Member Avatar for NathanOliver
0
174
Member Avatar for dev.bardoliya.5
Member Avatar for neithan
0
81
Member Avatar for mimah1

#include <iostream> using namespace std; char chessboard[100][100] ={' '}; int n; int savingposition[100][2]={ }; //checking rows.... bool checking (int row, int column){ for(int i = 0; i< n; i++){ for(int j = 0; j < n; j++) { if((j+i== column+row|| column - row == j-i || i== row || j …

Software Development c++
Member Avatar for mimah1
0
156
Member Avatar for ekarem

Hi I would like to save integer values from 0 to n ( n = 112 e.g.) to a char array. How can I do this? char numbers[n]; for (int i = 0; i<= n; i++) { numbers[i] = i // or numbers[i] = 'i'; when I write code like …

Software Development c++
Member Avatar for WaltP
0
229

The End.