132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for meetjatin88

#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include<conio.h> #include<iostream> struct list { int data; struct list *next; }*L; //function declaration: void create(int data,struct list **head); void print(struct list **head); int main() { //list *L; int data =10; for(int i=0;i<3;i++) { //struct list *pList = NULL; create(data++,&L); print(&L); getch(); } } void …

Software Development c++ linked-list
Member Avatar for thendrluca
0
176
Member Avatar for Tobyjug2222

Hey Guys, I'm an A level student studdying Computer science, and hence using VB.NET for my coursework. Therefore I'm very novice at VB! While trying to update Data in a Microsoft Office, Access table (Office 2010) - I get this error. (In VB) Bare in mind, I've read all this …

Member Avatar for Tobyjug2222
0
610
Member Avatar for dhatsah

I have 2 graphics I draw onto a form. 1 Graphic is a Randomly Generated Star Field, these stars move, and are updated every tick on a timer(50ms) Once the stars have been drawn/updated a cockpit is overlayed onto this image to give the appearance of moving through space. The …

Software Development vb.net
0
105
Member Avatar for M_UMAR

I'm new at vb.net. i'm making a calculator using only 1 text box and want that my text box show the value( assigned to first variable at run time) along with the operator[+,-,*,/] in upper line and then the value entered in the lower line should be assigned to the …

Software Development vb.net
Member Avatar for M_UMAR
0
237
Member Avatar for AnirudhC

Can anyone help me on the concept of classes in C++ ???? I am really confused in Private, Protected and Public specifiers also... pls can anyone help me on this..??

Software Development c++
Member Avatar for thendrluca
0
165
Member Avatar for Stpdoug

Having a small a problem with an array value here is the code:i want the array(totalwin) to store the value of the calulation each time it repeats say 10 times.I tried using the for loop but the values are not stored in the array what am i doing wrong. // …

Software Development c
Member Avatar for Stpdoug
0
192
Member Avatar for acerious

Here I have some code that will run a program that generates a bunch of lowercase and uppercase letters from length 15-25 and will swap it first using an iterative swap method. It will then generate a second set of letters and will swap it this time with a recursive …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
194
Member Avatar for DanteX

> Hello Can Someone please help me with this problem. This is what i have sofar but i am not sure whats missing or how to end it please help. A solid steel column of circular cross section is needed to support a load of 65,000 lb. The ends of …

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
173
Member Avatar for bibiki

Hey there, I have the following code: int[] x = new int[7]; System.out.println(x.lengnth); x.length = 10; System.out.println(x.length); Of course, line three causes a "cannot assign a value to final variable length". However, line one does assign seven to that variable, length. Now, I have written a Testing class where I …

Software Development java spring-framework
Member Avatar for bibiki
0
915
Member Avatar for jamison234

Hi All, I am a newbie programmer in python and I am trying to read multiple csv files from a folder, perform some data sums based on timestamps for each row for all the csv files and then output the sums to one result csv file. So far I am …

Software Development python
Member Avatar for hughesadam_87
0
4K
Member Avatar for Echo89

Well, I have just made this funtion that will split an array using a delimiter. I'm new to C++ so I will take any suggestions you have. Anyhow, good luck! Enjoy!

Software Development c c# c++ php
Member Avatar for Echo89
0
991
Member Avatar for serkan sendur

i was reading xerces-c class documentation, one of the methods does the writing of buffer to a file. what should i understand from buffer, how is it different from writing some stream to a file? What should i understand from stream? Thanks

Software Development c++ file-stream
Member Avatar for stavrianosy
0
1K
Member Avatar for diya45

hi all i make a store procdeure in visual studio wpf when i run a code the error is not solve here is error "Procedure getguestinfo has no parameters and arguments were supplied." and here is the code public class guests { private int guest_id; public int Guest_id { get …

Software Development dataset open-source visual-studio
Member Avatar for arunkumars
0
316
Member Avatar for mark.barrera.94

can u help me with this: public static void main(String[] args) { Scanner s = new Scanner(System.in); String name; System.out.print("What is your name? "); if(name.equals("Bob")) { System.out.println("Oh hi, Bob. I know you. Good to see you again."); name = s.nextLine(); } } } what can i do?

Software Development java
Member Avatar for NormR1
0
111
Member Avatar for kostaskol

Hello there people. I am pretty new in C and programming in general. I was trying to make a password checking programme and I seem to be stuck. int main (void) {char ch; while ((ch=getchar()) != EOF){ This is the beginning of my code and whenever I try to type …

Software Development c
Member Avatar for kostaskol
0
125
Member Avatar for stillmarooned

Hi all I would like to search a Excel List of names(voters Registration list) by typing a name to see if that person is registered. Can anyone advice me how to do it or provide me with a sample program Many thanks

Software Development visual-basic
Member Avatar for stillmarooned
0
93
Member Avatar for hhm_pro992

OpenConn() Dim qqttyy As Integer = Val(ListView1.SelectedItems(0).SubItems(3).Text) Dim codee As String = ListView1.SelectedItems(0).SubItems(1).Text OleDa.UpdateCommand.CommandText = "UPDATE Inventry SET QTY = QTY -'" & qqttyy & "'WHERE CODE ='" & codee & "'" OleDa.UpdateCommand.ExecuteNonQuery() CloseConn()

Software Development listview vb.net
Member Avatar for hhm_pro992
0
229
Member Avatar for acerious

Here I have some code that will run a program that generates a bunch of lowercase and uppercase letters from length 15-25 and will swap it first using an iterative swap method. It will then generate a second set of letters and will swap it this time with a recursive …

Software Development algorithm c++
Member Avatar for acerious
0
192
Member Avatar for mc.hitch

first i'm not much professional in JAVA programming but if you mentioned a code how hard is it I'll understand it ... I want to create a desktop application that is connected with an online database to insert/retrieve data from it ... I've searched a lot on google but no …

Software Development java mysql php
Member Avatar for bibiki
0
322
Member Avatar for locsin

Post Thread: Searching Database file if existing or not. How to Add the Microsoft scripting runtime dll in my Project reference menu. I saw Microsoft Script in the components. Is this the file? Anybody can help me or give me step by step procedure to add this Microsoft Scripting runtime …

Software Development first-post visual-basic
Member Avatar for ritesh9nair
0
354
Member Avatar for lokesh.r.kandula

Hi, My xml has got several tags with same name. I am trying to pick out only top 5 tags. I initially thought this would be simple and tried, but after spending so much time I couldn't get the desired output. Any help would be greatly appreciated. The scenario is …

Software Development xml
Member Avatar for Mike Askew
0
169
Member Avatar for persianprez

Hi all, I'm new to xml and xslt. I'm trying to apply a stylesheet to my xml document but I keep getting no stylesheet available. Here is my code for my XSL document, XML, DTD, and CSS: XSL: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <style …

Software Development apple html-css iphone xml
Member Avatar for Mike Askew
0
187
Member Avatar for myfit

Hi all, I have question that I have a xml file, I add it to my Project C# Win Form, Now I want to change a value of 1 node or element, so what I need to do? Please give a guide or link or example project to me reference, …

Software Development xml
Member Avatar for Mike Askew
0
338
Member Avatar for tendaimare

I want to format my textboxes in such a way that when someone fills in the details in the textbox if they press enter button on the keybord the focus is given to the next textbox that they should fill in .I tried the code below that we used in …

Software Development vb.net
Member Avatar for safrans
0
3K
Member Avatar for Hanna Jane

Hi Everyone, I need to know how can we represent the projectile motion gven a certain angle and velocity, such that I can watch the animated ball moving in is path on screen.... all using openGL in C++

Software Development c++ opengl
Member Avatar for saurabh5584
0
3K
Member Avatar for Raju Hasan

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ArticleSearch { public partial class ArticleSearchUI : Form { public ArticleSearchUI() { InitializeComponent(); } private int index = -1; private int totalCount = 0; private int searchPoint; private void searchButton_Click(object sender, EventArgs e) …

Software Development
Member Avatar for Mike Askew
0
200
Member Avatar for cyanide911

**EDIT: I understood what was wrong. I initialized adrsarr[4] before trying to put in values, then the problem was solved. Please close this thread.** package personal; public class TestAddress { public void buildArray(Address[] adrsarr) { adrsarr[0] = new Address("B402", "3", "42", "Behind Sector 9", "New Delhi", "Delhi", "Delhi", "India", "232113"); …

Software Development java
Member Avatar for jalpesh_007
0
102
Member Avatar for albert.staszak

So I have a main form and 5 other forms. When I press a button on the main form, I want it to open Form2 and disable a certain button in form2 so that it cannot be used. I produced this code but the button is still active and there …

Software Development visual-basic
Member Avatar for Jx_Man
0
105
Member Avatar for meenal9

Help..i need java program with help of bufferedReader and IOException... to find sum of 2 nos. entered by user.. plz help i am new to java...

Software Development java
Member Avatar for jalpesh_007
0
128
Member Avatar for Hammer Engineer

Hi I am trying to implement an array based BT.Here is my code for this. But I'm stuck with Postorder traversal. How can I get a Postorder traversal from my array based BT ? My Entire code is given here. package com.TreeLab; public class Stack { private final int SIZE …

Software Development java
Member Avatar for jalpesh_007
0
2K
Member Avatar for Brittinei

Write a program that prompts the user to enter a filename (use a Scanner to get the filename). The program then ouputs to the screen the number of lines, words, and characters in the file. Here is my code: (I'm getting a infinite while loop): import java.util.Scanner; import java.io.*; public …

Software Development java
Member Avatar for jalpesh_007
0
200
Member Avatar for Brittinei

Write a program that prompts the user to enter a filename (use a Scanner to get the filename). The program then ouputs to the screen the number of lines, words, and characters in the file. Im having trouble counting the words Here is my code: import java.util.Scanner; import java.io.*; public …

Software Development java
Member Avatar for jalpesh_007
0
278
Member Avatar for zlloyd1

I am trying to add a try catch block with switches to my program in NetBeans, and it is not excepting any of my already declared variables?? Here is my original code, without any validation: package annual; import java.util.*; import java.lang.*; public class Annual { public static void main(String[] args) …

Software Development java java-netbeans
Member Avatar for jalpesh_007
0
258
Member Avatar for thammalatha

Hi Can any one explain how we use CListCntrl class in mfc to track the listby using dialog based application..just simple example.. thanks in advance..

Software Development c++
Member Avatar for thammalatha
0
81
Member Avatar for mbh1992

Need help with the following code, The error comes at line 20. import ogr import os, shutil,sys import osr regionShp = "ne_50m_geography_regions_polys.shp" regionFile = ogr.Open(regionShp) regionLayer = regionFile.GetLayer(0) spatRef = regionLayer.GetSpatialRef() countryShp = "ne_50m_admin_0_countries.shp" countryFile = ogr.Open(countryShp) countryLayer = countryFile.GetLayer(0) dstDir = "spatial_analysis_2" if os.path.exists(dstDef): shutil.rmtree(dstDir) os.mddir(dstDir) dstPath = os.path.join(dstDir, …

Software Development python
Member Avatar for ZZucker
0
189
Member Avatar for nUmbdA

I am working on an assignment for my fundamentals class and we have to create a program that is going to write/read/ and append a file. I wanted to set it up to check and see if example.txt exists. If so then append, else write. My question would be how …

Software Development python
Member Avatar for ZZucker
0
117
Member Avatar for reimar23

Can someone help me... I am new to vb.net with sql connection and I can't fix this error : variable name '@date' has already been declared. Variable names must be unique-- I need this to be fixed "ASAP" Im running out of time here because of the error here is …

Software Development listview vb.net
Member Avatar for reimar23
0
337
Member Avatar for jorge.carmonajr

ok so i am new to programing and need to make a program that adds and subtracts two coordinates this is the main file #include <iostream> #include "Coordinate.h" using namespace std; int main() { Coordinate a( 1, 7, 0 ), b( 9, 8, 7 ), c; a.printCoordinate(); cout << " …

Software Development c++
Member Avatar for mrnutty
0
124
Member Avatar for taylor.mitchell.353

I created a hashing method to make a=1, b=2, c=3...etc. To me it doesn't seem too efficient. Does this look efficient or is there a recursive method or smaller method to do the same thing? /** * Changes String to int * @param key: String * @return (result % arraySize): …

Software Development java
Member Avatar for NormR1
0
301
Member Avatar for Akira01

Hi I recently started working with Java (this morning to be exact) and I'm running into some trouble. I'm trying to make a simple program that will put a deck of playing cards into an array, shuffle that array, then print the shuffled deck. My eventual goal is to make …

Software Development java
Member Avatar for Akira01
0
241
Member Avatar for Programmer629

hi everyone! i was wondering if anyone could hed me in the right direction 2 programming a program like pinger (preferably vb.net). i have visual studio .net 10 so can someone help me? thx!

Software Development vb.net visual-studio
Member Avatar for Reverend Jim
0
207
Member Avatar for gandalf22

Alright so im supposed to represent an airline. total # of seats is 10. Passangers can choose whether to sit in first or economy. This is what i have so far. If you try the program and try to go from first to economy you will see that it skips …

Software Development c
Member Avatar for zeroliken
0
176
Member Avatar for priyajayan

i have to do a program in BDK.my BDK and JDK are in the same folder java. i have set the path for jdk/bin in control panel.i have created the jar file, jar cfm [jar file name] [manifest file name] [java class name]. i didn't get any error there. but …

Software Development file-system java
Member Avatar for NIsha Smilee
0
232
Member Avatar for jorge.carmonajr

I am having trouble wrapping my head around classes. I'm not to sure what they are used for or how to use them. so i need some serious help with this assignment for my class. This is the assignment: **Create a class called Coordinate for performing arithmetic with x/y/z coordinates …

Software Development c++
Member Avatar for Astreios
0
122
Member Avatar for jib123

Hi all, this is my first post as a user, however ive been using this site to aid me in some of my programming assignments. I have become a little stuck with one program that i am trying to create which is a random number generator for 6 numbers. Ive …

Software Development gui java
Member Avatar for NormR1
0
1K
Member Avatar for some one

[CODE]#include <conio.h> #include <graphics.h> #include <stdlib.h> #include <stdio.h> void main (int) { int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection. int midx,midy,x; //Initializing graphics and local variables. initgraph(&gdriver,&gmode,"d:\\bc3\\bgi"); //Reading result of initialization. errorcode=graphresult(); if(errorcode!=grOk) //An error occurred. { printf("Graphics error occurred : %s \n",grapherrormsg(errorcode)); printf("Press any key to stop : "); getch(); exit(1); //Terminate …

Software Development c
Member Avatar for kadawe
0
848
Member Avatar for unsensible

ok so as a homework assignment I have to sort a c-string array alphabetically. We have to use pointers and cannot using strings (although strcopy and strcmp can be used). I can sort integers and strings but for the life of me cannot figure this out. I'm pretty sure i'm …

Software Development c++
Member Avatar for unsensible
0
2K
Member Avatar for salan

Sorry everyone i'm new to java and i have an assingment which i have hand over soon i just want get an idea how to calculate car insurance premium based on the age,Licence and Engine size this is my first time come in to this site even so.. if you …

Software Development java java-swing
Member Avatar for NormR1
0
219
Member Avatar for ciobanu.alexandru.cristian

Hello, World! My name is Alex and i am a beginner in Java. I tried to create 2 simple objects from the same class and give them the values inputed from console( as string). Is this correct or it should be done in another particular manner? Also, the constructor asks …

Software Development ide java
Member Avatar for ciobanu.alexandru.cristian
0
211
Member Avatar for saddam777

Write a code snippet to declare and accept an integer and calculate the cube value of the integer. The integer should be passed by reference to a function cube(). The function would calculate the result of cubing the integer. The function prototype to be used is: void cube (int *p); …

Software Development c
Member Avatar for <M/>
0
149

The End.