43,549 Solved Topics
Remove Filter ![]() | |
[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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … Software Development client-server python web-browser web-server | |
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 | |
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 | |
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# | |
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 | |
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++ | |
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 | |
![]() | 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 |
![]() | 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 |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 … |
The End.