I have an extremely annoying problem, I am inserting data into an access database and now i have noticed that it is copying itself to the bin/debug folder on ts own and yet i have set "Copy to Output Directory" property to "Copy never"
But without fail, it is copied! It is making any attempted updates to the database's information invalid since its not updating at all.
This all started when i installed crystal reports and it asked me to make a duplicate of the database in order to utilize data-sets that were created for certain reports.
Why this is happening? I cannot test my application properly at all.
I am trying to make a grade book and using a vector to get the grades. I am getting errors all over and I figured this would happen because this is the first time I ever used vectors.
This program is an address book where you caan add/view entries. I'm having a problem printing out entries. Why the information isn't getting saved into the structure array?
Code: #include <iostream> #include <string> using namespace std; struct contactinfo
I'm writing a program that uses the readline() function that comes in the Unix Network Programming book, when I use telnet to connect to my server the function reads the input perfectly displaying the username as the user types it in. However, when using a telnet client called syncterm it accepts the user input but does *not* echo it on the screen and I can't figure out why.
I have to develop an address book for contacts, and it has to be able to add contacts, delete them, and show them all while implementing dynamic memory allocation. I'm thinking I should be going with an array of structures, but I'm not sure how to handle that in the context of this problem. I realize deleting them will most likely end up just being me using the free function. i'm thinking I should show all the contacts with a for loop, but say u deleted contacts, and those memory spaces were now absent, how would I go about it because the looping structure would be flawed wouldn't it.
the program is of an address book. the syntax is all fine, and the initial menu of options does show up. but once you punch in the cin, the program just stops.
My address book will be simple, and the thing's that I'm expecting to use in it are :
Pointers, Linked Lists Malloc Structs Typedefs Makefile, header file Putting functions into different program files
I have started the program trying to create a struct, and getting it working with a couple of entries before going onto user input and splitting it up.
Code:
#include <stdio.h> #include <stdlib.h> int main(void) { // Struct type address book. Just a name, a number and a pointer
[Code] .....
I'm a bit lost at this point... My knee jerk thought is to create a for loop, and cycle through the list.
I'm not sure how this would apply to this though? Without using the familiar type of print loop such as :
Code: for (i = 0; ;i++) { printf("%i ", array[i]; }
I'm thinking that I need to create a temporary struct that can be used to assign the value of the next struct in the list, and then somehow print from that....
I'll try and write the logic out :
while temp != NULL (The last node value is assigned NULL to show us where the end of the list is)
create a temporary pointer that can be used to keep track of where we are in the list.
print out the current entry name and number
then assign the temp pointer value to the * next of the current struct. So if we are in entry1 the *next should be the address of entry 2.
Print out entry 2 name and number, assign entry 2 next to the temp value.
So I was asked to create a C++ program that will ask the user to input 5 books with the ISBN, Title of the book and author/s. It will ask for 3 authors, if the book has only one author, you should leave "author 2 and author 3" blank and display only one author. Thing is... I'm having a problem with the if else condition at the last part of my program. I cant seem to make it work.
#include <iostream> #include <cstring> #define SIZE 5 using namespace std; int i;
I have created a desktop application using c#.net in visual studio 2005 and sql server 2005, i have created a setup file also but i dont have database in it.. how to include or attach the database file into the project so that it works well in the client machine.....
But Now I have been asked to modify this code in a way that instead of passing the file name as parameter, I have to make a database connection and fetch the value of the filename and location from the database table and check the size . My program has to repeat this process every ten minutes, which means every ten minutes my program has to hit the database, fetch the value and check the size in the file system.
I heard like I Have to create a Fork Call, and have the child instance run every ten minutes.
Which is best option to save images in database or file system, I am developing c++ server client app. I want to save the images in server using file system or database. I am confusing to choose which option?
I get a new error saying it cannot recognize the database format.
public partial class DataViewer : Form { string conStr = "Provider=SQLOLEDB;Data Source=Database.mdf"; DataSet dS = new DataSet(); DataSet tdS = new DataSet(); OleDbConnection con = null;
I am developing a win form application with sq l server2005, in client system after install the application I created the folder for storing the database of running application, like that I have every year database separately, My doubt is how to connect the particular year database while loading the app?
I am receiving error: "unable to open database file" using sqlite3_open function. I am using sqlite3.c (included amalgamation files). It happens only during ARM compiling/run. If I do the same at x86 compile/run everything works fine...
i have to upload a ms access database file to the server from my client program. The server program should connect to this database and read the data. What's the easiest way to upload the file? Is it FTP? i tried sockets, but it only allows like 9kb of data transfer capacity.
Write a program that is able to save a list of items such as books, CDs, or DVDs and the items that are saved must have attributes associated with them. For example a book has a title, author, publisher, and ISBN.I would like to create a program that is able to save the database of items to a file on the hard drive and also retrieve it from the hard drive.I have this for a start of how to set up a storing program.
#include <iostream> #include <iomanip> using namespace std; int main () { const int arraySize = 10; int a[arraySize] = { 2, 6, 4, 10, 12, 89, 68, 45, 37 }; int i, hold;
I have to create a small data base for a shop. One of the functions i am creating is taking a customers ID and scanning that through a text file and to print out the info about that customer. What i am having trouble with is where do i insert the string compare in my program?
//declaring array for input of customer ID int customer_ID [20]; printf("Please enter the customer ID:"); gets( customer_ID ); //users input stored in the array
I have written a C++ program I have multiple of CSV file used as input, which I open one at a time and close it after extracting data to a output file which is the only file.
I run getline(inFile,line); outFile << line << endl;
I run this code, and only part of it is goes to the output file I got, also have spacing randomly to specific file and inconsistent
But when I slower the code, like system("Pause") in the loop, I can get extract what I want perfectly....
Is my program running to fast, why getline would be skipping part of what things I want?
One of my class assignments is to create a program that receive a .txt file containing a students name and their grades as follows:
John K. 99, 87, 57, 89, 90, 95 Amanda B. Jones 100, 88, 76, 99, 86, 92 etc..
The number of students is unknown until run time. You have to take those grades and average them weighing the first (4) at 10% a piece and the last (2) at 30% each.
Then return an output file with the students name and their letter grade A,B,C,D,F based on their computed score. In addition, on screen it needs to display the average scores for each Q1, Q2, etc. as well as the minimum and maximum for each test on the screen. I am having a hard time in assigning the scores to a variable so that they can then be computed as an average and then used to determine a letter grade. I have begun to write the code and am a bit stuck..here's what I have so far:
One of my class assignments is to create a program that receive a .txt file containing a students name and their grades as follows: John K. 99, 87, 57, 89, 90, 95 Amanda B. Jones 100, 88, 76, 99, 86, 92 etc.. The number of students is unknown until run time. You have to take those grades and average them weighing the first (4) at 10% a piece and the next (2) at 15% each and the final at 30%. Then return an output file with the students name and their letter grade A,B,C,D,F based on their computed score. In addition, on screen it needs to display the average scores for each Q1, Q2, etc. as well as the minimum and maximum for each test on the screen. I am having a hard time in assigning the scores to a variable so that they can then be computed as an average and then used to determine a letter grade. I have begun to write the code and am a bit stuck..here's what I have so far:
Code: // // main.c // Final Exam //
[Code].....
The problem I'm having now is how to go about passing the grades to the function computeGrade and then compute the average and return that to the function.
how do i decompress an input file and write the results into an output file?
also my do while loop is supposed to keep going unless the user selects the option to exit the program, instead it exits after finishing ay of the options.
I have a program where I will read in a certain .txt file, such as "financial_data.txt" and I will be doing some sorting with this data.
I want my program to write out the sorted data to an output file and I want the name of the output file to be based off of the input name. For example, since my input file is "financial_data.txt", I want the output file name to be "financial_data_out.txt".
I am having a hard time finding examples online and in my reference manuals...