132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Natique

Hi! I'm trying to write a code where I call a number of programs, with each program's output being the input for the next program. [code] WinExec(run11, SW_SHOWNORMAL); //to execute program1 WinExec (replace2, SW_SHOWNORMAL); //to execute program2 [/code] Now the problem is, program2 starts running before program1 finishes, and therefore …

Software Development c++
Member Avatar for Natique
0
196
Member Avatar for momoh

Got a small detail problem that I cannot get to understand myself. The program, see attachments draws dots on the screen. There is a dot class for the details of the dots to be stored, that is size, colour, shape (square or round) Problem is with the colour...Cannot get other …

Software Development java
Member Avatar for momoh
0
168
Member Avatar for herms14

Im having some trouble in forking. All i want to do is to create a child process and under the child process i need to create a grand child..here's my code #include<stdio.h> #include<stdlib.h> #include<unistd.h> int main(int argc, char *argcv[]) { int val; val =fork(); if(val==0){ printf("Child process running\n"); printf("Child:%d PID:%d\n",val,getpid()); …

Software Development c
Member Avatar for herms14
0
3K
Member Avatar for acplus

Hey, guys! I need little help for finished my code. I have created the code for analize my text file. I have text file with 2 lines. The program counts the lines of my txt file, length of each line, upper and lower case letters. Code works perfect without errors. …

Software Development c++ file-system
Member Avatar for mrnutty
0
148
Member Avatar for EvilOrange

every thing works till the fopen, the sprintf works as i'm printing to check that. i just doing know what is causing this not to work it prints "cannot open (null)" but the filename var does have something assigned to it. any help will be welcomed [CODE="c"] char tmpfilename[10]; char …

Software Development c
Member Avatar for EvilOrange
0
260
Member Avatar for cchris

I'm writing my first program. It's a C# console program. I need to connect to a database I've created as part of the project in VS Express. I've added the tables as Data Sources for the project. I'm writing to ask about the basics of dealing with databases. Like what …

Software Development
Member Avatar for cchris
0
102
Member Avatar for thebluestar

Here is my source code of inputting and print the matrix: [CODE=C]#include<stdio.h> int main(void) { unsigned int m,n; int a[10][10]; int i,j; int temp; printf("Plz enter the number of rows of Matrix:\n"); scanf("%d",&m); printf("Plz enter the number of columns of Matrix:\n"); scanf("%d",&n); printf("Enter elements for the Matrix:\n"); for(i=0; i<m ;i++) …

Software Development c
Member Avatar for mrnutty
0
105
Member Avatar for Mnkyman1030

Hi, I need to write a program that counts how many total iterations are processed in a heap sort. I wrote the program but I don't think it is working properly. I have an array 32 numbers. The sort should go through a total of 160 iterations, right? Since it …

Software Development c++
Member Avatar for mrnutty
0
224
Member Avatar for and12

Edit: Title - java access denied on graphic file Edit: I didn't realize i didn't finish typing the title before submitting. I put my applet on the web but it says not initialized and the error is complaining about my graphic. Am i not allowed to have graphics? How can …

Software Development java java-swing
Member Avatar for VernonDozier
0
221
Member Avatar for brando|away

I need to store data in this format: [code] category1 { "line of text1" "line of text2" "line of text3" ... } category2 { "line of text1" "line of text2" "line of text3" ... } .... [/code] I also need to be able to add and delete categorys, and "lines …

Software Development xml
Member Avatar for sknake
0
132
Member Avatar for z_zendegi

I want to convert my measures taht is in pixels to cm in c# but I can't I search MSDN but can't find useful information Please help me

Software Development
Member Avatar for ddanbe
0
102
Member Avatar for codester

I'm new at scripting and I need help with converting multiple ".TXT" files to one ".CSV" file. Each file will have a different number of lines, then after the last line there is a blank line then more data, I don't want to use the data after the blank line. …

Software Development shell-scripting
Member Avatar for codester
0
201
Member Avatar for jooa

Hi I found a class ReadingPixels someone wrote on the net which given an image it dispays the x,y,r,g,b values as the mouse is over the image. I have a separate class I want to add the panel to. I can add the panel to my frame however I think …

Software Development java java-swing
Member Avatar for jooa
0
113
Member Avatar for sara khan

Hi, I have seen a program in a thread that write a program which displays its own source code... How this can be done??

Software Development c++
Member Avatar for rahul8590
0
96
Member Avatar for coud_ren_26

Can somebody show me how to create a simple two column for strings? I need a sample code. Thank you for those who will help me.

Software Development java
Member Avatar for javaAddict
0
75
Member Avatar for amazing_grace

hi, whenever i try to write records into the file, only the first piece of records can be written. even some simple program like the following cant work properly. [ICODE]type thing=record name:string; end; var f:file of thing; data:array [1..2] of thing; i:integer; begin assign(f, 'infile.txt'); rewrite(f); data[1].name:='name'; data[2].name:='second'; for i:= …

Software Development pascal
Member Avatar for Duoas
0
350
Member Avatar for vibs123

hi,,,, all can anyone help me getting some topic for c++ project..... i m not getting an idea on which i can work and make a program or project in c++.... vibhu

Software Development c++
Member Avatar for tux4life
0
132
Member Avatar for deathknell

Hi all, I try to make a system where client can send their sms (contained contact file in it that compressed) to server using sms gateway concept. In this case, server must handle 3 condition : registration, request sending file to server (by client), and request take file in server …

Software Development client-server shell-scripting
Member Avatar for deathknell
0
622
Member Avatar for lorenb

Hi, I have a string (str1) which contain a special symbol (you can see attached). I want to check if this symbol exists, so I have declared this special symbol: string str = char.ConvertFromUtf32(135); and did the following: if (str1.Contains (str)) { // do some stuff here... } It doesn't …

Software Development
Member Avatar for sknake
0
136
Member Avatar for Nogat21

i'm with a question related to string comparing...i'm trying to compare two strings (well char pointers in fact :)), im using _stricmp for case insensitive comparison, but even with the conventional strcmp i'm not getting the result i want. [code=cpp] if(_stricmp(value,gen_arr[i])== 0){ file.seekp(-1,ios::end); file.put((i)); file.flush(); file.close(); printf("Editing of field %s …

Software Development c++ ios
Member Avatar for Nogat21
0
110
Member Avatar for gretty

Hello I have a program that prints a menu & the user is prompted to input a choice(1,2 or 3) if they input anything else, the output should be "Invalid Choice". [B] My Problem[/B] is that if a user inputs anything other than 1,2 or 3, then the program crashes, …

Software Development c++
Member Avatar for mrnutty
0
232
Member Avatar for arcticM

Hello everybody. I'm a [U]beginner[/U] and I need your help. I have a GUI programme and I need to make it run from an icon on the desktop. can you help me with an easy way to do so?

Software Development gui java
Member Avatar for JamesCherrill
0
84
Member Avatar for tyliang

I need to print to data stream to an output file but I'm not sure how to catch the data. Given example inputfile.txt has 20 data with a structure Michael 000000 m [email]abc@123.com[/email] 50 60 70 [code] #include <stdio.h> #include <string.h> void scanData(struct student data[]); void avgMaths(struct student data[]); void …

Software Development c data-science data-structure file-stream
Member Avatar for jianna
0
120
Member Avatar for dennis.wu

A const member function is not supposed to operate the data member. However, it can operate the data member if it is a reference data type. Why can operate the reference data member even if the member function is constant? It is shown below: two classes: Bird & BirdHouse BirdHouse …

Software Development c++
Member Avatar for dennis.wu
0
149
Member Avatar for gn00495555

Create a tic-tac-toe game. 1.First display a welcome message to the game. A player enters her or his name, selects to play first or not, and then start to plays the game. 2.Display a 3 by 3 tic-tac-toe board. 3. The player selects the cell to mark. The computer randomly …

Software Development c
Member Avatar for yellowSnow
0
158
Member Avatar for D.JOHN

Guys, I have this question, when I run this program, the program suddenly stop and tell me it cannot be runned, could your please tell me my error thanks. Here is the code: [code=cplusplus]#include <iostream> using namespace std; int main() { int student,subject; int marks[student][subject]; int i,count; student=5; subject=3; //Getting …

Software Development c++
Member Avatar for D.JOHN
0
157
Member Avatar for atch

Hi, I've just came across declaration of this form: [code=c++] void fun() throw(); [/code] Could anyone explain what is the pourpose of this and maybe someone knows good book with thorough explanaition on this subject. Thank you

Software Development c++
Member Avatar for atch
0
121
Member Avatar for abu taher

I made data report with condition. I want to input a student id number in a text box and press a button to show all data of this student, but a problem when i input a number in the text box (and press the button) for show the report a …

Software Development microsoft-access visual-basic
Member Avatar for jhai_salvador
0
127
Member Avatar for kelela

Please Help me!!! I know this is a stupid newbie error, but I am a newbie. My program compiles and runs, but I can't get the interestP and the principalP to pass to the other class to fill the graph. I have worked on this non-stop all day. [code] import …

Software Development gui java java-swing publishing
Member Avatar for JamesCherrill
0
149
Member Avatar for Ricky80

hi VB Master, I'm building an application using VB6, MS Access 2003 as database, and crystal report ocx for printing and report. Right now I'm using ms dao (database files) to connect crystal with access. But it is very slow, when I want to show 1 record out of 1000, …

Software Development visual-basic
Member Avatar for jhai_salvador
0
161
Member Avatar for limbo_cow

Hey folks, I could use a wee bit of help on this one... At the moment I'm trying to code something of a fluid effect using a collection of variably transparent rectangles and an two dimensional array of "densities" expressed in an integer from 0 - 255. Simple enough – …

Software Development
Member Avatar for limbo_cow
0
169
Member Avatar for bryangarcia

hey there, good day, i have a problem regarding a csae study, im a newbie and i dont know what's the problem of my source code...help is badly needed,thanks

Software Development c
Member Avatar for yellowSnow
0
103
Member Avatar for SeriousTyro

I've learned Java, C++, and most recently C ( Fall of last year). Seeing how there is a great deal of threads for C++ I'm thinking that I should go for C++. Which language do you suggest?

Software Development c++
Member Avatar for Salem
0
149
Member Avatar for JameB

Hi, is there any function or algorithm that can completely remove a string array element? For example, string mystring = 'x', 'xx', 'xx', 'xxx'; if I want to remove 'xx' and I know the position of 'xx' in the array, I want this : mystring = 'x', 'xxx'; Anything? I …

Software Development algorithm c++
Member Avatar for JameB
0
5K
Member Avatar for umarmaqsood

Before i start my question, i must say i am very sorry for starting another thread for a similar question, as i have read many threads but i didnt really catch the exact answer i wanted. and again i am new and very sorry.(first post) i have been reading C++ …

Software Development c++
Member Avatar for gkaykck
0
135
Member Avatar for gretty

Hello I have a function that should store random numbers in an array and also check if there are any repeated numbers. [B]My problem[/B] is that I cannot figure out how to 'repair'/get rid of repeated numbers & make them ...unrepeated numbers? :P Any advice on how I can alter …

Software Development c++
Member Avatar for Sky Diploma
0
127
Member Avatar for abu taher

in msflexgrid I have one fixed row. and 5 or more data show in 5 row. If I write code like:`txt1.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, 1)` then when I click on a row then only one text box show that data. but I want I click a button then all data of …

Software Development visual-basic
Member Avatar for abu taher
0
101
Member Avatar for defiant91

How do I read what is being displayed in a cli process that my program starts?

Software Development vb.net
Member Avatar for GeekByChoiCe
0
131
Member Avatar for miketeebo

Hi all I am very new to programming and am having a little difficulty starting an assignment. I need to make a program that takes a telephone number and shows all the different words that could be made for that number. The telephone number cannot have a 1 or a …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
142
Member Avatar for Democles

I'm having trouble making a function that centers my results. I cannot find much information depicting how this works exactly. I've found small functions but nothing like I'd like to do. My whole idea is make a function so I can use it at anytime to center my string. Somethings …

Software Development c++
Member Avatar for Sky Diploma
0
122
Member Avatar for missty

can anyone tell me how can i create a function like: [QUOTE]if ("the txt file is blank") dosomething;[/QUOTE] which is checking if the text file is empty and then do something.

Software Development c++
Member Avatar for Dave Sinkula
0
3K
Member Avatar for fellixombc

Here is my trouble: It loads the IRC information fine, but when its suppose to Identify itself (its a registered nick I'm making it use)but, It doesn't. So basically when after it connects, i want it to type that. Here is my code: [CODE]## An IRC bot by: Fellixombc import …

Software Development python
Member Avatar for kyleh
0
110
Member Avatar for and12

1. My code runs but the text panels won't display properly in the panel until i hide the frame and open it again or click min/max. 2. Can someone suggest the kind of layout i need to keep letters of each word together so it doesn't wrap to the next …

Software Development java java-swing
Member Avatar for and12
0
113
Member Avatar for tyliang

I want to sub-function the reading and printing data. But it says data corrupted. Sorry for my poor english. Example of inputfile.txt [code] Michael 000000 m michael@abc.com 75 82 90 [/code] [code] #include <stdio.h> #include <string.h> void readData(); void printData(); struct student { char studName; int studID; char sex; char …

Software Development c
Member Avatar for tyliang
0
187
Member Avatar for gretty

Hello I have a function that takes in a 'word pattern' & a word & determines if the word contains the same characters in the same position as the 'word pattern'. [QUOTE]For eg; 'word pattern' = he??? word = hello - The function will return true because the word variable …

Software Development c++
Member Avatar for gretty
0
148
Member Avatar for plato_03

hello everyone, this is my first post. I have been teaching myself c++ for the last few weeks and have gotten more familiar with some of it. i thought to myself it would be interesting to try writing up some code that goes through numbers to see if they are …

Software Development c++
Member Avatar for mrnutty
0
139
Member Avatar for nateuni

Hi Guys and Gals, I am new to programming and I decided to write my self a simple class to help me with my uni work. It is just to save me writing to screen then using the scanner class to read the input. It would be easier with a …

Software Development data-science java
Member Avatar for nateuni
0
1K
Member Avatar for seakayaker

Hi, I have a Windows GUI app that uses a thread for a computation intensive call. It works fine. From what I understand the thread is terminated when my thread function returns which means that I dont need to add a a termination to it. However, I don't want the …

Software Development c++ gui
Member Avatar for Frederick2
0
234
Member Avatar for Nathan Campos

Hello, I'm starting in Assembly development. Then recently i buy a book of Assembly, in it i have the table with the decimal numbers to hexamals and to binarys, like this: [code=asm]Dec - Hex 1 - 01 2 - 02 3 - 03 4 - 04 [...] 10 - A …

Software Development assembly
Member Avatar for Nathan Campos
0
233
Member Avatar for Majestics

[code] import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.Robot; import java.awt.Event; import java.awt.AWTException; public class keyboard implements ActionListener { int i; String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau","A","B","C","D","E", "F"}; String g = ""; Object b; JMenuBar m = new JMenuBar(); JMenu m1 = new JMenu("File"); JMenu m2 …

Software Development java java-swing
Member Avatar for Majestics
0
188

The End.