43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for eslmz

I want to reach linked list like an array. I write a code like that but i get unexpected result. Main problem is, when i check sizeof(myrecord) value, i get 27 bytes, but actually difference between the records is 32 bytes. Do you know where is the error? [CODE]#include <stdio.h> …

Software Development c linked-list
Member Avatar for UncleLeroy
0
131
Member Avatar for g2gayan

Hello Experts :) My Name is GaYan and im still learning C# :D lol.. im a newbie :idea: what i need to do is to create a program in C# to enter a number series and to get the the highest(largest) value and minimum(smallest) value of the entered numher series …

Software Development algorithm
Member Avatar for kvprajapati
0
122
Member Avatar for GAME

Hello, Right now I have like 11 forms on my program. When I debug my program, my program keeps loading every 1 second (with the timer and the mouse). All the mouse icons are default. Is there any way to make a program faster?

Software Development
Member Avatar for GAME
0
103
Member Avatar for GAME

How would I get the response of a webrequest and search for a certain text?

Software Development
Member Avatar for GAME
-1
67
Member Avatar for GAME

Is there any way to make it so a .dll is not visible? Or is there a way to import a .dll into your program, so its not outputted on debug?

Software Development
Member Avatar for GAME
0
151
Member Avatar for Pinchanzee

I'm quite new to Python (and programming past pascal) so I'm looking for a relatively simple-to-understand way to do this. All help is much appreciated. I'm looking for the program to take a variable as if it were just normal code, I'll explain via example. I want the code to …

Software Development pascal python
Member Avatar for Pinchanzee
0
159
Member Avatar for iamcreasy

Why Animal constructor is not being called by the declaration of the array? LINE 12 Isn't 10 instances of Animal class is being created with this line? [CODE]package javaapplication; class Animal { Animal() { System.out.println("Animal Constructor");} } public class Main { public static void main(String[] args) { Animal[] animal_obj = …

Software Development java
Member Avatar for NormR1
0
104
Member Avatar for G_S

Hi, I have a Text widget and a button that is supposed to sort the Text's contents alphabetically. This time I won't ask you how to do it, I'll rather ask you to correct me. This is how I solved the problem: [code]unsortedT = text1.get(1.0, END).replace("\n", "\n*").split("*") sortedT = sorted(unsortedT) …

Software Development python
Member Avatar for TrustyTony
0
134
Member Avatar for happymadman

I have put some xml data in a file the python code below and have been trying to figure out how to get the data from the file add another "person" and then save to the same file again. [code=python] from lxml import etree from lxml.builder import ElementMaker E = …

Software Development file-system python xml
Member Avatar for happymadman
0
229
Member Avatar for SJP99

I know this gets asked a lot but i want to make a program that sends me some form of an alert at a certain time of day. I am using windows 1. i want it too run invisibly so no windows, doesn't show in task bar, or task manger …

Software Development c++
Member Avatar for SJP99
0
146
Member Avatar for GAME

On my form, I have a webbrowser, that navigates to nothing on start. But on webBrowser navigated I have this code, but the msbBox keeps showing on start up. [code] if (webBrowser1.DocumentText.Contains("Hello")) { this.Text = "iUltimate - Cheating Zone - " + txtUser.Text; } else { MessageBox.Show("Error, please try again. …

Software Development
Member Avatar for GAME
0
84
Member Avatar for virendra_sharma

Hi Frnds ... i want to know , how to optimize bubble sort , if you realize that at the end of the i-th pass, the last i numbers are already in place. Consider the sequence {3, 9, 1, 7}. After the first pass, the 9 will end up in …

Software Development
Member Avatar for bbman
0
632
Member Avatar for Roulaa

helleo all; how make text written int text box unshown E.g. if I eritte any word appear **** :)

Software Development
Member Avatar for bbman
0
73
Member Avatar for neithan

Hi all! I'm new to pixel/graphic management and fairly new to C# as well but i'm learning some AI at the same time, very basic of course. I did some kind of "Game of life", you know that it imitates cell birth and death and whatnot. I have it working …

Software Development listview
Member Avatar for neithan
0
128
Member Avatar for Roulaa

hi with visuial studio c# i'm doing form include another forms the basic form contain #of buttons if button click basic form hide and new one open all that is ok the problem: if any form (basic or others) closing by (x) in the bar the form close but it …

Software Development
Member Avatar for Roulaa
0
174
Member Avatar for Leppie

So close (I think)! I've been working on this for some time now (on and off, coming back to it) and now I'm stuck. Hopefully there's not to much wrong with the coding of it, the compiler throws up lines 50 & 63 with errors? Not to sure if I've …

Software Development c++
Member Avatar for Leppie
0
185
Member Avatar for G_S

Hi, I have a different question today: how do I call the python interpreter AND tell it to open a python program from inside another program UNDER WINDOWS? My program is running fine, and it even has a text mode without any graphical interface. Under Linux, you click on the …

Software Development python tkinter
Member Avatar for G_S
0
376
Member Avatar for ryan461

Following this text book, i need to take this card dealing program and turn it into dealing 5 cards, and identifying pairs(and various other hands). The 5 cards was easy, now im just experimenting on how to identify pairs when i came into the error: missing ; before const. The …

Software Development c
Member Avatar for ryan461
0
399
Member Avatar for WildBamaBoy

Does anyone here know how to use the UnRAR2 module? [URL="http://code.google.com/p/py-unrar2/downloads/list"]http://code.google.com/p/py-unrar2/downloads/list[/URL] I can't for the life of me I can't figure out how get it to do the same thing that zipfile does in a project I am working on. I want it to look for all files of a …

Software Development python
Member Avatar for Beat_Slayer
0
265
Member Avatar for neithan

Hi! I'm a newbie and i have kind of a teoric doubt. I wonder where the functions/events truly reside. For example, when i doubleclick a form or a button, i can see in the events properties that a function is created in my code (private void Form1_Load(object sender, EventArgs e), …

Software Development
Member Avatar for nick.crane
0
151
Member Avatar for judithSampathwa

hi there, i have a code that try to get the file name from the path the file is the code is below [CODE] a = @"C:\Documents and Settings\awaduge\Desktop\Purchase Order\Purchase Order Excel\20100427 REQ (ASG NI Framegrabber for ARL Camera).xls"; MessageBox.Show(a.ToString()); int Findex = a.LastIndexOf('\'); MessageBox.Show("index of a " + Findex.ToString()); …

Software Development
Member Avatar for nick.crane
0
2K
Member Avatar for Ror1

I need help with the code. It otherwise works fine. But whenever i enter 'Y' to play the game once again it automatically keeps entering character as input to scanf every time i press enter. So, the program never, ends what to do??[code]#include<stdio.h> #include<stdlib.h> #include<ctype.h> #define SEED 12345 void play(void); …

Software Development c
Member Avatar for Ror1
0
83
Member Avatar for akssps011

I am new to C++ in terms of large projects distributed over various source files. When I compile(gcc compiler) I get the following error: undefined reference to 'C::C()' I have this code: [B]/src/lib/abstract/[/B]A.cpp [CODE] #include "src/plugins/geo/C.h" #include "B.h" class A:public B { public; A() { B m_b; } void speed() …

Software Development c++
Member Avatar for akssps011
0
167
Member Avatar for venomxxl

I'm writing a small game engine and I have a little problem. The code below shows the exact situation: Header1.h [CODE] #ifndef _HEADER1 #define _HEADER1 #include "Header2.h" namespace HNamespace { class HClass1 { public: HClass1() { } ~HClass1() { } HClass2 * A; }; } #endif [/CODE] Header2.h [CODE] #ifndef …

Software Development c++
Member Avatar for venomxxl
0
101
Member Avatar for homeryansta

as the title states. Is there a way to determine if both datatypes are the same?

Software Development vb.net
Member Avatar for homeryansta
0
70
Member Avatar for Mithrandir85

hey there Everybody... I want to have a unit, without a form attached/declared, and have only a recorrd and a bunch of functions, though the functions dont neccessarilly have anything to do with the reccord... so my question is where do i put the public declaration? or do i do …

Software Development pascal
Member Avatar for Mithrandir85
0
107
Member Avatar for neo.mn

Hi everyone I create windows form where there is a DataGridView control. I have edited that control by adding my own column text at the top row under which data will be shown. I need to show the header text in Bangle language using Unicode character. I have done this …

Software Development
Member Avatar for neo.mn
0
97
Member Avatar for Grep

Hey guys, Hope I'm not posting into the wrong section. I think I have something very simple that i'm having a lot of trouble with. I have a text file called "file.txt" It contains: TagString=V3,SCC-COM,WXF1A20V0556,WXE1A2071007,PREBI TagString=V3,SCC-COM,WXK1A1045668,WXG1A30F3909,POSTBI TagString=V3,SCC-COM,WMAYP0002467,WMAYP0002769,BI I want to run a batch file that'll parse the 1st & 2nd …

Software Development file-system shell-scripting
Member Avatar for Grep
0
189
Member Avatar for perryg30313

Hello Forum, I am having trouble retrieving data from a stored procedure that I have set up as a Data Adapter using VB.NET 2005. The Database is SQL Server 2000, and what I am trying to access is a simple Stored Procedure that will validate a users login access. Details: …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
90
Member Avatar for Dr_Gonzo

I'm trying to retrieve data from an Exchange 2007 server (Calendars) through C# (an ASP.NET webpage), I followed this example: [url]http://blogs.msdn.com/b/webdav_101/archive/2009/01/10/sample-howto-display-a-list-of-calendar-items-in-listview-using-ews.aspx[/url] But I keep on getting the following exception: ErrorNonPrimarySmtpAddress MSDN could tell me the following: [I]This error occurs when a caller passes in a non-primary SMTP address. The response …

Software Development asp.net listview
-1
73
Member Avatar for Grep

Hi guys, I would like to execute something like this in my program: system("C:\test\perl\a.pl"); But the problem is i need to execute: perl a.pl Can't just execute the a.pl and expect it to run. Any ideas on how i could simply open up the cmd prompt with my program and …

Software Development c++ perl
Member Avatar for Grep
0
254
Member Avatar for AspiringCoder

How would you take an int and make each diget into a array element? For example: [CODE]int num = 12345; int nums[4]; // how ever you enter numbers into the array // would result in: // nums[0] = 1 // nums[1] = 2 // and so on...[/CODE]

Software Development c++
Member Avatar for AspiringCoder
0
188
Member Avatar for dohpaz42

In a nutshell I am trying to write a program that will connect to a database, query several tables for various sets of data that will then be transformed into XML that is stored into a file on the local hard disk. My first thought process to solve this problem …

Software Development c++ oop ui-ux
Member Avatar for dohpaz42
0
207
Member Avatar for ttboy04

Hello, When random generates an output, it cannot show duplicate strings. So for example the output I am getting (randomly) is, "Freddy, Freddy, Jane" when it should be "Freddy, Jane". I have to hardore so I cannot use Sets or ArrayList, Contains or for anything like that. Also no Stringbuilder. …

Software Development java
Member Avatar for aspire1
0
138
Member Avatar for HUPextreme

Hi Guys, feel quite stupid with this one, been staring at it for ages. What to combine three tables with the left join sql. keep getting the syntax error in Join operation. [CODE]SELECT SubmittedTeam FROM (NETT LEFT JOIN NETT ON NETT.SubmittedTeam = Team.Team) LEFT JOIN tempDate ON NETT.Date = tempDate.date …

Software Development sql vb.net
Member Avatar for kdion1024
0
158
Member Avatar for Duki

Hey guys, I have a splash screen I'm loading here: [code=c#] private void main_Form_Load(object sender, EventArgs e) { //Load Splash Screen this.Hide(); Form_Splash form_Splash = new Form_Splash(); form_Splash.Owner = this; form_Splash.Show(); System.Threading.Thread.Sleep(3000); form_Splash.progressBar_splash.Value = 10; form_Splash.label_Process.Text = "Checking Authentication..."; System.Threading.Thread.Sleep(2000); // Create the context for the principal object. PrincipalContext ctx …

Software Development image open-source
Member Avatar for kdion1024
0
151
Member Avatar for khipasi

Hi, I am trying to populate a listview with the data that is entered on the Edit box, but I am getting errors: Form1.Listview.Insert(0); Form1.Listview.Items.Item[0].Caption := Name{Name in the Diaolog Box) Please help.

Software Development listview pascal
Member Avatar for khipasi
0
98
Member Avatar for Duki

Hey Guys, I'm connecting to an SQL server and updating some fields. This works: [code=c#]cmd = new SqlCommand("UPDATE Laptops SET Checkout_Date = '" + form_CheckOut.checkout + "' WHERE name='pen-laptop1'", conn); cmd.ExecuteNonQuery(); [/code] But this one doesn't: [code=c#] cmd = new SqlCommand("UPDATE Laptops SET " + " isCheckedOut = 0" + …

Software Development sql
Member Avatar for Duki
0
76
Member Avatar for cc11rocks

like for a regular menu it would be: [CODE]def menu(list, question): for entry in list: print 1 + list.index(entry), print ") " + entry return input(question) - 1 items = ["bookcase", "sleeping dog", "couch", "closet", "rug", "door"][/CODE] [COLOR="Red"]How to create a menu to where when you entered 1 for bookcase …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for iqra123

hiii... i running a program of C heres one function in which i am getting an error. [CODE]void snmp() { int count; char switch_val; printf(" start sending requests\n"); printf(" select '1' to send get request\n"); printf(" select '2' to send get next request"); scanf( "%d", switch_val); switch(switch_val) { case '1': …

Software Development c
Member Avatar for iqra123
0
72
Member Avatar for xaop

[QUOTE]Armstrong numbers are the sum of their own digits to the power of the number of digits For example, 153 = 1³ + 5³ + 3³[/QUOTE] Here is my attempt [CODE]#include <stdio.h> #include <conio.h> void main() { clrscr(); int i,r,h,t,o,s,n; printf("Please enter any integer.(Not more than four-digits) "); scanf("%d" , …

Software Development c
Member Avatar for Banfa
0
145
Member Avatar for ajwei810192

Hi, I wonder if anyone on this list has tried to mix numerical variable, such as 1, 2,3 within an xpath expression. [CODE]songList = document.SelectNodes("/music_songs/song[category='" & drop1.SelectedItem.Text & "'][item_number_first<=position()<=item_number_last]") [/CODE] For some reason, item_number_first and item_number_last appear to have no value in the above code snippet, when they do have …

Software Development vb.net
Member Avatar for ajwei810192
0
116
Member Avatar for SciFiCoder

Hello. This is my first post. Hopefully the first of many. I am currently starting my journey in collegiate Computer Science and as such I know some basics about programming - logic and a fledgling understanding of some languages. Right now I am trying to create a program that uses …

Software Development visual-studio
Member Avatar for nick.crane
0
131
Member Avatar for War_Archer

in shell scripting let say a variable [CODE]first="abcd:efgh"[/CODE] how do I find the index of : if its even possible thanks

Software Development shell-scripting
Member Avatar for akand
0
142
Member Avatar for Alex314

Hello, This is probably trivial, but I can't find a solution to the following problem. In C++Builder 2007 I was able to write different strings both to the Application's Title and to the Main Form's Caption. In the Title I displayed the name of the Application; in the Caption (showing …

Software Development c++
Member Avatar for Alex314
0
153
Member Avatar for aframe

I am trying (first python attempt) to pull information from a web page and store is for further use. Here is the code that opens the page and gets the information. [CODE] # -*- coding: utf-8 -*- #python from urllib import urlopen myfile = urlopen('http://192.168.0.1/stlui/user/allowance_request.html%20target=%22allowance%22').read() print myfile [/CODE] The following …

Software Development python
Member Avatar for Tech B
0
627
Member Avatar for G_S

Hi, I'm trying to make a frontend for the compile module in python. Everything works just right, except when the file has mistakes in the code that lead to a syntax error. It does raise the invalid syntax error in the terminal, but instead of executing the block inside the …

Software Development python tkinter
Member Avatar for G_S
0
2K
Member Avatar for romyboy2k9

Hello, could some please help me with a current project that I'm working on for school? I have the following code, but the output shows unknown address. The following is the description of my assignment, and the code I have so far. Thank you. Write a program that creates a …

Software Development c++ linked-list
Member Avatar for thelamb
0
127
Member Avatar for prashanth s j

Hi all, in a python script file, I am having a open statement and then i write a "50000" to that file. And then within the script i am writing a scp command that transfers the file to a remote machine. In the local machine if i check the file …

Software Development file-system python
Member Avatar for prashanth s j
0
145
Member Avatar for panda_pow

Hey everyone :) So I'm doing my homework when I get this massive brainfart. It's all done, and everything works, except I need a way to make [B]j[/B] [in the function AddStudents()] get bigger without resetting to 0 everytime the function is called (so it moves to the next cell …

Software Development c++ mathematics
Member Avatar for panda_pow
0
150

The End.