8,298 Topics

Member Avatar for
Member Avatar for danalovesc

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 …

Member Avatar for mike_2000_17
0
1K
Member Avatar for ddanbe

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 …

0
65
Member Avatar for geetha_sit

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

Member Avatar for rohand
0
121
Member Avatar for kamotekid08

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 …

Member Avatar for kamotekid08
0
136
Member Avatar for bflack

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

Member Avatar for N1GHTS
-1
4K
Member Avatar for katokato

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 …

Member Avatar for prvnkmr449
0
94
Member Avatar for mduncan8

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 …

Member Avatar for mduncan8
0
726
Member Avatar for MindTrixz

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 …

Member Avatar for Valaraukar
0
112
Member Avatar for d87c

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, …

Member Avatar for JerryShaw
0
116
Member Avatar for zohebhasan

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.

1
25
Member Avatar for matlark

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 …

Member Avatar for suiluj
0
741
Member Avatar for Seapoe

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 …

0
52
Member Avatar for TinhornAdeniyi

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; …

Member Avatar for mitrmkar
0
220
Member Avatar for humantaco

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 …

Member Avatar for Fbody
0
154
Member Avatar for humantaco

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 …

Member Avatar for Fbody
0
163
Member Avatar for Kromletch

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 …

Member Avatar for Fbody
0
272
Member Avatar for NathanMc

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 …

Member Avatar for NathanMc
0
320
Member Avatar for Sarama2030

how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications.

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for xsnake7

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 …

Member Avatar for xsnake7
0
247
Member Avatar for jtylerboy222

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 …

Member Avatar for burcin erek
0
170
Member Avatar for jackparsana

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

0
85
Member Avatar for PrOwr!+3r

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?

Member Avatar for mrnutty
0
35
Member Avatar for parrishnewbie

#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 + ", " + …

Member Avatar for Fbody
0
102
Member Avatar for parrishnewbie

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 …

Member Avatar for Fbody
0
152
Member Avatar for laghaterohan

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 …

Member Avatar for jbisono
0
130
Member Avatar for harocool

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 …

Member Avatar for mshauny
0
95
Member Avatar for rodce

Good Day All, I'm relatively new to programming. And I'm taking a C# course at the local University. Is there a place I can go on DaniWeb to get help with coding questions? Thanks, R

Member Avatar for mshauny
0
154
Member Avatar for TinhornAdeniyi

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. …

Member Avatar for VernonDozier
0
197
Member Avatar for vjekob

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 …

Member Avatar for Aranarth
0
221
Member Avatar for denmarkstan

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 …

Member Avatar for mono_jit23
0
88
Member Avatar for rutul

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 ?

Member Avatar for mono_jit23
1
1K
Member Avatar for Stazloz

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 …

Member Avatar for Stazloz
0
1K
Member Avatar for kutukak
Member Avatar for karthikeyanvani
-1
372
Member Avatar for beginerC#

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 …

Member Avatar for beginerC#
0
148
Member Avatar for wm811

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 …

Member Avatar for jbisono
0
552
Member Avatar for jackparsana
Member Avatar for ddanbe
0
194
Member Avatar for kei1412

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 …

Member Avatar for ddanbe
0
92
Member Avatar for cleve23

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 …

Member Avatar for snippsat
0
496
Member Avatar for Klaurac

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 …

0
44
Member Avatar for winnie89

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 …

Member Avatar for mitrmkar
0
213
Member Avatar for Borkoff

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 …

Member Avatar for Borkoff
0
151
Member Avatar for ja0

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!

Member Avatar for ja0
0
133
Member Avatar for DeveloperX

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 …

0
110
Member Avatar for jakesee

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]; }; // …

Member Avatar for jakesee
0
161
Member Avatar for jineesh

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. …

Member Avatar for gop_1983
0
297
Member Avatar for emigrant_tech

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 …

0
50
Member Avatar for Toulinwoek

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 …

Member Avatar for Diamonddrake
0
260
Member Avatar for babaidebnath

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 …

0
107
Member Avatar for drspock

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 …

Member Avatar for Fbody
0
2K
Member Avatar for Akilah712

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 …

Member Avatar for Ancient Dragon
0
2K

The End.