43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lionaneesh

[CODE] /* ** showip.c -- show IP addresses for a host given on the command line */ #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct addrinfo hints, *res, *p; int status; char ipstr[INET6_ADDRSTRLEN]; if (argc != 2) { fprintf(stderr,"usage: …

Software Development c linked-list
Member Avatar for jephthah
0
172
Member Avatar for naseerhaider

Hello Every one ! This program is producing some strange output as it is only generating x = 6 :(,can some through some light that why is it behaving like this ? [code] #include <iostream> #include <stdlib.h> using namespace std ; main () { // Random Number Program int num,x …

Software Development c++
Member Avatar for naseerhaider
0
168
Member Avatar for sneekula

I have a text I want to search for all it's upper case letters, then present these letters unique and sorted. I welcome any suggestions.

Software Development python
Member Avatar for twekberg
0
325
Member Avatar for gradstud

I'm having an issue with my code and after hours of time I can't figure out what I'm doing wrong. There are three classes (GUI, Judging, TestGUI). All programs compile correctly with no syntax errors. The GUI creates an interface that should compute (JButton) a total of 8 scores and …

Software Development gui java java-swing
Member Avatar for gradstud
0
324
Member Avatar for rmontgomery

Hiya, whnever I use this code, I get a File Not Found exception, even though the file paths are all correct. Any ideas? thanks [code] Dim WordReader As String = "C:\Program Files\Microsoft Office\Office10\WINWORD.exe" Dim HelpPath As String = "C:\Documents and Settings\Steven\Desktop\TPBData\Help.doc" Shell(WordReader & HelpPath & "" & AppWinStyle.MaximizedFocus) [/code]

Software Development microsoft-office vb.net
Member Avatar for kronald
0
195
Member Avatar for Tvirusx1

I just can't seem to solve this. Heres what I want to do: I want my program to calculate movement, from one point to another. The function _updatepos is the main function, where I have troubles. It is supposed to, as the name says, update the position (posx and posy), …

Software Development c++ mathematics
Member Avatar for Tvirusx1
0
156
Member Avatar for khan17

hello all, i just searched via google and found a set of codes to login to a web site using httpwebrequest. but whenever i tried using the codes i got the very same exception that The remote server returned an error: (407) Proxy Authentication Required. one of the sample code …

Software Development web-server
Member Avatar for khan17
0
162
Member Avatar for emaduddeen

Greetings Everyone, Can you tell me how to take a query that returns a single row of data and load that data into textbox controls. I know about ExecuteScalar but it is only good for a single column of data from the query. Thanks. Truly, Emad

Software Development vb.net
Member Avatar for emaduddeen
0
67
Member Avatar for dbphydb

Hi, i am basically from QA. So what we do each morning is open a web browser with the address [url]http://11.12.13.27:8080/cruisecontrol[/url]. Then we click on the build with last nights date. Then we click on a folder say client. Then in that folder we click on an exe file say …

Member Avatar for Udai02
0
5K
Member Avatar for jemz

hello, can you help me how can i put icon in my message box is it possible to put icon on message box.?...hoping for your positive responds...

Software Development visual-basic
Member Avatar for jemz
0
220
Member Avatar for tbrambor

I am trying to get some data off a Brazilian government website. The data is accessible through a form with some javascript. I am able to get the form and fill it out, but have trouble submitting it (a button needs to be clicked). I am using the library mechanize …

Software Development javascript python web-browser
Member Avatar for tbrambor
0
4K
Member Avatar for DrueY

Hi Everyone, I'm working on a project in Visual C# that requires multiple tabs (similar to an internet browser). I was easy to implement the tabs, however Im unable to use the tab pages with a text box. The textbox is textBox1 and Ive got a lot of code connected …

Software Development c#
Member Avatar for kvprajapati
0
2K
Member Avatar for breakid

Hi, I created a class name -InterestedCompany.cs [CODE] namespace TestingProject { class InterestedCompany { string interests; public string Interests { get { return interests; } set { interests = value; } } } } [/CODE] I have one more class name - Student.cs [CODE] namespace TestingProject { class Student :Person …

Software Development
Member Avatar for kvprajapati
0
87
Member Avatar for phummon

Hi everyone, I'm a moderately experienced C++ programmer and a network engineer. I’m having a weird problem with using an array of vector<char *>, which I’ve never tried to work with before. I’m working on a program which does the following: 1. Inputs and parses a file called [B]PREFIX_FILE[/B], which …

Software Development c++
Member Avatar for daviddoria
0
215
Member Avatar for leo1937ca

I have created a vb6 program that has 6 forms. I put the button files for all of the BMPs in a (1) Folder named ALL BMPs Form1 loads all the Forms after the the Splash screen exits. when running the vbp file every thing runs OK and the buttons …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
1K
Member Avatar for BobTheLob

Okay, so i've been trying to get this code to work for quite some time, and i'm about to go bonkers. Hopefully y'all can help me out with this problem because I need to hand this one in soon. My problem is I need to make an array of objects. …

Software Development java
Member Avatar for moutanna
0
233
Member Avatar for schwarznavy

Hello! I've done some Googling about this, and many sites say that "hasing" is a better alternative than using a variable name with a variable name. I don't understand the concept of hashing, and what I'm trying to do seems small and insignifant, so I was hoping someone could help …

Software Development perl
Member Avatar for mitchems
0
108
Member Avatar for krishnisilva

hi there, how can i select the text in a textbox when i use the tab key or when i click the mouse on the textbox. how can i do this in C# VS 2008 standard edition. thank you in advance

Software Development
Member Avatar for ch_shoukat222
0
132
Member Avatar for sblass92

here's the basic setup: [CODE] #ifndef _GLOBALS #define _GLOBALS #include <list> #include <vector> #include "unit.h" extern std::vector <unit> reserved_units; extern std::list <unit*> active; extern std::vector <unit> generics; #endif [/CODE] [CODE] //globals.cpp #include "globals.h" #include "unit.h" #include <vector> #include <list> vector <unit> generics(15); vector <unit> reserved_units(200); list <unit*> active(0); [/CODE] unit.h …

Software Development c++ visual-basic visual-studio
Member Avatar for sblass92
0
193
Member Avatar for lotrsimp12345

It is impossible in C++ since you have to use iterator to erase. Here's what I have: main.ccp [CODE] #include <iostream> #include <vector> #include "Mastermind.h" int main() { vector<int>* answer=new vector<int>(4); cout<<"enter an code\n"; for(int i=0; i<4; i++) { int k; cin>>k; answer->push_back(k); } //initalize population Mastermind a(5); //set answer …

Software Development c++
Member Avatar for lotrsimp12345
0
132
Member Avatar for bharatk

I have 2 lists: a=[0,1,5,7] b=[2,10,6,3] I need to get this list : c=[(b[0]+a[0]),(b[0]+b[1]),(b[0]+b[1]+b[2]),(b[0]+b[1]+b[2]+b[3])] I tried doing this using a for loop: [CODE] c=[(b[0]+a[0])] for i in range(0,(len(b)-1)): for p in range(i+1,len(b)): if i==0: c.append((b[i]+b[p])) else: c.append((c[i]+b[p]))[/CODE] I am supposed to get [2,12,18,21] but I am getting [2, 12, 12, …

Software Development programming-construct python
Member Avatar for bharatk
0
109
Member Avatar for basma.lm

hi, i work on a widows application sql server ce database and i want to know how to add the rows of a datagridview to a datatable. thanks

Software Development
Member Avatar for basma.lm
0
141
Member Avatar for daino

Hi I'm rather new to C++ and am rather confused about something. I noticed, say, in an "if else" statement or a "Switch" statement it only evaluates numerical expressions. In an If Else statement I can compare two strings by using a returned boolean result from say 'strcmp' but I …

Software Development c++
Member Avatar for Stefano Mtangoo
0
233
Member Avatar for Cap'nKirk

Hi, I already have an application built and have thought about adding a splashscreen to it. My initial form is MainForm.cs my splashscreen is Splash.cs I have searched the net and seen various different approaches to displaying the splashscreen and have only had limited success with one that I found. …

Software Development
Member Avatar for kvprajapati
0
103
Member Avatar for maddav

Hi, just a quick question (i hope!!), i'm working on an assignment where i need to build a user-defined library of shapes. The class structure is to have "shape" as a base-class with both 2d and 3d shapes as derived classes. I've handled this by storing them in a vector …

Software Development c++ oop
Member Avatar for maddav
0
628
Member Avatar for sabiut

Hi, i need your expertise in this one. i am new to python, i want to write an algorithm that takes a string as input and determines whether or not it is a palindrome. please point me to the right direction. Thanks in advance. sabiut

Software Development algorithm python
Member Avatar for sabiut
0
194
Member Avatar for green_frog

When ever to run the following piece of code in my game it crashes. I have narrowed down the problem to being initiating mEnemies[i] = NULL and mSpaceship.mBullets[c] = NULL. Got no idea why. Please help for(int i=0; i<mEnemies.size(); i++) { // cycle of bullets for(int c=0; c<mSpaceship.mBullets.size(); c++) { …

Software Development c++
Member Avatar for mitrmkar
0
162
Member Avatar for karrotbear

write a python function called getAP which: has three input parameters: an array of measured voltages, the number of measurements n and the threshold voltage for an action potential; and returns an array with n entries, containing a 0 if no action potential occurred at the corresponding time step, and …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for rai32

Hello people, i'm new here, and i hope that you can give me a hand with a little client-server software that i'm doing that it's driving me nuts. The essence of the program is very simple, you have this client (in my case cliente.c, as i'm Spanish) with this syntax …

Software Development c client-server
Member Avatar for rai32
0
293
Member Avatar for Learner7

Hi, I have the following code which works pretty fine with Listview. But I would like to use it with computer keyboard up/down arrow keys. How to modify the following code? Please do help. [CODE]Private Sub LVW_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LVW.Click txtTAID.Text = LVW.SelectedItems(0).Text txtVNO.Text …

Software Development listview vb.net
Member Avatar for Learner7
0
1K
Member Avatar for Tainor

I'm learning SDL but I have run across a problem which I can't understand. For some reason, whenever I try to convert an image to the display format it returns a NULL pointer. I've checked the linker and order of functions and everything is right. Curiously, if instead of trying …

Software Development c++
Member Avatar for Tainor
0
250
Member Avatar for lotrsimp12345

starting to think that memory isn't big enough. the totalnumberofpegs i only set it to 0 in my code yet it changes it self somehow :(. please help i have tried everything. It shows that it is 0 in all other functions. main.cpp [CODE] #include <iostream> #include <ctime> #include <stdio.h> …

Software Development c++
Member Avatar for lotrsimp12345
0
137
Member Avatar for krishnisilva

hi, i am creating a project in C#.NET 2008 standard edition. how can i make the datagrid view read only, but when a cell is clicked which has data another from should open. how can i do this thanks

Software Development
Member Avatar for manoj kumar1446
0
177
Member Avatar for lotrsimp12345

so i think i know where the problem is... it return garbage for code_pos even though i initalize and change values assigned to it. :( Please help. but don't know how to fix it. main.cpp [CODE] #include <iostream> #include <ctime> #include <stdio.h> #include "Mastermind.h" using namespace std; int main() { …

Software Development c++
Member Avatar for lotrsimp12345
0
148
Member Avatar for perlnewbe

I'm new to perl and need to read a txt file into a hash and then perfrom the following. Read in the file Create a Hash For each word in the file, count how many times the word occurs. Store the word a hash which is indexed with the words …

Software Development file-system perl
Member Avatar for mitchems
0
1K
Member Avatar for vbx_wx

here is my code: [code] TCHAR name[MAX_PATH]; DWORD size; BYTE name2[MAX_PATH]; DWORD size2; int i = 0; while(RegEnumValue(Hkey , i , name , &size , 0 , NULL , name2 , &size2) != ERROR_NO_MORE_ITEMS) { cout << "Value name: " << name << "---" << "Data name: " << name2 …

Software Development c++
Member Avatar for Ancient Dragon
0
740
Member Avatar for Mitja Bonca

How to put an image (BitMap) into a statusBar? I was trying with: 1. [CODE]statusBar1.Text = Properties.Resources.MyPucture;[/CODE] 2. [CODE]Bitmap myPic = new Bitmap(Properties.Resources.MyPucture); MethodToShowStatusBarImage() { statusBar1.Text = myPic; }[/CODE] but it is not working. Any clues how to salve this issue? And besides, I have found a lot of example …

Software Development image
Member Avatar for Diamonddrake
0
480
Member Avatar for Anigmalee

Hi, Im Newbie in VB, Need some help/advise here. 1)I dont know what different between Access Databass, SQL severdatabase, SQL server compact 3.5 in term in application? I just need a brief intruduction in when to use them(How to choose between them) 2)In My project, I use database to store …

Software Development microsoft-access vb.net
Member Avatar for Alexpap
0
165
Member Avatar for bibiki

hey there. I have been struggling with separating classes in java and figuring out what methods go in what classes. when i build my apps in one file, i do them right, but when i try to separate classes, i mess up. like for example: I have these two classes: …

Software Development java java-swing oop
Member Avatar for quuba
0
198
Member Avatar for progr

I am trying to make a program that determines whether a statement is true or false I have this so far:[CODE]public static void main(String[] args) { int w=2,x=3,y=4,z=5; boolean expression; expression = (w<=x)&&(z>=y); if(expression == true); System.out.println("true"); if(expression == false); System.out.println("false"); }[/CODE] ...but all it prints out is true and …

Software Development java
Member Avatar for progr
0
122
Member Avatar for rasizzle

Hey Guys, This seems like a basic problem with an easy answer but I simply cannot figure it out no matter how much I try. I am trying to create a line graph based on two lists. For my x-axis, I want my list to be a set of strings. …

Software Development python
Member Avatar for rasizzle
1
102
Member Avatar for oXHutchXo

Sooo im doin this project for school and im super stuck on the keydown command, i dont know how to get it to work at all! my teacher is also has learned c# but forgot alot of it. so basically i want it so that if i press the up …

Software Development
Member Avatar for oXHutchXo
0
125
Member Avatar for Protoroll

Okay so my loop is supposed to check if an item in the ArrayList has the MINIMUM_RATING value which is 1. It does that just fine, but the problem starts when there is more than one item with the MINIMUM_RATING value in it. I need it to stop at the …

Software Development java
Member Avatar for Protoroll
0
126
Member Avatar for ConCon

Can someone look at this and tell me why I'm getting an empty tar? [code] #!/bin/sh #### mysqldump --opt --user=[my username] --password=[my password] | tar cvz > backup.tar.gz #### echo | mutt -a backup.tar.gz -s \"Database Backup\" [my email] #### rm backup.tar.gz #### [/code] Thanks!

Software Development mysql shell-scripting
Member Avatar for ConCon
0
217
Member Avatar for jagopy

I am looking for very beginner programming software for my 12 y/o grandson for his birthday. He wants to program his own video games eventually but needs to start with basics. Is this a good software for that? If not, any suggestions? I am not technically savvy wise, so please …

Software Development python
Member Avatar for jagopy
0
120
Member Avatar for jmartis

Hello, I'm doing an analog clock windows forms application in Visual C++, and for this I need to draw a few lines in a blank space inside the form. I've searched the Net but can't find a simple way to draw inside a form window. Any Ideas?

Software Development c++
Member Avatar for jmartis
0
151
Member Avatar for thuyson

i want to insert textbox's content into money column in sql.but i don't know how to do it. Please help me Thank u!

Software Development sql
Member Avatar for thuyson
0
798
Member Avatar for ceyesuma

Could someone look at my Statement stmt? is this error due to improper string creation? Thanks [code] [/code] [code] public String stmtCreateStudentTable = "CREATE TABLE student (" + "stu_uid CHAR(11)," + "stu_password CHAR(11)," + "stu_lname CHAR(20)," + "stu_mname CHAR(20)," + "stu_fname CHAR(20)," + "stu_gender CHAR(1)," + "stu_age INT(3)," + "stu_start_date …

Software Development apache java
Member Avatar for ceyesuma
0
120
Member Avatar for doomfrawen

Hello friends! I'm writing a program that is connected to a mdf database and i need to query the database, but I have tried several ways to do it but without success :( ! This is my code: [CODE] string Query = null; SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User …

Software Development listview open-source
Member Avatar for doomfrawen
0
2K
Member Avatar for TrustyTony

I tried this super simple class example from net. (Yes I am a beginner in implementation of object oriented features in Python) UPDATE: Now from fresh start of IDLE it did not crash, but did not quit properly still. Hmm. TaskManager any (or dozen) python zombies hanging around?? No only …

Software Development python tkinter
Member Avatar for vegaseat
0
594

The End.