132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 1newguy

[code]#include <iostream> using namespace std; int foreign(int x); int x; int main() { x=10; int i, j; i = 2 * x; if (i > 10) j = x / 2; return j - 1; cout << foreign(x) << endl; } [/code]

Software Development c++
Member Avatar for daviddoria
0
84
Member Avatar for man4ish

I have one file with the following tab separated records with four columns.Now I am trying to convert the file into fixed length binary file. How it is possible. in C++. rs149915 29103059 A/G + rs149932 29116347 C/G - rs149933 29123223 C/G - rs149934 29084753 C/T - rs150082 29117038 A/C …

Software Development c++ file-system
Member Avatar for Danny_501
0
130
Member Avatar for YingKang

After user choose ticket type(first class, business, or economy) and desired seat, for example row 2 A, the program will output the form: A B C D E F row 1 * * * * * * row 2 X * * * * * // now user chooses row …

Software Development c c# c++
Member Avatar for YingKang
0
3K
Member Avatar for metal_butterfly

I have a set of attributes such as group id,group name,etc related to a linux process. I want to know how to start a process in linux using C program.Plz do help me.

Software Development c
Member Avatar for ithelp
0
89
Member Avatar for LiBOC

Hi guys, I am new to programming a Rabbit microprocessor 4000. Are there any emulator or simulator program that allows my codings to be tested WITHOUT uploading the codes into the processor and then telnet in to test its response? For now, I am doing something like Command Line Interpreter... …

Software Development c
Member Avatar for Ancient Dragon
0
142
Member Avatar for AnGuRuSO

I've looked around and it turns out there isn't a C++ version of the java instanceof operator. I've also found out that using instanceof is supposed to be bad, for some reason. So let me tell you why I want to use this instanceof operator so badly. I've got a …

Software Development c c# c++
Member Avatar for AnGuRuSO
0
885
Member Avatar for pythonnewbie1

Here is my assignment with the directions. ###Programmer Brian Austin ###FOP ###3/30/09 ###Assignment 8 ###Using a loop, allow the user to input as many student names as they like and store the names in a list. in title format #then write the list of names to a file named NAMES. …

Software Development python
Member Avatar for jlm699
0
227
Member Avatar for scrypt3r

Is it possible to use Process.Start to open a file with a program other that the default program? For instance, like [code]Process.Start("C:\file.txt");[/code], but opening it in word instead of notepad

Software Development
Member Avatar for scrypt3r
0
85
Member Avatar for kiddo39

Hi, how can I open an image and get the R,G,B values of just the first line? [code] from PIL import Image im=Image.open("image.bmp") img=im.getcolors() print img [/code] I've tried im.getdata() , im.histogram, etc.... but again, what I'm looking for is more of R,G,B pixel counts for just the 1st line …

Software Development python
Member Avatar for lllllIllIlllI
0
147
Member Avatar for tillaart36

Hi guys, I have a program where I need to load csv files. I have the problem where some loaded csv files have a comma as delimiter and other csv files have semicolon delimiters. For the functionality of the bigger program I want to use the load function and when …

Software Development python
Member Avatar for tillaart36
0
2K
Member Avatar for joseph19.k

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim j As Boolean j = True Me.Hide() System.Diagnostics.Process.Start("LSBSTEG.exe") While (j = True) If Diagnostics.Process.GetProcessesByName("LSBSTEG").Length <= 0 Then Dim f As New Form4() f.ShowDialog() j = False End If End While End Sub

Software Development vb.net
Member Avatar for joseph19.k
0
109
Member Avatar for student784

Dear, i want add the new item in combobox at run time,whiout databas. i want user enter the new item in comobox. plese help me

Software Development vb.net
Member Avatar for c0deFr3aK
0
1K
Member Avatar for leverin4

I'm having trouble coming up with a solution to this problem. Say you have two byte arrays with numbers stored in them backwards. For example, say you have the numbers num1 = 843234 and num2 = 5430222124 stored in two byte arrays as follows [code=java]byte[] num1 = {4, 3, 2, …

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

hi all , i have two arrays say : a[] = {"abc" , "def" , "ghi"}; b[] = {"abc" , "def" }; now i would like to find out the difference i.e "ghi" ..without using nested for loops.

Software Development c++
Member Avatar for Intrade
0
126
Member Avatar for austinslik

please help me in finding what is wrong with my array... its not sorting thanks, thanks. [code=c] int main(){ int i,j,x,y; int unsort[10] = { 34, 76, 12, 1, 56, 23, 65, 9089, 45, 63 }; //int sort[10]; for (i = 0; i < 10; i++){ cout<<unsort[i]<<" "; } for …

Software Development c++
Member Avatar for austinslik
0
122
Member Avatar for tomtetlaw

what are some methods for open()? i want to know when the end of file is incountered like so: [CODE] def saveFile(filename): fout = open(filename 'w') while not fout.EOF(): fout.write(havnt figured out what to do here but dw bout it) [/CODE] any ideas?

Software Development python
Member Avatar for tomtetlaw
0
114
Member Avatar for chriswellings

hi im new to vb and i have just run into a mind boggleing prob i think i have tried just about everything to get this working but it just wont work my question is when calling a function in my case Charge(nights) i get a litte := after nights …

Software Development vb.net
Member Avatar for chriswellings
0
96
Member Avatar for tomtetlaw

im doing a tut for Tkinter and in it they do this: [CODE]tkFileDialog.askopenfilename()[/CODE] but when i run it i get this error: Traceback (most recent call last): File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 67, in <module> if __name__ == "__main__": main() File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 64, …

Software Development python tkinter
Member Avatar for tomtetlaw
0
609
Member Avatar for danielle23

I am working on a code focusing on Inheritance in C++. I am getting some errors regarding the lines that read: [icode]void bat :: double travel_time (double distance, terrain_type t)[/icode] (lines 56, 68, 113, 125 in animal.h file) The others that begin with void penguin, mammal, and bird have the …

Software Development c c# c++
Member Avatar for danielle23
0
237
Member Avatar for CPPRULZ

I have been trying to make a program that uses derived classes but have run into a problem. I get the error type: " error C2440: '=' : cannot convert from 'const char [16]' to 'char' " when I try and intialize a char array of 255 to "Name Unknown" …

Software Development c++
Member Avatar for Ancient Dragon
0
128
Member Avatar for dilipkk

Hi all, I want to classify movie reviews as positive or negative using machine learning techniques and I want to do this using python. Can any one suggest me how to these things in python. Thanks In Advance :) -Dilip Kumar Kola

Software Development machine-learning python
Member Avatar for dilipkk
0
107
Member Avatar for dayalsaran

hi all, could you please suggest some good websites where I can find tutorials on embedded programming? Thankyou.

Software Development c
Member Avatar for LiBOC
0
102
Member Avatar for arvin2006

Hi everyone! is there anyone has an idea on how to incorporate the biometrics scanner (time in/time out) with visual basic. For example, what would I need (devices, component, software, etc.etc..) such that I can manipulate the data in the biometrics device with visual basic programming and ms access as …

Software Development visual-basic
Member Avatar for arvin2006
0
1K
Member Avatar for lauren316

THis program is supposed to take a number (1-5) from the user. After each number is entered, it should ask how many of each product they want, then show the total for that product and and overall total at the end. I have to use a swich statement. And stop …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
113
Member Avatar for sudeep123

hey guys i am builing a program "alis score". what it does is calculate your GCSE grade and give a score for that...(total subjects divide by 9). I got like max. 9 subjects in my program and consists of three form.. I have finished all the programming but i got …

Software Development visual-basic
Member Avatar for hkdani
0
173
Member Avatar for Blkfxx

Please help, got this code below that i need to add to a program im making and for some reason i cant work out why it doesnt work. [code] program dbase1; uses Crt; const fileName = 'C:\TEMP\NAMES.TXT'; maxRecords = 100; var name : array [1..maxRecords] of String; address : array …

Software Development pascal
Member Avatar for Stib08
0
169
Member Avatar for free radical

Hello, I need to prompt the user if they want to actually execute the program or not. Like, "Do you want to run the program, y=yes and n=no" Then user enters y or n and the program either runs or quits. I was thinking that would be like: [code] char …

Software Development c++
Member Avatar for free radical
0
191
Member Avatar for tripes

how can i retrieve the rgb code from a selected color?

Software Development visual-basic
Member Avatar for hkdani
0
427
Member Avatar for beth2138

[code] Hi, just wondered if anyone could help, this is my college work an i have this bit of code, just wondered if anyone could help me..... im trying to do an addition of 3 array amounts public void AverageProduction() { /*Shows input dialog box asking for user to enter …

Software Development java storage
Member Avatar for VernonDozier
0
90
Member Avatar for sarawilliam

Hi, can you please tell me how to calculate execution time from the listing file shown below [CODE] 1 ; C Compiler for M68HC08 (COSMIC Software) 2 ; Generator V4.5.10.1 - 14 Jun 2007 3 ; Optimizer V4.5.4.2 - 17 Jul 2007 5 xref _printf 32 ; 1 void main(void) …

Software Development c
Member Avatar for Ancient Dragon
0
812
Member Avatar for pandey

I am trying to run one program using GNU compiler GCC 3.2.3. *i am seding u *partial code of my program and the compilation error i am getting. [code=cplusplus] #include <iostream.h> #include <fstream> #include <iomanip> #include <stdio.h> void fileinput(); int m,n, k, r; * main() {} void fileinput() { *int …

Software Development c++
Member Avatar for Ancient Dragon
0
119
Member Avatar for c++noobie

I recently learned a little bit about sorting algorithm efficiency. I looked at the merge sort and saw how it could be implemented using a scratch array to store the result until it was finished. It then talked about in place algorithms but didn't offer one for a merge sort, …

Software Development algorithm c
Member Avatar for c++noobie
0
110
Member Avatar for ahmed_fawzy

hello every one my name is ahmed and i'm studying computer science and i in my 3rd year and i will begin to work on my graduation project......and i learned c# [CONSOLE application]....ADO.NET......ASP.NET......SQL SERVER 2005 [IMPLEMENTAION] .....and i really don't have the idea to work on it ...so i need …

Software Development asp.net
Member Avatar for thoughtcoder
0
120
Member Avatar for shevy24

hello again, can somebody explain to me how I can use c++ idea to make my own DLL DRIVERS or a better tutorial link on that,it's very urgent...i have to submit before this thursday......please make it snapy

Software Development c++
Member Avatar for shevy24
0
51
Member Avatar for I-R

hello ppl im new to C++ i was making a small newbie math quiz.. and was wandering how can i make it that at the end it says how much u got out of 10 or watever this is my code so far [CODE]#include <iostream> #include <cstdlib> using namespace std; …

Software Development c++
Member Avatar for tux4life
0
123
Member Avatar for wasge

Hi. I'm newbie in C language (and in programming in general) and I don't know if this is possible. Imagine you have an integer variable called "number" with a number, and when you executes a function, this function creates a variable called "audio1" and increments number (number ++; ). The …

Software Development c
Member Avatar for wasge
0
229
Member Avatar for tux4life

Can someone please take a look at my code to ensure there aren't any memory leaks or (array) overrides or anything else which could be a bad practice in my code ... Here's my code: [CODE=C++] #include <iostream> using namespace std; template <typename T> void create2DMatrix(int rows, int cols, T …

Software Development c++
Member Avatar for tux4life
0
231
Member Avatar for massivefermion

Hi men could you introduce or even upload a PDF for me to learn x86 assembly language. thanks a lot

Software Development assembly pdf
Member Avatar for ddanbe
0
145
Member Avatar for songweaver

Hey guys, I need help with this program which I have a function that calculates this formula for total house cost and then have an instruction function that asks for the input, then in main has the output. Can anyone tell me waht I am doing wrong, I think I …

Software Development c++
Member Avatar for zalezog
0
158
Member Avatar for neutralfox

Hello, I need your help again guys. I am trying to make a pop up form name setIPInterface (when the user click on a button in the form "ClientInterface"), for a user to input an ip address in a textfield and when the user click on the button "Set", the …

Software Development java
Member Avatar for BestJewSinceJC
0
151
Member Avatar for DanielB2

Hello there people, I'm trying to create a backgammon game using C++ and I am getting an annoying error error C2228: left of '.length' must have class/struct/union Here is the code it is refering to diceArray = new int[4]; for(int i = 0;i<diceArray.length;i++) diceArray = d1; I have declared diceArray …

Software Development c++
Member Avatar for VernonDozier
0
144
Member Avatar for younaskhanpk

You are required to develop a GUI for car show room. The program must use collection to store and process information about cars. The class for car information must have following attributes: 1. Name of car’s manufacturer 2. Name of car’s owner 3. Registration number of car 4. NIC number …

Software Development gui java java-swing
Member Avatar for younaskhanpk
0
100
Member Avatar for samarthashok

Hi i am new to use java. on compling my java file in tomcat server i get cannot resolve symbol symbol : method getAttribute (java.lang.String) location: interface org.w3c.dom.Node out.println(photoElements.item(iElement).getAttribute("id")); and the line he is referring to is for(int iElement = 1; iElement < 10; iElement++) { out.println(photoElements.item(iElement).getAttribute("id")); i am not …

Software Development java xml
Member Avatar for Ezzaral
0
110
Member Avatar for hell_tej

hi I am using NetBeans 6.0 to create my Desktop Application which is swing based Database Application. I want to create a splesh screen in my application using JavaFX but i don't know how to visible created JavaFX. Can Anyone tell me how to create Splesh screen using JavaFX or …

Software Development java java-swing
Member Avatar for peter_budo
0
156
Member Avatar for gh0sts416

I Was Just Wondering is Ther Anyway At All To Reproduce A VB Step Increment in Delphi. VB Example: for i = 0 to 100 step 10 Delphi: ??? Any Help Would Be A Blessing Thanks, gh0sts :)

Software Development delphi pascal
Member Avatar for jsosnowski
0
490
Member Avatar for redmaverick

Hi! this is a lengthy post/I hope its comprehensible basically this program should calculate and display the area of a circle.....but it shows area as 0.0 for every value of radius entered.......I would really appreciate it if someone helps! [CODE]import java.util.Scanner; public class circledriver { public static void main(String args[]) …

Software Development java
Member Avatar for BestJewSinceJC
0
113
Member Avatar for opposition

Hey was just wondering if there was a way I could share the private data with another class, without including it as a object of that class, for example, i have 2 classes, class A and blass B. class 'A' reads in from a txt file and stores its data …

Software Development c++
Member Avatar for daviddoria
0
173
Member Avatar for vijaysoft1

Help me to implement file concept in this problem , i want to save the structure data to a file and Display from file.Please help me. [CODE] #include<iostream.h> #include<string.h> #include<iomanip.h> #include<dos.h> #include<conio.h> #include<stdio.h> #define max 20 struct employee { char name[20]; long int code; char designation[20]; int exp; int age; …

Software Development c++ data-structure
Member Avatar for Lerner
0
108
Member Avatar for turbomen

I have designed an age calculator which given a person's age, works out given a person's age, works out how many days they have lived for, and how many hours they have lived for. My answer: var age, month, day, hour: integer; begin writeln ('How old are you?'); readln (age); …

Software Development pascal
Member Avatar for FlamingClaw
0
190
Member Avatar for sonakrish

Hiiii alll At present am doin a small project in windows application with C# as its code behind language. Now am in problem that i'm not able to connect sql server with my application. Its throwing an error that[COLOR="Red"] "sql default settings does not allow remote connections. connection can not …

Software Development windows-server
Member Avatar for ddanbe
0
77

The End.