132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for B.Y

Well, I happened to download Dev C++ on my laptop today ... I jus wrote a simple "Hello World" program .... but when I compile & run ... compilation is successful but the result window flashes & disappears ... Can anybody plz help me with this?????????? Also, how can I …

Software Development c++ ide laptop
Member Avatar for ~s.o.s~
0
96
Member Avatar for guy40az

When you output data to the screen do you recommend using cout or printf, I must admit when I first starting using C++ last week I really liked cout. Now I like printf better, It seems easer to format the output like you need it. I am not really sure …

Software Development c++
Member Avatar for ~s.o.s~
0
527
Member Avatar for jamello

Hi there folks. I am a wannabe in Java. Can you guys help in recommending books (e-books preferably) I can get to jumpstart me. I have got quite an experience in other languages like vb.net and c# so where or how do I start? Thanks for the help!

Software Development java vb.net
Member Avatar for Cerberus
0
102
Member Avatar for mrjoli021

I have an Excell file that I need to read to be able to bring the cells into a struct. I have tried using fstream and I get garbage. How can i go about this??

Software Development c++
Member Avatar for iamthwee
0
91
Member Avatar for nemo

Hi, can some one please help me run this code. i have another class named Course, that complied without error. Now in this code i am trying to take user inputs to find resulting gpa in a course. the following code does not compile, please help. [code] import java.util.*; import …

Software Development java java-swing
Member Avatar for masijade
0
157
Member Avatar for amelie

Hi All,I'm using a C++ client and server of different language.Using sockets for communication.After 10 - 15 hours of successful exchange of information a problem has occurred.Client seemed to send messages to server, but server didn't respond.After few hours, the client was killed.Suddenly, the server started dumping the messages towards …

Software Development c++ client-server
Member Avatar for amelie
0
198
Member Avatar for Lance Wassing

Hello Everyone, My question is pretty basic, i hope. Basically, what i have is an extremely large text file, which acts as a flat file database... in essence. Text file formatting looks like this: CLIENT CODE | CLIENT NAME| CLIENT ADDRESS 1 ... This pattern goes on for about 23 …

Software Development c++ file-system gui
Member Avatar for WaltP
0
134
Member Avatar for jan1024188

Hello, I wanna know if there is any way to make a window transparent using Win32 API Thanks in advance, Jan

Software Development api c++
Member Avatar for jan1024188
0
142
Member Avatar for pavani2006

ehat is the differencde between error,checked exception and unchecked exception?when occurs at what time?compile time or runtime?which of them can be handled and what not handled?example?

Software Development java
Member Avatar for masijade
0
140
Member Avatar for manujpro

Hey Guys... Can anyone help me get a java code of OREGON TRAIL PLEASE!!!PLEASE

Software Development java
Member Avatar for vinod_javas
0
1K
Member Avatar for XxBigxBossxX

I'm trying to code the game of Simon(try to mimic the computers choice of four buttons) for a project. I'm kind of stuck because the computer generates a random choice, but I need to completely halt and wait for the user to enter his choice.(Done with the aswd keys; either …

Software Development c
Member Avatar for John A
0
77
Member Avatar for CRD

I'm using SAMS Book "Teach Yourself "C" in 21 Days" sixth edition. useing the Editor/Compiler that came with the Book. DEV C++ The saubject program that I'm trying to compile is Print_it.c it prints files w/line numbers and when the compiler gets to the first line with "STDPRN" it stops …

Software Development c++
Member Avatar for CRD
0
242
Member Avatar for dav_yip

I have a problem is phasing the extended charactors in TK(). Any help would be apreciated. a='itself ‘a parody’.' >>> a "return" 'itself \x91a parody\x92.' >>> def display(data): root = Tk() scrollbar = Scrollbar(root) myTextWidget= Text(root,yscrollcommand=scrollbar.set) myTextWidget.insert(0.0, data) scrollbar.config(command=myTextWidget.yview) scrollbar.pack(side=RIGHT, fill=Y) myTextWidget.pack(side=LEFT, expand=0, fill=BOTH) >>> display(a) I ended up geting …

Software Development python
Member Avatar for katharnakh
0
153
Member Avatar for negbballer54

Hey, I'm writting a program in C that is supposed to be a simple connect four game. I ran into problems when I tried to assign my array connects to a set value. The compiler gave me the error, Invalid indirection. Heres a little bit of the code where the …

Software Development c++
Member Avatar for negbballer54
0
103
Member Avatar for Prog.Learner

[COLOR=#0000ff]Hi folks,[/COLOR] [COLOR=#0000ff]I get this error message on this line when I try to count the amount of characters in a string. I wanted to count the characters so I can manipulate how the output is shown. It tells me no argument is made whereas I feel that the particular …

Software Development c++
Member Avatar for John A
0
248
Member Avatar for jerryseinfeld

Hi I am a new c+ student. I can make only simple calculator or find some average number programmes.... But now I have though one for me :( I need a program to find word in nxm puzzle and print its location... words may have been located directions.. I mean …

Software Development c puzzle
Member Avatar for Lerner
0
192
Member Avatar for Sturm

I am using debian linux and I cannot seem to get sdl_ttf working. It compiles fine but the program quits due to error checking in the code. It returns false at the ttf_init() part. Do not know if this makes a difference but I got sdl and ttf via apt. …

Software Development c++ debian open-source
Member Avatar for John A
0
2K
Member Avatar for grunge man

why isnt this program working? [CODE]#include <iostream> #define SIZE 10; using namespace std; main () { char Black,Brown,Red,Orange,Yellow,Green,Blue,Purple,Grey,White; int a; int Color[10]; { int i, array[size]; for (i = 0; i < size; i++) { array[i] = i; } } cout<<"enter the color of the stripe"<<endl; cin>>Color[i]; color[0]=Black; color[1]=Brown; color[2]=Red; …

Software Development c++
Member Avatar for Salem
0
99
Member Avatar for Shaabangbang

hey guys, uhh ok remember the old addressbook problem? well i solved it :cheesy: ! but now my prof gave us the same assignment but we have to do it as linked lists.. and i dont know how to use linked lists quite well yet.. this is my original code …

Software Development c data-structure linked-list
Member Avatar for Clinton Portis
0
101
Member Avatar for maverick786

Can anyone help? here is my code: passing an array base list to a function and search for an item. [code=c] #include <iostream> #include <fstream> const int MAX_LENGTH = 10; using namespace std; class IntList { public: IntList(); void GetList(ifstream &data); void PrintList(); int LengthIs(); private: int length; int values[MAX_LENGTH]; …

Software Development c++
Member Avatar for WaltP
0
110
Member Avatar for ganbree

Ive been writing a DirectX application for some time and there has been a bug that I have been unable to fix, but this is to do wth the Windowsx API. I can run my DirectX application (Fullscreen) fine, but when I Minimise it then restore, fullscreen mode does not …

Software Development api c++
Member Avatar for ganbree
0
211
Member Avatar for debargha

hello, everybody.... i am new to java programming........so my question may be childish i want to ask that.....in java all methods and variables are public... by default(opposite to c++).so why we are writing public static void main(String args[]).main method can be accesed from anywhere even if i dont write public …

Software Development java
Member Avatar for debargha
0
134
Member Avatar for shishir

hi everyone i am new to java and currently working on a project in jsp and ejb. everytime i try to run the program i encounter an error that package javax.ejb does not exist. i have jdk1.3 and j2sdkee 1.3 installed and have added j2ee.jar present in lib of j2sdkee …

Software Development java java-jsp
Member Avatar for jwenting
0
1K
Member Avatar for qwest21

i wrote a Chat program and my drop down menu doesnt appear in the front...i used toolkit and Flow layouts to drow the GUI.. need help badly thanks!!!!!!!

Software Development gui java
Member Avatar for qwest21
0
114
Member Avatar for fmlyman

Yes, this is homework. This is my first course in programming and I am having a problem translating what I know I need to do into code. I basically need to write a progam that reads a person's name in the following format: first name, then middle name or initial, …

Software Development c++
Member Avatar for John A
0
127
Member Avatar for maxcell

Hello, I'm still new to linux, and im looking for some helpful ideas. What I'm trying to do is I need to write a script that will take a text file, which has paragraphs and create another text file which extracts every individual word from that orignal text file and …

Software Development shell-scripting
Member Avatar for ghostdog74
0
86
Member Avatar for player123

hi there! i cant figure out how i could program a little function in assembly using the PCSPIM environment. the function i want to program with recursion is: func(n) = func(n-1) + (n-1) this is similiar to the fibonnaci function which is: fib(n) = fib(n-1) + fib(n-2) and the code …

Software Development assembly
Member Avatar for player123
0
85
Member Avatar for scru

I have an event handler for the Leave event of a text box, that checks that the user has entered an invalid value. It displays a message and tells the user that the value entered is wrong. But here's the trouble: after if displays the message, it still allows the …

Software Development
Member Avatar for scru
0
139
Member Avatar for abhinav.sharma

[CODE]#include <iostream> using namespace std; int main() { int a; cout<<"Enter a number"; cin>>a; [B]if(a=5)[/B] { cout<<"Five"; } else { cout<<"Not Five"; } } [/CODE] When I use the assignment, the result is always "five". I understand that a is assiged 5, but there is no statement to check for …

Software Development c++
Member Avatar for abhinav.sharma
0
108
Member Avatar for Vrb

I need a little help, i want to buy a book abou C#, so if anybody has some prepositions it would be very helpful for me. I saw C# bible, and some other books, wht do you think which one is best? I know a litle bit of programing in …

Software Development
Member Avatar for pygmalion
0
343
Member Avatar for JBI_UK

Hey, I am currently working on a web browser called JBI Explorer (might of heard of it on here) and I am wanting to finally change the User Agent, I use VB 2005. Is there any way of doing this without moving to a different tool like C. If anyone …

Software Development vb.net web-browser
Member Avatar for waynespangler
0
116
Member Avatar for anousha

hi guys im an IT student an i have a very important assignment to return in 2 days time and im stuck with it i dnt know what to do. the assignment is as follows. Write a complete class definition in java for the following.your answer must include at least …

Software Development java
Member Avatar for staneja
0
93
Member Avatar for RAGHAVENDRAS

Hi Friends, I am writing a script to compare two files put in two arrays and I expect the those elements which are found in array2 that are not in array1. here there are 2 files Perf.txt which contains some names, and Neu.txt contains some names which are common as …

Software Development perl
Member Avatar for Sandi
0
81
Member Avatar for kartik911

Hi i am a beginner in programming C++ language and am having a bug in the doubly linked list program. The problem is while printing the list in fwd direction the prgm prints the contents just fine. however while trying to print the list in reverse direction nothing gets printed. …

Software Development c++ linked-list
Member Avatar for kartik911
0
138
Member Avatar for RaCheer

Hello! I have written a program that lets the user enter numbers and they are then sorted into ascending order. The number of times each number occurs is also displayed. I previously wrote it using a selection sort but could not get the times each number occured to display correctly. …

Software Development c++
Member Avatar for Lerner
0
107
Member Avatar for zaacze

hi! am supposed to make a program, where information are in a structure and should be able to store up to 100 records.. i was able to make the add and display feature.. but now, i am having a hard time with displaying a particular record given the kind.. well, …

Software Development c
Member Avatar for WaltP
0
113
Member Avatar for CRD

I am trying to print to my printer which is on LPT1 from a C program Am using dev c++ which came with Teach Yourself C in 21 Days here is the code that is supost to print th my printer which is a HP Photosmart 7350. [code=c] /* Demonstrates …

Software Development c++ printer
Member Avatar for CRD
0
316
Member Avatar for Jmosure

hello everyone I am trying to create an array that will prompt the user for 5 numbers in the array and simply display them. but I keep geting this error message saying i have too many arguments in my function... please help. here is my code: [code=c] #include <iostream> using …

Software Development c++
Member Avatar for Jmosure
0
798
Member Avatar for SHWOO

Can anyone explain why I am not getting any output from this code [code] int _tmain() { String *sym[] = {S"BA", S"CA", S"MS"}; int shares __gc[] = {25, 100, 30}, price __gc[] = {25, 31, 37}; Random *randomCurVal = new Random(); int purVal, curVal; int totalPurVal = 0, totalCurVal = …

Software Development asp.net c c# c++
0
80
Member Avatar for Hellodear

Hi, I am a newb in C#. I want to make programming in C#. What is the pre requisites? Somebody told me that we need to download Microsoft framework SDK and install it on OS. Is it all for us in this case? Hope somebody would respond, Hellodear.

Software Development c#
Member Avatar for Lardmeister
0
137
Member Avatar for rowly

Hello guyz i'm trying to write a stack program in C... Push one character onto the stack. Your function should have the prototype: void push(POINTER *Top,stackitem a); 2. Push a string of characters into a stack. Your function should have the prototype: void push_string(POINTER *Top,char *string); Your implementation should make …

Software Development c
Member Avatar for rowly
0
1K
Member Avatar for nnhamane

Hello there..I am trying to build program on sudoku in 'C'.Can anyone help me or want to take part in my project,If yes then plz send me mail on: [U][B][I]email removed by moderator[/I][/B][/U]. So anyone interested plz mail me.Thx..

Software Development email
Member Avatar for scru
0
582
Member Avatar for maverick786

I have a program that creates a linked list and is required to count the number of elements in the list. This is what I have thus far. [code=c] #include <iostream> using namespace std; struct listrec { int value; struct listrec *next; }; listrec e1,e2,e3; int listsize(listrec); struct listrec* temp; …

Software Development c++ linked-list
Member Avatar for maverick786
0
144
Member Avatar for liz517

This is what I have. I know I am missing something can you help [code = python]import string def main(): print "This program replaces 4 lettter words in a file with xxxx" # get the sequence of words from the file fname = raw_input("File to analyze: ") text = open(fname,'r').read() …

Software Development python
Member Avatar for sneekula
0
124
Member Avatar for wavyaquaeyes

Hi All, I have been working on this all night. I have to convert degrees to celcius and vice versa. I keep having 2 errors. "possible loss of precision". I am new to java, but also I think I am having serious mental issues at this point. Here is my …

Software Development java
Member Avatar for wavyaquaeyes
0
161
Member Avatar for aPPmaSTer

I made a dynamic 2D array using 'calloc', but when I try to fill it, I get the following error: [INLINECODE]name lookup of `j' changed for new ISO `for' scoping [/INLINECODE] Here's the part of the code where it stops: [CODE=c] for(int j=count;j<prod;j++); { ct[j][0]=50+(j-count+1)*offset; //error here count++; } [/CODE] …

Software Development c
Member Avatar for aPPmaSTer
0
212
Member Avatar for muggle_spy

[COLOR=purple][B]I NEED HELP WITH THE 4-QUEENS PROBLEM.:rolleyes: [/B][/COLOR] [B][COLOR=#800080]I HAVE TO BUILD A PROGRAM FOR 4 QUEENS SOLUTION USING C.......:?: [/COLOR][/B] [B][COLOR=#800080]FOR MY DATA STRUCTURE PROJECT.[/COLOR][/B] [B][COLOR=#800080]CAN ANY1 HELP ME WITH THE SOLUTION FOR THIS....... I NEED THE PROGRAM......[/COLOR][/B] [B][COLOR=#800080]THE QUESTION IS THAT: [/COLOR][/B] [B][COLOR=#800080]U HAVE A 4*4 CHESSBOARD. PLACE …

Software Development c data-structure
Member Avatar for muggle_spy
0
148
Member Avatar for FC Jamison

Last quarter our last assignment was to create two programs that gernerate silly sentences from words contained in a file. I was able to create the program with a map, but have no idea how to do it with a hash map. Since it was the end of the quarter, …

Software Development c visual-studio
Member Avatar for iamthwee
0
189
Member Avatar for FlyingRedneck

hi everyon i'm new and i need some help. I've been taking a class in C++ and i downloaded the C++ 2005 express edition to my laptop to work on it at home, and the header file iomanip.h doesn't work. I bet this is probally an easy fix but help …

Software Development c++ laptop
Member Avatar for John A
0
103
Member Avatar for Riazansar

dear people! i have made a program to calculate the smallest and largest of numbers trough a reference funtion. i am stuck in a very small part. in main function i should do like if somebody dont enter anynumber or enter a number bellow 0 the program should say NOTHING …

Software Development c++
Member Avatar for John A
0
127

The End.