8,298 Topics
![]() | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 | |
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 … | |
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!!!!!!! | |
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. … | |
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 … | |
[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 … | |
[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 | |
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> … | |
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 … | |
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 … | |
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 … | |
This does a nice job of explaining headers. [url]http://www.codeguru.com/forum/showthread.php?t=344569[/url] | |
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 … | |
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 … | |
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 … | |
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 … | |
What does it mean ** before the function and what should return | |
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 … | |
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 … | |
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. … | |
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) { … | |
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 :) | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
c sharp code for mouse control using eye contact is my project tittle pleasw any one help me!!! | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
The End.