8,298 Topics
![]() | |
those are the maps: [CODE] multimap<SortKey,T> firstMap; multimap<SearchKey,pair<SortKey,T>*> secondMap; template <class T,class SortKey, class SearchKey> bool GarageDataBase<T,SortKey,SearchKey>::Add(T data,SortKey key1, SearchKey key2) { multimap<SortKey,T>::iterator it; it=(firstMap.insert(pair<SortKey,T>(key1,data))); pair<SortKey,T> *mizi=&*it; secondMap.insert(pair<SearchKey,pair<SortKey,T>*>(key2,mizi)); return true; } [/CODE] I am trying to insert a pair into the firstMap and get a pointer to this pair and … | |
Hi all, Had a working program with a employee DB in 2008. Opened it in VS 2010 and the conversion wisard was busy doing his thing and asked me for Cristal Reports. A a download beta version was suggested. Any one out there who knows what to do next? Do … | |
Hi I have populated the values to datagridview and i have kept checkbox for selecting a row.my question is how to select a particular row programatically so that i can delete only that particular row.i am waiting for the reply. thank u | |
Hi i have a problem in programming I need to search a line from a text file by just entering an identifier. Text File: "my Record.text" contents: 101,Carl Cool,500.00 102,Kurt Cobain,400.00 103,Kid Marion,300.00 the console should ask the id number.. ex. ID:101 and give the output: ID:101 Name:Carl Cool Rate:500.00 … | |
Just one question: Is the two dimensional array coordinates in C opposite to what the coordinates used in plotting in the CARTESIAN PLANE??? please answer and thanks | |
Im supposed to create a program that will read 10 floating pt numbers into an array of 10 double. The program is supposed to quit on non numeric input, which i have succeeded in doing, and also the program is supposed to take an average of all of the numbers … | |
I need to search an XML file for a unique entry. I've never worked with XML before. Can anyone tell me what the fastest way to search an XML file is? For the website I'm working on performance is critical so I need that fastest possible way to get this … | |
Ok so we were given a homework assignment and I am having trouble with it. We are supposed to minipulate a box in the center of the screen with the input given by a user. The input values given are height and width. How can I create a box in … | |
I ran into problem for my school assignment and it is to display whatever in a meal.csv file, here is a code we are starting with. The array string of itemDetails is where the data is store then passed into array ReadLines, then in Main, it is passed to mealContent, … | |
I want to print Multiple Pages from set of pages depending on user selection. Please suggest and preferably some pdf view should be available for the same. | |
Hello, I am writing the code for a cash register, and I have searched the site and nothing comes back that helps me, it basically has to take the change and break it up to the fewest 100's, 50's, 20's, 10's, 5's, and 1's. I have already written the cout … | |
I have a Datagridview bound to a DataTable. After doing the data binding I populate each rowheader cell in the datagridview with text. Issue is that when I perform a filter on the DataTable the text in the row header cells disappear. Anyway to make it so it that it … | |
This is my instructions [ATTACH]17319[/ATTACH] [ATTACH]17320[/ATTACH] and i am using Dev-C++ 4.9.9.2 and i am using the Mingw compiler i am a beginner. and this is my code. [CODE]#include <iostream> #include <iomanip> using namespace std; void everything(); int main() { everything(); system("pause"); return 0; } void everything() { int a,b,k,sum; … | |
Can anyone post the code to these? 2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out … | |
2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out 2.2 Escape this! Write a different program … | |
I am working on a C++ program that wants me to read in 52 unsorted states. All the states have randomly Capitalized letters.The objective is to sort the states in alphabetical order by the last letter of the state. Case sensitivity is the least of my problems but i am … | |
Hello. I'm currently working on a C++ assignment where I need to calculate a student's GPA from a text file containing 4 grades and the corresponding credit values for the class. I know how to write the program to get the correct GPA, but I am having problems figuring out … | |
how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications. | |
hi, how can i use the result of a function without having it repeated ? like in the code down there i have to use the result of the function [B]get_sides()[/B] in all of the other functions..but the way i coded it down there will make me enter the values … | |
Can't get the right output.. Trying to calculate mean, standard deviation, & variance through data structures. [B]Output:[/B][CODE]Mean: -9.25596e+061 Standard Deviation: 2.2836e+046 Variance: 5.21481e+092[/CODE] [B]Code:[/B][code] #include <iostream> #include <stdio.h> #include <math.h> using namespace std; struct StatData { double Data[10]; double mean; double stdDev; double variance; }; int main() { const int … | |
hi, Can i change color of shadow for popup container. in C#. i use ModalPopupExtender popup. as bellow : <cc1:ModalPopupExtender ID="ModalPopupExtender5" runat="server" TargetControlID="Button5" PopupDragHandleControlID="Panel5" Enabled="true" OkControlID="lbtcanceldv" DynamicServicePath="" PopupControlID="Panel5" DropShadow="true" s BackgroundCssClass="modalBackground"> </cc1:ModalPopupExtender> Can i change color of this shadow? thanks in advance. jack | |
I am working on a grading program and I am having trouble passing the structure by reference and by pointer. I am also trying to convert the total numeric average into a letter grade? Should I use a loop or an array? | |
#include <iostream> #include <string> using namespace std; int main() { //Declaring values. string oneWord, twoWord, threeWord, fourWord, fiveWord, fullWord; //Assigning values oneWord = "One"; twoWord = "Two"; threeWord= "Three"; fourWord = "Four"; fiveWord = "Five"; // Now we will define the full word fullWord = oneWord + ", " + … | |
Hi everyone, I am very new to C++ I have never done any type of programing also. I am really having a hard time learning how to write programs. I am using a book called C++ programming by larry ullman and Andreas Signer. The problem is I am following the … | |
Hello, I have prepared a crystal report (asp.net 3.5 / vs 2008) . On my web form i have a textbox which accepts a membership number and a View button. When i enter the membership number and click on view my report should be displayed below on the same page … | |
I have two requirements regarding a combobox. First is: I am trying to store a new item into a combobox which in turn will store in a xml file. But the problem is i need to store only unique values in xml file. I had used foreach statement to solve … | |
I cant figure out what is wrong with this code These are the instructions [ATTACH]17304[/ATTACH] [ATTACH]17305[/ATTACH] [ATTACH]17306[/ATTACH] and this is my code [CODE]#include<iostream> #include<fstream> #include<iomanip> using namespace std; void Get_Info(string[],int[][3]); void Get_Average(int[][3]); void Prt_GradeBook(string[],int[][3],int[]); int MakeUps(int[][3]); int Grades[5][3],average[5]; string Students[5]; int main() { Get_Info(Students,Grades); Get_Average(Grades); Prt_GradeBook(Students,Grades,average); cout<<"There are"<<MakeUps(Grades)<<"Makeup(s) to arrange. … | |
I've been give a task to write a short C/C++ program to extract files from a .deb file on windows platform I know there are tools like 7zip that do it but I need to code it). Could someone please give me a push in the right direction (too much … | |
could brothers and sisters welcome me by looking into this longlasted problem: [CODE]"INSERT INTO finaldata (Hall, Bedspace, AmountPaid) SELECT * FROM AllcDataBoys 'WHERE Bedspace ='" + (Bespx.CompareTo(RET) == 0) + "'WHERE RegNumber ='" + txtRegNumber.Text.Trim().ToString(); [/CODE]finaldata table has 7 columns and AllcDataBoys table has 3 columns(which is common on both … | |
Hello, I am new with c#. I need help in splitting the operators and operand in two different arrays. For example 4+5-3-6+7 is an input string, so in this i want 4,5,3,6,7 in one array and +,- in another array . can anyone please help me out ? | |
Hi! Having some major issues my homework assignment. I have to end this while loop when detecting two consecutive newline escape sequences in a row. This is the word problem: Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice … | |
[B]I want to write elevator program. Can you help me. Please... [/B] | |
Hello everyone! I have this code [CODE] string constring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DataBasePath + ";Persist Security Info=False;Jet OLEDB:Database Password=""; conn = new OleDbConnection(constring); conn.Open() string searchstring = "SELECT * FROM MyTable WHERE field2=@field2"; OleDbCommand cmdsearch = new OleDbCommand(searchstring, conn); OleDbDataReader reader; cmdsearch.Parameters.AddWithValue("@field2", dgrDoc[1, index].Value.ToString()); reader = cmdsearch.ExecuteReader(); [/CODE] How … | |
I've searched as much as I can, for the previous two weeks between projects, and have yet to find a clear answer (I'm still new to C#, so what's clear to most does not apply.) Our website has a member login and then members can update various contact information for … | |
hi, How to find Date Differance in c#. in vs2008. thanks in advance. jack | |
Hi im done with lexical part of compiler. The next stage is the syntactic analyzer. How could i program my syntactic analyzer without using a database? For example (base from turbo C) syntactic checker: main() valid { valid int, x,y=1, z=1; invalid x = y+z; valid printf("Hello World); invalid printf("the … | |
Hi all, What tool can i use or what ways can i deploy to allow me to combine c# with python or vice-versa. Please let me know of any tools or way which you all had done it before because i had serch quite alot but i still cannot make … | |
Hello There is this school project I'm working on, my first bigger one. It is a video Rental, I added the UML diagrams into the attachment as jpg file, the symbols may be off in the UML. I figured out this architecture, I want your opinion if it is any … | |
I'm trying to write a code for class and after compiling the first half with g++, just make sure it'd work so far, I get all these errors. After looking them all up I don't understand why i'm getting these errors or how to fix them. If anyone could please … | |
Hi everybody! I must make program in c++ that reads unknown number of words from a text file to char arr which after that i will have to sort the words by the first letter by alphabet in a stack. can any body help me please? txt file: den rock … | |
Hi, I want to know how to get the total of rows (of myRead) after I executed: myRead = myCommnd.ExecuteReader(); The only way I get it is using a loop, but exist a command for that? Thanks! | |
OK, I've fashioned a UDP server situation by creating a socket and then using its Bind method to bind it to an endpoint. This application handles multiple incoming requests, and maintains state for each request based on the remote endpoint's ip address and port number. All of these, obviously, come … | |
Hi folks, I have a mathematic Vector3 class that looks like [CODE] class Vector3 { public: union { struct { float x; float y; float z; // btw, if declared like // float x, y, z; // will there be a difference in packing order? }; float v[3]; }; // … | |
Pls any body help. I am in a crucial situation :( I want to back up and restore database which is created in sql server 2000. how can I use this in C#. The code which I have written is not working properly. It throws an exception at step 31. … | |
Hi all, I have develepod a basic serialization program with the instruction of my instructor. basically what the program does is,a c# app and a java app access a same XML file. i.e. if i click the button on the c# app, the button will go false and the button … | |
Is anyone aware of a nice, easy-to-use tool for creating a ribbon menu system in a C# application, that costs "considerably less" than $1000 or more?! I'm kind of wondering why Microsoft didn't include this in VS2010. I found a little thing called VRC (Visual Ribbon Creator), but it's pretty … | |
Presently I working on a firewall project. First thing I have to do if any user want to access illegal site I will not let him do so. So I tracking tpc packets. So far for http request I dont have any problem. But for https I do have some … | |
Hi, I'm a novice at writing C++ code, most of my experience is in C# and Java. I have tried a bunch of things but I can't seem to figure out the correct way to structure my statements. Rather than try and explain everything I'm doing wrong I will post … | |
Hi, I am to write a C++ date class. I have set up the class. I am able to add and substract to the number of years. The requirements are that I have to do the same for the number of days and the number of months as well. I … |
The End.