8,298 Topics

Member Avatar for
Member Avatar for Don_k

Hi, I would like to using POSIX API system calls in C, and via command line arguments know how to go about extracting from an archive file.(in Linux). I have done the archiving process it archives the files I enter into the command line , and the last but one …

0
123
Member Avatar for alonewolf23

My original question stated: 1. Write a function named "digits" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.[B][U] No newline character should be sent to the screen following the digit name.[/U][/B] The …

Member Avatar for alonewolf23
0
922
Member Avatar for nemcsakbali

Hello everybody! I could really use some advice in c#! I have the following homework in programming, please help me choosing the easiest one( I only have to make one of them) or just tell me some tips on how to start on them. If you have some codes like …

0
55
Member Avatar for remo25

[CODE]#include <iostream> #include<cstdlib> #include<iomanip> using namespace std; int* userInput(int mat); void multiply(int mat, int* array); void print(int **mult, int **divides, int mat, int row, int col); //Main method, calls IO and handles the case for only 1 matrix. int main() { int mat = 0,i,j; int arrayA[mat][mat]; cout << "Enter …

Member Avatar for ravenous
0
594
Member Avatar for MARKAND911

I have a number 2879068. I want to display it in currency format as like [B]28,79,068[/B] in C# Can any one help me

Member Avatar for MARKAND911
0
130
Member Avatar for kureiki

I am trying to use my textboxes and checkedlistboxes to insert data to a ms access database that is local just as a preliminary step to get my app running to show what it can do. I have connected to the database through the datasource connection in Visual studio 2008 …

Member Avatar for jugosoft
0
807
Member Avatar for please1234

I'm working on application in c# that will download mp3 files to usb, mp3 ipods etc. but my problem that a sansa clip mp3 does not recognized as one letter(like f:\) so how do i recognize a sansa clip when it's inserted? thanks alot!!!!!!!

Member Avatar for ddanbe
0
62
Member Avatar for o0OPatriciaO0o

Hi! This is a real simple and stupid exercise I thought I knew how to handle. The complete heading is: - Write a function in C whose input is a real number and whose output is the absolute value of the input number. The following is the code I've developed. …

Member Avatar for o0OPatriciaO0o
0
242
Member Avatar for MasterGberry

Okay, so I finished the first of a few files on the converting, and I am getting some errors, and yes I have googled them and tried to fix to no avail, I am a noob on programming and am being told to work on a high level project, which …

Member Avatar for MasterGberry
0
881
Member Avatar for Alyboi

[code]#include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { const int Grade1 = 0 ; 29; const int Grade2 = 30 ; 39; const int Grade3 = 40 ; 69; const int Grade4 = 70 ; 100; int Grade ; int i = 0 …

Member Avatar for Red Goose
-1
125
Member Avatar for kdcorp87

[CODE]FileInfo[] Images; Images = Folder.GetFiles("Image Files (JPEG,GIF,BMP)|*.jpg;*.jpeg;*.gif;*.bmp|JPEG Files(*.jpg;*.jpeg)|*.jpg;*.jpeg|GIF Files(*.gif)|*.gif|BMP Files(*.bmp)|*.bmp|All Files|*.*", SearchOption.AllDirectories);[/CODE] getting error here [B]An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path.[/B] completely confused because it works nice in other app. what i m missing? help

Member Avatar for kvprajapati
0
156
Member Avatar for usg

I am developing my knowledge base files these days and also I am trying to make an interface to update the templates in the knowledge base. Say I have the following AIML file. [code] <?xml version=“1.0” encoding=“ISO-8859-1”?> <aiml version=“1.0”> <category> <pattern> WHERE</pattern> <template>Where the heart is.</template> </category> <category> <category> <pattern>Hi</pattern> …

Member Avatar for William Walseth
0
208
Member Avatar for ethanbuckley

I have created a music player that is yet to function to its full ( the add button on my main form1 won't bring up the AddNewWaveTrack_form ). These errors vary so any help is much appreciated as I want to learn fast. [CODE]#pragma once #include "AddWaveTrack_form1.h" #include "EditWaveTrack_form1.h" namespace …

Member Avatar for TSims11
0
388
Member Avatar for MasterGberry

Okay, so I understand this C# program I was given to analyze, and now I am being told that I need to convert the entire program into C++, just my luck. So there are several features that at the moment I do not understand how to convert over. If there …

Member Avatar for MasterGberry
0
258
Member Avatar for noamo48

Hi all, I'm new on this site and was hoping some of you more experienced coders could give me some advice. I'm a long time IT guy, always loved programming but never got too deep into it. I know the basics of programming in .Net and C# but I would …

Member Avatar for kvprajapati
0
160
Member Avatar for COKEDUDE

This does a nice job of explaining headers. [url]http://www.codeguru.com/forum/showthread.php?t=344569[/url]

0
66
Member Avatar for zeke188

hello i know that to sav i have to write someting like this [code] if (saveFileDialog1.ShowDialog() == DialogResult.OK) { StreamWriter sw = new StreamWriter(saveFileDialog1.FileName); sw.WriteLine(this.textBox2.Text); sw.Close(); } [/code] how would i go about saving more than like 5 textboxes and other stuff like pictureboxes. do i manually enter the picture …

0
48
Member Avatar for macaela

Hi i need to make a C# windows application that displays “Conway’sGameOf Life” game of life. you can find a history of the game online. does anyone know what sort of tutorials should i be looking to be able to complete this project my knowledge on c sharp is 1 …

Member Avatar for kvprajapati
0
52
Member Avatar for anthonyjpv

Im a newbie and im working with 4 forms, first form is a main menu which has 6 buttons, if one of the button is clicked, a view only form is shown. this view only form has add edit and delete buttons. if edit or add is clicked, a single …

Member Avatar for kvprajapati
0
273
Member Avatar for dophine

Hi All, I just read the book called "C++ coding stardards - 101 rules". And Found there is something I don't understand. [CODE]class FlagNth { public: FlagNth( size_t n ) : current_(0), n_(n) {} // evaluate to true if and only if this is the n-th invocation template<typename T> bool …

Member Avatar for dophine
0
123
Member Avatar for Eddiebauer
Member Avatar for Eddiebauer
0
194
Member Avatar for moroccanplaya

i get a undefined reference to get_menu_choice error message but i dont know why ? [CODE] int get_menu_choice( void); int main() { //code// while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) //code// } else if (choice == 2) //code// } if (choice == 3){ puts("you chose …

Member Avatar for gerard4143
0
165
Member Avatar for raja289

hi same week and am here again with another problem lol and yeah its my homework and am stuck somewhere as 95 % has been finished. Windows Form Application--- using C sharp and SQL server 2008 i made database in SQL server 2008 and using visual basic 2008 C sharp …

Member Avatar for tom_289
0
213
Member Avatar for GobanToba

OK, I was working on a project where I needed to randomly generate tens of thousands of 1s and 0s. I started noticing it didn't seem very random. To test it out I created an array of 458752 (896x512) ints. Then, I tested by seeing how many 1s were generated. …

Member Avatar for Zjarek
0
163
Member Avatar for dsit86

hi i need to write a program that connects to a device through Ethernet over the UDP protocal and get the data sent by the device. I tried using the .NET udp client methods but was unsuccessful. Can you guys help...this is my code.... [CODE] static void Main(string[] args) { …

0
114
Member Avatar for fuzzyrose

hiiiiiii all I need help to know what are equivalent libraries in c# for those in java--> 1)import java.sql.ResultSet; 2)import java.sql.Statement; 3)import java.util.Vector; 4)import java.util.Hashtable; 5)import javax.servlet.http.HttpSession; 6)import java.sql.SQLException; 7)import org.apache.velocity.Template; 8)import java.sql.Connection; Thanks In advance :)

Member Avatar for fuzzyrose
0
172
Member Avatar for roxin_phoenix

Hi all. I'm new in .NET programming. I want to make an application using C# and Microsoft Access. I cannot found any good tutorial about C# and Access. I just want to know how to connect, insert, delete, edit, and update database. Any suggestion for a good site to learn …

Member Avatar for roxin_phoenix
0
459
Member Avatar for gth759k

About a year ago, I built a simple ray tracer in Java, and now I'm trying to port it to c++, but I can't figure out how to get a couple of my classes to work together. It should be fairly strait forward, but its not working. Here is a …

Member Avatar for gerard4143
0
3K
Member Avatar for Badoodhi
Member Avatar for Don_k

Dear guyz, I am creating a file archiver/extractor(like tar), using POSIX API system calls in C. I have done part of the archiving bit. I would like to know if any one could help me with some C source code(using above) to create [B]a file header for a file in …

Member Avatar for Don_k
0
291
Member Avatar for Badoodhi
Member Avatar for Gh.S

Hi, This is my first post in daniweb! I've two questions: First question: I'm currently studying about classes, and could get '=' overloading format: [CODE]​[COLOR="Red"]T&[/COLOR] T::operator =(const T& b);​[/CODE] Why we set it to return reference? what's the use? Why couldn't simply be: [CODE]​[COLOR="red"]void[/COLOR] T::operator =(const T& b);​[/CODE] I've used …

Member Avatar for Gh.S
0
267
Member Avatar for deb081900

Hi All I got lots of help from this site Here I am facing 1 simple problem but can't point it out, So I need urgent help from you all. I am using Windows 7, VS C# 2008, Access 2007 My Access database have 1 photo column of OLE Object. …

0
93
Member Avatar for Jaydenn

What's the C# equivalent to "System.setOut(new Logger(System.out));" in java? Basically with that line of code each line thats printed in the console prints the current date + time, etc.. Thanks.

Member Avatar for kvprajapati
0
60
Member Avatar for ethanbuckley

OK So I am learning c++ and I have created my design using the windows forms, I now have to do the coding, I have implemented a code which is returning a nice amount of 102 errors, Any help would be appreciated or rewarded. I look forward to learning from …

Member Avatar for jonsca
0
438
Member Avatar for Weird Nerd

Hi everyone, I've been working with pointers for quite some time and I'm familiar with all the pointer-reference stuff. One of the things I don't get is the function of the delete keyword. I have used this code to find out what the delete keyword does. [CODE]int main(int argc, char …

Member Avatar for ShadowScripter
0
149
Member Avatar for Aqua_annie

The class should be capable of storing, manipulating and printing dates. Dates can be initialized by assigning 3 numbers - the day, the month and the year (initially restricted to any date after 1st January 1900 and before the year 3000) e.g. `Date d1(26,3,1999);` Dates will be printed by either …

Member Avatar for VernonDozier
-1
131
Member Avatar for Gen.Asura

Hi, my tutor has set a coursework for us and i need help with a small part of the coursework. A small program where some one tests new programmes or you can call it benchmarking :) Basically there are 20 programmes and he sets them each of them mark out …

Member Avatar for Gen.Asura
0
184
Member Avatar for shajis001

c sharp code for mouse control using eye contact is my project tittle pleasw any one help me!!!

Member Avatar for davieJohnson
0
101
Member Avatar for Plumpkin

Given the declaration double dbl_num = 123.456;, write a program that prints out the value of dbl_num in both floating-point and scientific notation formats.

Member Avatar for jonsca
0
71
Member Avatar for zidaneez

Hi everyone, I'm new here ... haven't had my warm welcome yet ;P So i need your help with my program. I'm supposed to program a simulator of the reader writer problem without using threads. So i thought i could use a timer to interrupt the running process every 2 …

Member Avatar for VernonDozier
0
1K
Member Avatar for Tejashri

I want to scrap data from a site. I have successfully scrapped the data on 1st page, but the data id divided into some 10 to 12 pages. How do i scrap data of other pages. The other pages have the same address as the 1st one. I guess it …

Member Avatar for Ramesh S
0
305
Member Avatar for Dizzzy

Ok so ive been writing code for a web server to return requested files, It works well for html and txt files but when an image is requested all i recieve is the url of the file... In firefox in conqueror i dont get anything. All i do is read …

Member Avatar for NicAx64
0
266
Member Avatar for NeilA

Hello everyone, I am looking for some instructions on learning C# for a 15 year old. He is creating some games in Unity 3d program and is doing pretty good following tutorials but i don't think he is understanding the programming concepts. I searched google but can't find anything that …

Member Avatar for jonsca
0
181
Member Avatar for sheztc1977

Hi, I am trying to create a league table. There are eight teams. The teams and their results are added to a text file on one form. The teams and results are seperated by a comma. On the second form i have a label where I am trying to display …

Member Avatar for sheztc1977
0
741
Member Avatar for fsuco

Hi, I’m starting out on C# and need some guidaance. My goal is to develop applications that will control/take measurements/gather data from RF lab instruments (signal generator, vector network analyzer, spectrum analyzer). My issue is to what commands are used by C# to actually talk to the instruments? In my …

Member Avatar for ddanbe
0
431
Member Avatar for judithSampathwa

Hi I have a question regarding the datagridview cellFormatting event in C#, [CODE] if (e.ColumnIndex >= 0) { if (this.dgvSubContractor.Columns[e.ColumnIndex].Name == "TelNo") { if (e.Value != null) { this.dgvSubContractor[3, row].Value = c.CheckingValue(e.Value.ToString()).ToString(); } } return; } [/CODE] I wrote the below code to format a 10 digit number to (456) …

Member Avatar for Mitja Bonca
0
770
Member Avatar for ivan26

Can anyone help me solve this problem? pass by reference/value and file i/o should be used.. Write a C++ program which will read in a list of numbers, find the average of all numbers, the average of thepositive and negative numbers, and the largest element. Your program should contain at …

Member Avatar for floatingDivs
1
241
Member Avatar for JOSheaIV

Okay I have a datagridview with multiple rows and columns of data. I set the grid to Readonly == true by default, but have a method that when the user double clicks the datagridview, it's gets the current cell the user is clicking and then uses this line of code …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Mr_PoP

Hi there i wanna make a query like this [CODE]SELECT * FROM accounts[/CODE] accounts table has 3 columns ID Name Password so i wanna get every column value in variable like char name= column[name]; so i can cout << name ; is there away to do it?

Member Avatar for Mr_PoP
0
75

The End.