132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for moroccanplaya

i cant break out of this loop its driving me crazzy!! [CODE] while (1) { printf("please type in the path for the file you want to archive\n"); scanf("%s",&original_file); open_pointer = fopen( original_file, "rb"); original_pointer = fopen(original_file,"rb"); copy_pointer = fopen( archive_name,"ab"); if (copy_pointer NULL) { printf("\n copied successfull"); puts("\nenter x to …

Software Development c
Member Avatar for moroccanplaya
0
155
Member Avatar for shinsengumi

Hi everyone! I'm transferring my C program that I created from Linux to WindowsXP. I would like to know what I need to download/install in Windows in order to compile and successfully run the program? Also, will I need to change some parts of the source code? I used socket …

Software Development c microsoft socket-programming
Member Avatar for Ancient Dragon
0
2K
Member Avatar for abuka

I've got this header and cpp.And I would like to insert this operator overloading to this .h and .cpp file. but I always got errors. Operator OVERLOADING : [CODE]istream& operator>>(istream& in, Focista& jatekos) { cout << "Add meg a focista tulajdonsagait. " << endl; cout << "Nev: " << endl; …

Software Development c++
Member Avatar for abuka
0
236
Member Avatar for Plastix!!

can anyone upload a simple modular example in c (They would include .c files and .h files please) i am currently working on modularization but i have a problem when it comes to the main.c and main.h. . . its an assignment. i just want to reference and work on …

Software Development c++
Member Avatar for ravenous
0
71
Member Avatar for sayyad786i

hi, I want to create a pdf from excel sheet using visual basic 6.0. Can you people help me describing or sending me a ready codes regarding the same. Thanks with regards, Sayyad H.A. India.

Software Development pdf visual-basic
Member Avatar for pbunkers
0
4K
Member Avatar for hanttaha

[CODE]//I have a problem with my program, // the function rank to find rank of a matrix //cannot return the result //somebody help me to correct it! #include<iostream.h> #include<math.h> #include<iomanip.h> class matrix { int n,m; double A[6][6]; public: //..... friend int rank(matrix); }; int rank(matrix B) { int i, j, …

Software Development c++
Member Avatar for ravenous
0
3K
Member Avatar for kevintse

[CODE]#include <iostream> using namespace std; const char* foo() { return "Hello"; } const char* bar() { const char* s = "world"; return s; } void print(const char* s) { cout << s << endl; } int main () { cout << foo() << endl; print(bar()); return 0; }[/CODE] Can I …

Software Development c++ storage
Member Avatar for kevintse
0
129
Member Avatar for coroll

Hi, I want to put color piker in a form. Does visual studio 2008 provide such a tool or does any one know how to put a color piker. Please help me. Thanks

Software Development visual-studio
Member Avatar for coroll
0
117
Member Avatar for CanofCornInfini

Hello, I am new to C and not really sure how to do this. This program extracts and prints the rightmost digit of the integer portion of a float, and I need to convert it but I'm not sure how. [CODE]#include <stdio.h> void main (void) { float num; int rightdigit; …

Software Development c
Member Avatar for Shankye
0
155
Member Avatar for skorm909

i was wondering how i can make it so i do something like: [CODE]cout << "Press any key to continue." << endl;[/CODE] what kind of code do i need to put it so that the program dosnt do anything until someone presses any key on the keyboard?

Software Development c++
Member Avatar for vsvivek796
0
229
Member Avatar for salty11

I need some help with this program, im obviously not so good with this stuff, but since this is the only one i haev left to make i thought i would ask some of you guys for help the problem is: Write separate programs to do the following: 1) Convert …

Software Development algorithm c++
Member Avatar for mrnutty
0
255
Member Avatar for Tiancailee

Hi i am mostly done with my assignment where u have to make a simple object viewer. one of the requirements require you to use multiple instantiation of objects from the same class which i do not know what to do about it. This is my code for main.cpp [code] …

Software Development c++ opengl
Member Avatar for Tiancailee
0
176
Member Avatar for bangor_boy

Hi, I have write a method to save amounts, the method has 1 argument which is where the amounts returned by a toString should be saved as text. I have no idea what to do and my searching on google or text books has been not helpful :( [CODE]public void …

Software Development java
Member Avatar for jon.kiparsky
0
128
Member Avatar for kapilsolanki84

i am using devc++ compiler. using c code created the window but its blank . now to write data something on it. like (say)write(create) the output of my own program into that window.in c. guide me pl.[CODE]. in this i have not inserted my own code. this code is used …

Software Development c data-structure queue
Member Avatar for WolfPack
0
217
Member Avatar for cthoes

why we use static in main and String[] args as arugment of main [CODE] public static void main (String[] args) [/CODE] can u explain me following static member functions should not refer to objects of that class. But we can access static functions through classname itself

Software Development
Member Avatar for Mitja Bonca
0
152
Member Avatar for JeremyJ

Hi, I need to download URL's to a file using C++ code. Does anyone know of a library, compatible with Windows, that will do this? I know about CURL, but after spending days trying to configure LibCurl using Cygwin I'm ready to give up. A friend has been able to …

Software Development c++ file-system
Member Avatar for JeremyJ
0
930
Member Avatar for dspjm

What's wrong with the program? It went wrong when i print the numbers in the lists. After i prints the last number, it didn't stop, and the program went into wrong memory. Eager for your answer: [CODE] #include <stdio.h> #include <malloc.h> #define NULL 0 typedef int ELEMNT_TYPE; typedef struct node …

Software Development c
Member Avatar for ckoy
0
126
Member Avatar for rocktea

i want express graph as adjacency matrix but 2 element of graph have more 1 street should element of adjacency matrix have more 1 value .i don't know express ? who know guidance for me?

Software Development c++
Member Avatar for alwaysLearning0
0
105
Member Avatar for JDenham377

Hi, I am trying to disable a button until a condition is met in my program. I have two numeric up down boxes and a button, but I want to have the button disabled until the two numeric up down boxes have a number higher than 0 in both of …

Software Development gui
Member Avatar for Mitja Bonca
0
945
Member Avatar for Ossehaas

Ok here is the problem, I got a 2 column page and I need the background color of a fo:block-container to flow like this: 1. Left column: left side page to center page 2. Right column: center page to right side page 3. Top: where block-container starts 3. Bottom: bottom …

Software Development xml
Member Avatar for Ossehaas
0
522
Member Avatar for bklynman01

I'm using VB.net 2008... Within the program, there is a button that opens a file inside of a second form ([ICODE]DocViewFrm[/ICODE]) and it works fine the first time around. Within this new window, there is a button that uses [ICODE]Me.Close()[/ICODE] to close the window and return to the main window. …

Software Development vb.net
Member Avatar for bklynman01
0
202
Member Avatar for mikev9359

I am trying to change a program from an IF loop to a WHILE loop. The program started in Ch.05. It was modified in Ch.06 to an IF loop & now must be changed to a WHILE. I got it down to 2 errors and am totally lost. Maybe a …

Software Development java
Member Avatar for jon.kiparsky
0
175
Member Avatar for hadoque

Hi I'm trying to extract the exponent and mantissa from a float. It seems that the most forward way would be to read the bits of the number, according to IEEE 754 ([url]http://steve.hollasch.net/cgindex/coding/ieeefloat.html[/url]). So I need to do bitwise operations to float variable. According to what I have found on …

Software Development c
Member Avatar for hadoque
0
170
Member Avatar for iammet

I NEED TO KNOW HOW TO GET THE CHOSEN RADIO BUTTON.MAYBE THE COUNTERPART OF getText FOR RADIO BUTTON... I HAVE ONLY MALE AND FEMALE.

Software Development java
Member Avatar for ajst
0
356
Member Avatar for ogsirus

Hi Everyone, Ive been messing around the OLEDB in C#, What im trying to do is create a program that would read from a Access Database, and then the user has the right to add,edit and delete a records. So far i can get the Database to display and are …

Software Development dataset microsoft-access open-source
Member Avatar for ogsirus
0
776
Member Avatar for yardi

Can anyone be kind enough to teach me how to create programs that are sport related. Such as a program for a football/soccer league that does the following: Store players names, numbers, team, goals scored, etc. Show goal difference, league standings of teams. Be able to log information such as …

Software Development c++
Member Avatar for ravenous
0
125
Member Avatar for gedas

hey guys, i have been asked to create a little web service. i have a very little understanding of how web services work but as far as im told is that all of my GUI has to be on client side and the logic of the program needs to be …

Software Development client-server gui java
Member Avatar for gedas
0
108
Member Avatar for skylight25

Hi all, my problem is that i want to block my main frame when i call a JDialog! i try several things but cant! I use this to call the JDialog [CODE]public void showAboutBox() { if (info == null) { info = new Informacion(this);//call my jDialog info.setLocationRelativeTo(this); } info.setVisible(true); }[/CODE] …

Software Development java
Member Avatar for Dean_Grobler
0
196
Member Avatar for skorm909

i was working on a simple calculator and here's the problem I'm having: i want the whole program to loop over and over until the user decides to stop, so i put a while in there and the loop works great, but when the user is done inputting the numbers …

Software Development c++
Member Avatar for Jason Giggs
0
167
Member Avatar for flasp

I cant solve this assignent. I hope a helpfull soul can help me out. The problems goes like this: Write a program that ask the user to enter the number of seconds as an integer value(use type long) and that then displays the equivalent time in days, hours, minutes and …

Software Development c++
Member Avatar for Jason Giggs
0
180
Member Avatar for Tseegii

How to save listview data to database? Not work code: [CODE]private void Insertbutton_Click(object sender, EventArgs e) { string strConnection = "Data Source=OCH-ERDENE\\SQLEXPRESS;Initial Catalog=Database;Integrated Security=True; Pooling=False"; SQLiteConnection conn = new SQLiteConnection(strConnection); conn.Open(); for (int cnt = 0; cnt <= lsvXML.Items.Count; cnt++) { string query = "INSERT INTO DataObject VALUES('" + lsvXML.Items[cnt].Text …

Software Development listview mssql open-source
Member Avatar for sayeevani
0
187
Member Avatar for LJames

I need to create pages of address labels using VB Express, so no Crystal Reports. The end user does not have Office, so no mail merge either. I am using an Access table for data source. I need to be able to save it as a pdf so the documents …

Software Development email pdf vb.net
Member Avatar for LJames
0
93
Member Avatar for DARK_BYTE

Hi I have to develop an algorithm visualization tool for my project. I divided my tool into these 4 modules below: [QUOTE]The tool will be divided into 4 modules: -The GUI -The Visualisation module -The Calculate module -The Compile module The GUI the GUI class is the class that forms …

Software Development gui java java-swing linked-list
Member Avatar for JamesCherrill
0
380
Member Avatar for Nemo_NIIT

HI I have install Nunit when i am running this nunit it gives me some error and the error i am getting is [COLOR="Green"][B]"This assembly was not built with any known testing framework"[/B][/COLOR]:'( and in c# in reference i am adding the .net framework and in that i am not …

Software Development assembly
Member Avatar for Amol Ranjere
0
95
Member Avatar for tanzi816

I'm trying to write a program that can win a Battleship game in fewer than 60 guesses. Since the Battleship game that I am writing this for uses a 10x10 array, I thought that first of all I would just try to win the game in 100 guesses before I …

Software Development c
Member Avatar for vinitmittal2008
0
235
Member Avatar for bflack

//I need help please? [CODE]#include<stdio.h> #include<iostream.h> class Time { public: Time(); ~Time(); void setTime(int, int, int); void printMilitary(); void printStandard(); private: int hour, minute, second; }; void Time::printMilitary() { cout<<"Military time: "<<hour<<minute<<second; } Time::Time() { hour=minute=second=0; } Time::~Time() { cout<<endl<<"Destructor code."; } void main() { Time wakeup, samplePM; wakeup.setTime(6, 5, …

Software Development c c# c++
Member Avatar for WaltP
0
464
Member Avatar for bwbyron

Okay. So I'm writing this snakes and ladders game, and I want to be able to save the scores, but the try/except method seems to be giving me trouble. I feel like it has something to do with the fact that I'm not writing, just reading. But I'm not sure …

Software Development python
Member Avatar for bwbyron
0
201
Member Avatar for penguins10

Hi, I have a homework assignment that I just cannot figure out. I would be grateful of any help. The assignment is: Create a program which: Implements a class called Queue: The class should contain an array of maxQ integers. There should be two constructors: One that takes no argument …

Software Development c++ oop queue
Member Avatar for Zeeshan Cheema
0
244
Member Avatar for Leppie

My program runs a three dimensional maze (3x3x3 = 27 locations) it has a start room exit room and code room all in a loop so no two are the same location, the start and exit rooms show up on the run compiled program but the code room does not …

Software Development c++
Member Avatar for Leppie
0
149
Member Avatar for TrueCoding

Hi I need to have an array in my program that is defined by the user. I just need the user to enter the size of the array and then enter the integer values that they want to store in the array. I know how to declare the array myself, …

Software Development c
Member Avatar for vinitmittal2008
0
493
Member Avatar for chi18

Hi Can anyone Help me for the program in C Using Looping Statement Create A program That Input A number And Then Convert It in Asterisk using looping statement..eg input number 5 and the output is the 5 asterisk(*****)..help me plss...:icon_smile:

Software Development c
Member Avatar for chi18
0
84
Member Avatar for SabinIvy

Okay I have tried everything to alter the code but nothing works, so I ask for your help. The thing is I am trying to turn my code from this: *______* **____** ***__*** ******** ***__*** **____** *______* into this: *________* **______** ***____*** ********** ***_**_*** **__**__** *___**___* ____** ____** ____** ____** …

Software Development algorithm c++
Member Avatar for VernonDozier
0
446
Member Avatar for MatthewT

Hi, I'm writing a program in C++ that is driven by events that occur externally to the computer. As far as the program is concerned the event is just a change from false to true and I figure the simplest transmission mechanism would be over a single pin on the …

Software Development c++
Member Avatar for VernonDozier
0
100
Member Avatar for Spiffy P Mcgee
Member Avatar for mike_2000_17
0
115
Member Avatar for atoklas

I am trying to read in names and telephone numbers from a text file using fscanf. The format of the data is: 9073234 Colwer, Mrs J. 3823823 Le Boeuf, Mr S. To do this I am using the following line: fscanf(fpp,"%d %s %[^\n]s",&a,surnames[i],firstnames[i]); This works except for "Le Boeuf" where …

Software Development c
Member Avatar for milkz
0
220
Member Avatar for rockerjhr

how do i make a program that calculates the product of two vectors in C ? this is what i have but i think im doing it wrong i need some help? [CODE]#include <stdio.h> double inner(double m[ ] , double n[ ] , int size ) ; int main( int …

Software Development c
Member Avatar for Dervish1
0
244
Member Avatar for searchfgold6789

Hi. I am posting here because I thought maybe you guys could help me with a QBasic thing. I am trying to make educational software in Qbasic, namely a quiz creator software. I will have the Questions and quiz answers in files on the hard disk. How do I print …

Software Development qbasic
Member Avatar for Rich_ch47
0
116
Member Avatar for CJMW

Talk about C++ & Allegro here, any problems and ideas are welcome!

Software Development c c# c++
Member Avatar for kamotekid08
0
240
Member Avatar for amari ♥

i need help with the following: make a program that gets the summation of a given number e.g. 4+3+2+1 implement it using both iteration and recursion ex. enter a positive number: 4 the sum is 10.

Software Development c programming-construct
Member Avatar for Shankye
0
165
Member Avatar for chamika.deshan

Hi I have a third party code. [CODE]class Lazy { protected: template <class T> static void create( T*& ptr ) { ptr = new T; } }; template < class ClassT, class Policy=Lazy > class MakeT : private Policy { public: static ClassT* instance() { static ClassT* ptr = 0; …

Software Development c++
Member Avatar for mrnutty
0
147

The End.