132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shakunni

Hey, How do you read from the command line in C? I need to read 10 arguments from the command line. Can I use char* argv[] as a parameter in the main function to do so? Thanks.

Software Development c
Member Avatar for thines01
0
158
Member Avatar for Felicidas

Hi everyone, hope someone can give me some hints about my problem. I write a program that read users input through command line(args). This input i put it as a list. User type number that they want separated with comma [CODE] --number 1,2,3,4 [/CODE] The next process is to read …

Software Development python
Member Avatar for vegaseat
0
197
Member Avatar for Silvershaft

Well I think title says it very well, how do you think, is it good option to make program with GUI?

Software Development asp.net c++ gui
Member Avatar for thines01
0
150
Member Avatar for i are smart

So I did some research and learn that you use the sys module to set the path for 2.5: import sys sys.path.append('usr/local/lib/python2.5/site-packages/') And that would set the path for 2.5 permanently, but if i do the samething for 2.6 or 3.0, it will not work the next time I open …

Software Development python
Member Avatar for vegaseat
0
689
Member Avatar for needhelpe

I made a program that inputs the radius of a circle, and then should output a circle of asterisks. however, I am just getting the fourth-quadrant part of the circle, and I need the whole circle to be printout. what do I need in my code? this is my code: …

Software Development c
0
88
Member Avatar for Tamaki

Hi, I'm new here and I just need a little help with pointers and 2D arrays. I'm kind of new to programming so this might be redundant. I'm trying to make a 2D array of pointers (already have done) that points to another 2D array of double values... I have …

Software Development c
Member Avatar for Tamaki
0
172
Member Avatar for cwarren13

So, I have a server process that forks for every client that connects. I keep a list of connected clients that I want each fork process to have. Of course, when the process forks the child only has what it had when the fork occurred. For the solution to this, …

Software Development c client-server
Member Avatar for venomxxl
0
2K
Member Avatar for Byrne86

Hi, Iv had to convert a program from Java to C#, I thought I had done it, but it doesnt work, and Im at a loose end because I cant figure out why it isnt working. Anyway, what it is is a Mandelbrot Set that Im trying to display in …

Software Development mathematics
Member Avatar for ddanbe
0
585
Member Avatar for hhh0505

i'm new to visual basic and I managed to make somewhat of an assignment I need. now it's not perfect but, I am terrible when it comes to calculations... what am I doing wrong? ;-; ' This procedure calculates and displays each floors ' occupancy rate. Dim intCount As Integer …

Software Development vb.net visual-basic
Member Avatar for hhh0505
0
2K
Member Avatar for ilikerps

Hello, I was just wondering if it is possible in Java to get the host's IP address, as seen on the Internet, not network or by the computer itself. I mean, getting something like [B]87.253.145.35[/B] instead of something like 192.168.1.100 or 127.0.0.1. Or, if not, is there any popular/known server …

Software Development java
Member Avatar for davido82
0
451
Member Avatar for lukeser

My C# program is able to work with existing MySQL and Access databases. Additionally, it will also create a new Access database if none exists. I am not able to get it to create a new mySQL database though. When the program attempts to run the ExecuteNonQuery command for CREATE …

Software Development c# mysql
Member Avatar for lukeser
0
6K
Member Avatar for tkud

While I was browsing through the forum threads long ago, i saw a thread about one assignment given toits poster. Since i am learning myself(1 month left to enter university), I decided to try writing d program . Please, you are free to correct me if I am wrong anywhere... …

Software Development c++
Member Avatar for pecet
0
112
Member Avatar for Ponomous

Hey How do you go about debugging? like tips and tricks? I have been looking at my code (below) for like an hour and cant figure out what i have done wrong..... [CODE] #include <fstream> // Header File for File Reading #include <iostream> // Header File for General I/O-put #include …

Software Development c++
Member Avatar for Ponomous
0
127
Member Avatar for nick30266

can somebody help me with this program?? i have to program a matrix with n column and n row and it should be able to find a path moving like a horse in chess game(L) that touch every point of the matrix once. the program consist in enter the location …

Software Development
Member Avatar for thines01
0
215
Member Avatar for PDB1982

How can I call a value that was created in 1 function into another function so that it can be used as a variable? (i.e how do I implement the values that I found in my distance function, and use them in my radius function...) [code] #include <iostream> #include <cmath> …

Software Development c++
Member Avatar for jonsca
0
82
Member Avatar for Mitja Bonca

I did like: [CODE]FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir" + listBox1.SelectedItem", FileMode.Create);[/CODE] And you know what happens? It partly works. It opens the files (if its a pdf file, it opens in a acrobat reader, if doc it opens in word,...) but there is no file in that directory. …

Software Development pdf
Member Avatar for Mitja Bonca
0
159
Member Avatar for jrosh

I want to create a data file(.txt) with the data in a mysql table. (of course i did that) [CODE] try { // Create the statement //Export the data String filename = "test.xls"; String tablename = "test"; c.getData("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); System.out.println(filename); …

Software Development java
Member Avatar for JamesCherrill
0
123
Member Avatar for u8sand

Hello everyone. Im sure this is a simple winsock question but maybe im wrong... I searched everywhere and keep hitting dead ends. Im just learning how to use winsock and still have yet to find a good tutorial. But i found a class which i will start with. Only problem …

Software Development c++
Member Avatar for lashatt2
0
116
Member Avatar for dotnabox

So my program is coming along, but now I am writing in the range checking to ensure that the inputs are actually what they should be. My code works fine for time, except for the fact that white space gets ignored. I need to ensure that a user cannot input …

Software Development c++
Member Avatar for VernonDozier
0
316
Member Avatar for himabindu

sir, we want complete c programme for huffman encoding & decoding.im doing my b.tech project .please send me the code

Software Development c
Member Avatar for ck.ckravi
0
259
Member Avatar for thebluestar

[CODE] #include<stdio.h> #include<conio.h> #include<string.h> int n; char (*p)[40],*temp; void Input(); void ABCsorting(); void Input() { printf("How many persons u want to input: "); scanf("%d",&n); p=(char*)malloc(n*40*sizeof(char)); temp=(char*)malloc(n*sizeof(char)); int i; for(i=0; i<n ; i++) { printf("String %d: ",i+1); fflush(stdin); gets(p[i]); } printf("All strings before sorting: \n"); /*for(i=0; i<n ; i++) { printf(" …

Software Development c
Member Avatar for Ancient Dragon
0
161
Member Avatar for ninreznorgirl2

here is the overloaded function i have. I have to enter a float, for example, .123 or 0.123. if there is many zeros in front, then it will skip them over, and test for a decimal, then count the numbers in the end. and then print them out. [CODE]MyFloat& MyFloat::operator= …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for Stefano Mtangoo

Hi all, this is just curious question on C++ and winapi. I have heard that win32api is written in C and at the same time I have heard people saying that "light weight" applications can be written using API. This boggles my mind on how C++ works with C-based API. …

Software Development api c++ oop windows-api
Member Avatar for Ancient Dragon
0
274
Member Avatar for rciprogrammer

I have a form that is called w/ ShowDialog. Inside that form, I want to pop a message box to ask the user a question, but it doesn't show. Form: [CODE] Dim someFrame as myFrame = new myFrame someFrame.ShowDialog() [/CODE] Then, inside that form: [CODE] Dim ans As MsgBoxResult ans …

Software Development vb.net
Member Avatar for rciprogrammer
0
119
Member Avatar for jaison2

I need to write a function which has 2 parameters height and width and outputs a rectangle of "#" ssmbol of the appropriate dimensions. so for 93, 4) should result in the output #### #### #### but i dnt unserstand how to use the loop in this. I have only …

Software Development python
Member Avatar for vegaseat
0
98
Member Avatar for Yee

Hi! I have had to change from Python to C because of university instructions. My problem is that, when I want to make a menu for my program or whatever, I always want to define classes:P My question is simple --> are structures the best way to "replace" classes? TY

Software Development c
Member Avatar for gerard4143
0
102
Member Avatar for violet101

Help!!! I'm trying to eliminate the highest and lowest number out of 5 inputs then get the average of the remaining 3 inputs... In some instances, it gives me incorrect average.. (We are not suppose to use arrays yet) Here's my code: #include <iostream> using namespace std; void getData(double& input1, …

Software Development c++
Member Avatar for violet101
0
188
Member Avatar for skiplatte

I'm trying to split an input string into an array of substrings and currently trying something like this... [CODE] public static void tryp(String inputString){ int index = 0; String[] rArray = new String[1000]; String[] kArray = new String[1000]; int startPos = 0; int x; int newRPos = 0; int newKPos …

Software Development java
Member Avatar for skiplatte
0
158
Member Avatar for StarZ

This program is suppose to merge the two files by taking one element at a time from each, and the third file should contain the numbers from both file from lowest to highest. Data1: 11 25 36 45 56 78 90 Data2: 1 3 5 7 54 32 78 99 …

Software Development file-system java
Member Avatar for Alfredtwo
0
148
Member Avatar for jchaturv

All, I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using C# and .NET). Now, I could able to use it properly by placing it on a panel control. I have added label as button on panel control to display …

Software Development dataset vb.net
Member Avatar for Geekitygeek
0
269
Member Avatar for deftones

Hi again, I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in …

Software Development visual-basic
Member Avatar for deftones
0
90
Member Avatar for deftones

Hey, How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it …

Software Development visual-basic
Member Avatar for deftones
0
100
Member Avatar for brokenbentou

im a astudent @ LTHS, in my forst year of Java, how do i make a default, and non-default contructor, and how to they work?

Software Development java
Member Avatar for JamesCherrill
0
167
Member Avatar for scarpacci

Hi Gurus, A colleague and I have a process where we want to look at a file we receive from a vendor (XML) and data that is in our db. In order to bypass loading the xml and comparing it once loaded we are loading the db data and xml …

Software Development c# xml
Member Avatar for Geekitygeek
0
137
Member Avatar for nirvaan

I need to write a query for the given crystal report. The database tables and the report is attached.Please see to it.

Software Development sql
Member Avatar for kishore_kke
0
69
Member Avatar for benkyma

I've spent a bit of time porting my database connection over to MySQL. It's taken a bit of time, but generally been fairly easy. However, one of my insert queries is currently failing due to an auto increment ID field. I have this insert query: [CODE]INSERT INTO entries(text, name, screen_name, …

Software Development c# mysql
Member Avatar for benkyma
0
409
Member Avatar for themigrant

Hi C# friends,... My code goes like this for creating a library..... [code=c#]using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; namespace ClientLibrary { public class ClientLibrary { private bool connectionStatus; private Socket oClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); private Thread Receiving_Thread = new Thread(receiveFromServer); public String …

Software Development
Member Avatar for Geekitygeek
0
155
Member Avatar for thebluestar

I'm not sure about the difference between *p[5] and (*p)[5]? Please help me clarify them? Thanks a lot!

Software Development c
Member Avatar for Iam3R
0
178
Member Avatar for s.p.i.

Hi there, I was trying to code a simple program that bubble sorts an array into a list of numbers arranged in a descending order: Here is the code I used: [CODE=c] #define size1 5 #define size2 5 #include <stdio.h> int main() { int a[size1]={8,4,5,2,3};//array 1 int i=0; int n=0; …

Software Development c
Member Avatar for dkalita
0
96
Member Avatar for Iam3R

Dont know these types of questions are asked here or not but if any one has idea please help me. i just started started learning system programming and want to pursue a career in the sys prog area. below is the program that use a fork() call. i read in …

Software Development c career
Member Avatar for dkalita
0
121
Member Avatar for python.noob

Hai guys, A very good morning to you.Currently i'm using python3 in linux. In windows tkinter is working fine but in mandriva linux spring 2009 it fails to import. Can you please tell me step-by-step on how to fix this issue? In python3.1 home page the description is not clear …

Software Development python tkinter
Member Avatar for python.noob
0
382
Member Avatar for Dekken

Hi I'm creating a multiple form GUI app using a scene-manager to set the current visible form. There isn't an issue regarding it working, that's fine. What I am noticing is that when each form is set to be active/visible, it takes a few seconds to load each component, and …

Software Development c c# c++ gui
Member Avatar for Dekken
0
240
Member Avatar for halem2

Hi: I have a workbook that has several sheets. One sheet called FORM is password protected (by me). I have a macro that clears all sheets but when it gets to FORM it prompts for the password (which I don't wan't to give to my users). Is there a way …

Software Development vb.net
Member Avatar for vba_dev
0
143
Member Avatar for Phil++

Hey, I've created this class, it compiles OK but when I go to use the class it fails. It comes up with a pop-up saying something like 'Unexpected Error' 'Class' [code] class Person { public: Person(); Person(char theName[], float thePay, int theHours, bool Isworker); char* getName(); float getPay(); int getDepartment(); …

Software Development c++
Member Avatar for pecet
0
59
Member Avatar for Mitja Bonca

1. How to retrieve stored file our of the database? have stored (for example) a pdf file into database, as a data type of varbinary(MAX) - binary data. How can I get this file back, like it was before? Important things I have stored for the particular file are: - …

Software Development pdf
Member Avatar for Mitja Bonca
0
2K
Member Avatar for sciocosmist

Greetings, I was wondering if someone could teach me how to run an executable in java. I have written a Java program that fills out some information, but I need to run a file that is normally run from a command prompt that is an executable. If someone could tell …

Software Development java
Member Avatar for peter_budo
0
5K
Member Avatar for iamsmooth

So my binary search tree doesn't seem to be traversing through all the nodes. each node has references to other nodes. So I'm traversing through right or left (depending on value) until I hit null, which means I can insert. After insertion, I reset root to first so it can …

Software Development java
Member Avatar for iamsmooth
0
134
Member Avatar for yateenjoshi

Hello, I would like to know hot to pass address reference to ā€˜c’ function through python. I am using swig for ā€˜c’ anf python interfacing Interface file : stud.i *************************************************** %module stud %header%{ #include "stud.h" %} %include "stud.h" %array_functions(char *,charp ); %inline %{ extern int parse1(char *,char *,char **); %} …

Software Development python
Member Avatar for yateenjoshi
0
403
Member Avatar for Stefano Mtangoo

Hi all, I'm just starting Java and have read some tutorials and reading also thinking in Java and I see it is a good language. I have a question though, what are MINIMUM requirement of ANY Java program for it to run?

Software Development java
Member Avatar for Stefano Mtangoo
0
122
Member Avatar for free_eagle

Dear forum members, Could you please let me know from your experience the best avaibable textbooks to learn C# effectively with examples? I am planning to start to learn C# programming but I have no idea from where to start and which book to read. I have Deitel's books Programming …

Software Development c c# c++
Member Avatar for gira
0
342

The End.