132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for WethiL

Purpose of this program take base and two number then multiply that numbers in that base.I used Dev-c Shed compiler for gcc.It takes the numbers and base from text in the attachment.Please help....It doesnt have syntax error but it has logic error... [code=c] #include <stdio.h> #include <math.h> #include <malloc.h> #include …

Software Development c linked-list
Member Avatar for Dave Sinkula
0
113
Member Avatar for nola_Coder

I'm needing to evaluate string infix equations and transform them to postfix equations. I'm following the info here: [url]http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/index.htm[/url] 1.) I'm confused by this line: "compare the precedence of the character with the element on top of the stack" It's asking me to compare the precedence of an operand to …

Software Development java
Member Avatar for nola_Coder
0
108
Member Avatar for claire89

For example i have a stack of chars and i want to pop a word from the stack how do i know whem the word starts and ends inside a stack? I have a program who separates words and i want to eliminate the word from the stack thats repeated …

Software Development c
Member Avatar for MrNoob
0
95
Member Avatar for jsw24

I am trying to add to an empty list in python and I am having trouble. Ill give an example of the code to see if anyone can help me out.... num = 0 mylist = [] while num < 10: num = num + 1 mylist = mylist + …

Software Development python
Member Avatar for masterofpuppets
0
15K
Member Avatar for lewashby

I more than half way through the book "Python programming for the absolute beginner" 2nd Ed. and things are really starting to get hairy. The book has me to write some code just before or after explaining each part. But I have to really concentrate on the paragraph I'M reading …

Software Development oop python
Member Avatar for willygstyle
0
305
Member Avatar for xfrolox

How do i do that when Button5 is pressed it will add 3600 to the textbox1 and if button4 will add 1800 cuz when i do press the button 5 textbox says 3600 its ok but when i press button4 the 3600 change to 1800 i want it to add …

Software Development vb.net
Member Avatar for TomW
0
122
Member Avatar for gokhanxyz

Does the constructor create an instance of a class? or is it a member function of a class that is invoked automatically after the creation of the object is compeleted? same question about the destructor; does it deallocate the object itself or does it have the responsibility of making the …

Software Development c++
Member Avatar for StuXYZ
0
137
Member Avatar for Phil++

Hey, I'm creating a kind of database for a College project that stores values in a txt file. The thing is, it's currently set to "values.txt" and everytime the program runs, it over-writes it. Basically what I want it to do is ask create a .txt file depending on the …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
102
Member Avatar for nola_Coder

Hi... I'm a new user here. I've stumbled across this place on a couple occasions in the past, and it worked out to my advantage when I needed a little help with some coding assignments. My Data Structures class is working on stacks right now, and that is our current …

Software Development data-structure java
Member Avatar for nola_Coder
0
683
Member Avatar for Kruptein

I need to split a float in 2, but the split function doesnt work with floats... What is an alternative for this? If I have 2.4 I want to get 2 and 4 In math you've got a function fpart and ipart, but I don't know this is possible in …

Software Development python
Member Avatar for jlm699
0
262
Member Avatar for Kruptein

okay I tried to make a reverse of finding the num value of a letter bu it returns in an error :f [quote]Traceback (most recent call last): File "/home/darragh/Bureaublad/t.py", line 15, in <module> numtolet('A') File "/home/darragh/Bureaublad/t.py", line 6, in numtolet letters['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] TypeError: list indices must be integers, not tuple[/quote] [code=python]def …

Software Development python
Member Avatar for bumsfeld
0
205
Member Avatar for saikeraku

I want to use a while loop to count up numbers. The output would be something like this: Start: 1 End: 10 Count by: 3 1 4 7 10 Here's my code right now: [CODE] start = int(raw_input("Start at: ")) end = int(raw_input("End at: ")) count = int(raw_input("Count by: ")) …

Software Development python
Member Avatar for cornflakes
0
347
Member Avatar for adobea

i need help with the code below. it doesn't give out the right output. the output is supposed to appear in a symbol table form #include<stdio.h> #include<stdlib.h> #include<string.h> #include<conio.h> struct instruction { char iden[10]; char name[10]; }in; void main() { FILE *fin,*fesym; int v1,v2,val,*cslth,val1,val2,c,d; char *id1,*id2,name2[10],v[10]; int csaddr=0,progaddr,temp1; clrscr(); fin=fopen("pass1.c","r"); …

Software Development c
Member Avatar for MrNoob
0
126
Member Avatar for noi80

Hello. I am currently working on a school project. I need to implement 4x4 matrix multiplication with multi-threads (pthread) doing each multiplication. By studying the assignment description and other codes found online, I was able to get a general idea of what I need to do. However, I am having …

Software Development c++ matrix-multiplication
Member Avatar for noi80
0
150
Member Avatar for Hoey33

If a person has a number between 1 and 100 in mind, you can always figure out what this number is by asking no more than 7 questions “Is your number the same, smaller than or equal to x?” where x is to be determined. The trick is to a …

Software Development c
Member Avatar for MrNoob
0
126
Member Avatar for MrNoob

hey i was reading some stuff about windows i was wondering if file is loaded at virtual memory and let's say we load many files at once wouldn't that cause thrashing ? or exucatables are loaded into RAM then copied to virtual memory of hdd ?

Software Development c
Member Avatar for MrNoob
0
158
Member Avatar for hiprakhar

Hi this is the code for life, universe and everything problem, where the program stops only when the user inputs the number "42" I tried to understand the problem, but could not make it that how the program stops at exactly 42. Any help would be extremely appreciated. [CODE]#include <iostream> …

Software Development c++
Member Avatar for hiprakhar
0
131
Member Avatar for cjjack88

Hi, i am new in c++. I am doing an assignment where I need a menu for user to select the operation. My menu coding is as below. [CODE] int main() { myCarSystem b; char ch; string temp1, temp2; double temp3, temp4; while(1) { cout<<endl<<endl; cout<<" My Car System Operations …

Software Development c++
Member Avatar for cjjack88
0
165
Member Avatar for sparksterz

I've used IComparer before but I seem to be getting an odd issue where I'm not getting the second argument to my Comparer function. [CODE] internal class FreePtrCompare : IComparer<File> { int IComparer<File>.Compare(File x, File y) { int a = x.fsPos; //Free space pointer of file 1 int b = …

Software Development
Member Avatar for sparksterz
0
143
Member Avatar for Web_Sailor

Hi.. How do I skip the first line of a text file. I am not using getline() so I think I cannot use ignore() function. Is there any other way to ignore first line ? [CODE] ................. FILE *in; char line[1000]; char *token; in = fopen(argv[1],"rt+"); if( in == NULL) …

Software Development c++
Member Avatar for Web_Sailor
0
8K
Member Avatar for largedimples

Will someone please check this and tell me if I did this problem correctly. The question is presented bold; I also need help with push. I couldn't figure out how to complete the definition or routine for it. I am not very good at big o notation to determine if …

Software Development c data-structure
Member Avatar for Tom Gunn
0
784
Member Avatar for Leod58

In VB.Net 2008 express: I am looking for a way to setup a screen that contains a picture and some information. Hold in place for 10 seconds, change the picture and information and re-display the screen. The information comes from a SQL Server database. I there a way to setup …

Software Development display vb.net
0
94
Member Avatar for OldQBasicer

In the mid-'90s I wrote in Quick Basic some lab simulations for science classes I was teaching. I want to rewrite them in VB and thought that I could just paste old QB code into VB... not so, of course. I want to know how to read data from within …

Software Development data-science visual-basic
Member Avatar for OldQBasicer
0
983
Member Avatar for meddlepal

I'm writing a program that transfers files around a network using UDP. One of the things I am trying to do is break down files into small byte arrays that can be put on packets and transferred. But it doesn't work... It doesn't seem to be reading the bytes correctly, …

Software Development file-system java
Member Avatar for quuba
0
615
Member Avatar for peacerosetx

Greetings all, Peace. I have a problem. I need to download visual c++ 2005 express edition (long story why this one). I cannot find out where to get the correct download. I found this [URL="http://www.microsoft.com/downloads/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en"]here[/URL] this is for the Microsoft® Visual Studio® 2005 Express Editions Service Pack 1. However, when …

Software Development c++ visual-studio
Member Avatar for peacerosetx
0
207
Member Avatar for klackey19

hey, for a class project I have to write a parser for a grammar that my professor is giving us. I have broken it down into a very small part and want to get that working before parsing an entire string. In this bit of code, the string to be …

Software Development c++
Member Avatar for klackey19
0
116
Member Avatar for lewashby

I more than half way through the book "Python programming for the absolute beginner" 2nd Ed. and things are really starting to get hairy. The book has me to write some code just before or after explaining each part. But I have to really concentrate on the paragraph I'M reading …

Software Development oop python
Member Avatar for vegaseat
0
120
Member Avatar for kustrle

OK, I made two Windows Forms Applications (Look images below) Step 1: [url]http://img245.imageshack.us/img245/8227/78636770.jpg[/url] Step 2: [url]http://img408.imageshack.us/img408/808/48168956.jpg[/url] Well, as you see at "step 1" there is some text (blured) and the Next button in bottom left corner. I would like to know how to make that when I click Next button …

Software Development c++
Member Avatar for evilguyme
0
134
Member Avatar for topest1

Hello all, I am developing chat application(not applet) in java, I want it to be able to run over internet I have tried it in LAN with Socket programming I found something [URL="http://javaeye.wordpress.com/2008/05/04/clientserver-communication-using-tcp-sockets/"]here[/URL] It is working fine But how can i run it over internet:?: :confused: If i [COLOR="Red"]tcpserver.java[/COLOR](or tcpserver.class) …

Member Avatar for topest1
0
184
Member Avatar for radskate360

Hey newer programmer here need a bit of help. The direction are bascially to read in from a file some words in the form of a paragraph with no punctuations and no commas etc. The file will look similar to When promulgating your esoteric cogitations and articulating your Let your …

Software Development c++
Member Avatar for phanirampally
0
165
Member Avatar for Dazaa

Hi, I am writing a reverse function, to reverse a string, but when I am compiling I am getting an error, and I know its from the malloc line of code. This is the first time i have used malloc, but I want the function to work for any length …

Software Development c
Member Avatar for Dave Sinkula
0
148
Member Avatar for mayanktalwar

hey i am trying a code...ad in that i am using arayrs to store a sequence of data..i have writen this in he code x[100000] and it say too large arrays as a error......now how o deal with this..and how to store such a large sequence of data..without file handling...... …

Software Development c++
Member Avatar for mrnutty
0
115
Member Avatar for neithan

I want a vector<string> with some values by default. I wanted to do something like char **strings = {"bla", "blo"} How to do it with vector<> without using repeated push_backs?

Software Development c++
Member Avatar for Dave Sinkula
0
611
Member Avatar for Kruptein

Is there a built-in function to give the value of a letter? what I mean is a=1 b=2 c=3 d=4 e=5 f=6 ... something like letval(a) would give me 1

Software Development python
Member Avatar for Kruptein
0
9K
Member Avatar for cfuilip

our lecturer want us to find a topic which we need to present next week... the program must include file handling... any idea for the topic ... and kindly show the example

Software Development c c# c++
Member Avatar for Shillz
0
82
Member Avatar for jmark13

So the Goal is: given a Nested list that contains 3 elements in each element in the nest, i.e. L1=[[1,2,3],[4,5,6],[7,8,9],[10,11,12]] how can I take a flat list, i.e. L2=[1,2,3,4,11] where if the elements within the nested list, i.e. L1[0], L1[1], etc. intersect with any single element in L2, the element …

Software Development python
Member Avatar for lukerobi
0
193
Member Avatar for majestic0110

Hi all, I hope you are well. I am trying to compile a java file using terminal in Ubuntu, but I am getting the following error message: [QUOTE]1. ERROR in StringComparisons.java (at line 20) System.out.printf("String a = %s String b = %s \n", a,b); [/QUOTE] As you can see, I …

Software Development java java-netbeans ubuntu
Member Avatar for quuba
0
241
Member Avatar for StaticX

Hi, I am trying to write a simple program that stores a user input in a c-string,and will then print out each character (I)diaganolly across screen and (II) each character on a new line. The problem im having with this,and with c strings entirely,is that it keeps printing out random …

Software Development c c# c++
Member Avatar for StaticX
0
113
Member Avatar for manoj_582033

Hi friends I am working in vb.net ,there is i have a form in which i have a datagridview,& a column of checkbox in tat datagridview,when this datagridview becomes load, that checkes theb employee is present or absent if present so the check box of that perticular row must be …

Software Development vb.net
Member Avatar for TomW
0
192
Member Avatar for tux4life

A small function which reverses a c-string by just swapping the elements :) ... Usage:: [CODE=C++] char[] str = "hello"; reverse(str); // str now contains "olleh" [/CODE]

Software Development c c# c++
Member Avatar for Nick Evan
0
1K
Member Avatar for karpaklu

hai dani, i have a problem with listing the contents of file in another directory. my default path is in /home/pallu where my file called DirProg script exists , now i want to find any file which starts with a or A in a dir and store the content in …

Software Development file-system shell-scripting
Member Avatar for cfajohnson
0
86
Member Avatar for zmwg

I'm writing a program that takes input for an an array. It then uses a loop to replace the values in another array that has preset values with the values from the array that received input. When I try to move the values though...well let's say arrayA is the one …

Software Development assembly
Member Avatar for zmwg
0
130
Member Avatar for revski

Hi, i am trying to add Label captions and Combobox text values to a memo when the button is clicked, and keep recieving the error 'Incompatible Types TString and TCaption' when i try to add values from labels and comboboxes Im using the code like this: [code]Memo1.Lines.AddStrings(Memo2.Lines); Memo1.Lines.AddStrings(Memo3.Lines); Memo1.Lines.AddStrings(Edit1.Text); Memo1.Lines.AddStrings(Label1.Caption);[/code] …

Software Development pascal
Member Avatar for pritaeas
0
416
Member Avatar for mcek

I'm writing a program that will download pfd files and collate them. However the urls I get are a bit weird. They look like this: [code]http://links.ealert.nature.com/ctt?kn=105&m=34136651&r=MjA1NzczMzM4NgS2&b=0&j=NTkwOTY5NjQS1&mt=1&rt=0 [/code] I'm using URLConnection and BufferedInputStream, but no data is read from the stream (read() returns -1 at the first try). If they are …

Software Development html-css java pdf
Member Avatar for mcek
0
549
Member Avatar for revski

Hi, i am trying to get my application to check, which radiobutton is selected, and then perform instructions based on the selection. but i cant seem to use a IF and ELSE procedure to do this, can somebody help me out as to what procedure i should use.

Software Development pascal
Member Avatar for revski
0
260
Member Avatar for Madzts

Hi. . can any one help me in converting infix to postfix. . i do not know what is wrong in my code. . help!!!plz [code] #include<iostream> #include<string> #include<conio.h> #include<stdio.h> using namespace std; void main() { char stack[10]; char input[10]; char output[10]; char plusminus,multdiv; int a; cout<<"\tInput an infix expression:"; …

Software Development c++
Member Avatar for Afaq Haider
0
411
Member Avatar for wilen

i just want to ask how can i add a another value in this code this is for educational purpose and im not familiar with asm i know java programming but this is far different mov eax,[000003E8+100] crash my system honestly i dont know how to add in asm any …

Software Development assembly
Member Avatar for wilen
0
182
Member Avatar for bords

Hello....Im making a vc# proj...I just want to know what is code on opening a new form while closing my current form....tanx

Software Development
Member Avatar for ddanbe
0
110
Member Avatar for arasucute

give me the perfect program like that output.[code]#include<stdio.h> #include<conio.h> void main() { int i,j; int a=15; int b=30; clrscr(); for(i=0;i<=a;i++) { for(j=0;j<=b;j++) { if(i==0||i==2||i==a) { if(i==0||i==2) if(j==0||j==b-4||j==b) printf("+"); else printf("-"); if(i==a) if(j==0||j==b) printf("+"); else printf("-"); { if(i==1||j==14) printf("mywindow"); if(i==1||j==28) printf("X"); } } if(j==0) if(i==1||i==3||i==4||i==5||i==6||i==7||i==8||i==9||i==10||i==11||i==12||i==13||i==14) printf("|"); else printf(" "); if(j==b) if(i==1||i==3||i==4||i==5||i==6||i==7||i==8||i==9||i==10||i==11||i==12||i==13||i==14) …

Software Development c
Member Avatar for yellowSnow
0
100
Member Avatar for neithan

I'm new to C++, i'm learning with the help of Stroustrup Principles of C++ book, with this forum etc I'm doing console apps that treats and operates with numbers and so on, as i see you do the same, at least that's what i see people asks in the forum. …

Software Development c++
Member Avatar for neithan
0
202

The End.