8,298 Topics

Member Avatar for
Member Avatar for macdougc

Hi I have encountered a problem using vectors. I have a vector<char*> in a for loop, adding a char* to it after each iteration, but when I exit the loop and run through the contents of the vector, it has 4 copies of the final char* added. Here is the …

Member Avatar for Salem
0
159
Member Avatar for bzupnick

im trying to do the most basic c# program to show my college class and for some reason a couple of simple if statements are messing up my whole small program [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { …

Member Avatar for Geekitygeek
0
113
Member Avatar for sjfleming

Hi, I'm trying to read an excel worksheet that has cells with decimal numbers with exponents of 2 or more. When I read a cell that has a value of say 1002.00 in the cell, I'm getting 1002 when the code is reading the cell. In the formula bar in …

Member Avatar for sjfleming
0
8K
Member Avatar for MGIndia

i need to create a reply for a msg file i saved on localdrive. I tried doing this and itworks.but the problem is that the .msg file contains images and so when reply is done this images are not got...below is the code i tried for creating the reply fot …

-1
52
Member Avatar for isralruval

i have the following code which works, well its suppose to shift the letters of a text file by whatever the user wants, lets say the text file says "hi" if the user wants to shift the letters by 1 to the right it will become "ij" ok but the …

Member Avatar for Salem
0
131
Member Avatar for eternaloptimist

/* i have forgotten how to do the setw for the output (ex. Find Holland, Beth: 5)...getting all of the numbers to line up. also, i need to know how to modify this program so it reads in 20 strings from a file. i want to name the file names.dat. …

Member Avatar for vmanes
0
251
Member Avatar for ZoMbiESsSZ

HI Guys. I'm trying to make my own lite program that can highlight specified chosen words (Syntax highlighting in short). I have a working method using Regex, but it is TOO SLOW. Here is what is currently: My Regex Statements: [CODE] public Regex SettingsAndComments = new Regex("--settings|-|", RegexOptions.IgnoreCase); public Regex …

Member Avatar for kvprajapati
0
283
Member Avatar for neel123

[b]Split from - [url]http://www.daniweb.com/forums/thread37592.html[/url] [/b] Hi, I want to do following two steps. I am already done with first step. But I can't do the second step. Could anyone give me any idea how to do it? Step 1: After serialization, I load XML file's data in a datagrid in …

Member Avatar for kvprajapati
0
116
Member Avatar for keyur.delhi

hello group members, can you suggest me how to structure C# web application I know that by default files are organized in much better way, but I need to know how a professional web-application is created. how can I do "separation" of code in much better way ? thanks

Member Avatar for Ramesh S
0
755
Member Avatar for SaqibSaeed

hello i need to learn C#. I am beginner and using Visual Studio 2005 first time. i am in my 8th semester of bachelors and i chose Network Monitoring System to develop kindly help me how to work on it... how step wise step i can lead to the final …

Member Avatar for kvprajapati
-1
163
Member Avatar for jimJohnson

I hope this doesnt constitute as me asking for answers but I am running a program and at the end I am asked for the program to wait 10 seconds after saying goodbye and prompted back to main menu. I have researched this on google and from some of the …

Member Avatar for necrolin
0
154
Member Avatar for newcuser

I am getting some build code errors I do not understand how to fix. This is probably because I am so new to programming. Help is appreciated! Line 54 error is missing semicolon before type and lines 56,59, and 60 say i is undeclared??? [code] include<stdio.h> #include<string.h> //Global Variables char …

Member Avatar for mitrmkar
0
406
Member Avatar for makan007

[CODE] #ifndef Test_h #define Test_h #endif [/CODE] May I know what are the above 3 syntax for? How can I use it? Is is used only in header file?

Member Avatar for jonsca
0
144
Member Avatar for faaz

I have this homework assignment that i need help with and below is the code that i have so far. any help would be appreciated. thank you. Write a program that tells what coins to give out for any amount of change from 1 cent to 99 cents. For example, …

Member Avatar for restrictment
0
773
Member Avatar for Morrac

I am creating a C program to work with environment variables and I am having some problems. I have three choices to input from the command line: a.exe, a.exe <environment_variable_name>, or a.exe -a. The 'a.exe -a' should display a list containing all environment variable names and assigned values, with one …

Member Avatar for Morrac
0
113
Member Avatar for miles.85

I will start a new project. But I have some simple questions about it : 1) Is the C faster than Java on processes which has no graphic user interfaces (like softwares which are working just from command line) ? 2)Because if the C is faster than Java, I want …

Member Avatar for miles.85
0
220
Member Avatar for techie929

[CODE] //This is what we are asked to print in the assignment of Binary Search Trees.The Nodes are printed like: F +-- D | +-- NULL | \-- NULL \-- R +-- P | +-- M | | +-- NULL | | \-- N | | +-- NULL | | …

Member Avatar for techie929
0
79
Member Avatar for 140chris140

Hey, I have no idea if this thread already exists. I did try to make one before but it seemse like it didn't work. So here goes ! My question is - How do I put my .o files into an object library file? I'm using c++ visual studio express …

Member Avatar for 140chris140
0
534
Member Avatar for gajji2020

Hi i have weird doubt. My assingment is C++ program to insert and delete elements in Binary Search Tree.I am almost done wid the assingment. But the major part lies here. the strucure of the output is difficult to obtain.. i will explzin the question now. Input: F D R …

Member Avatar for WaltP
-2
137
Member Avatar for team_ferrari22

Hi All, Is it possible to take Backup of SQL Server Compact database (i.e. *.sdf) and Restore the same. Regards.

Member Avatar for kvprajapati
0
553
Member Avatar for moshe12007

i programming in c language and i need to using parallel port the compiler that i using : "microsoft visual C++" int the old compiler i using this command : inport(0x378) but now in vc that not work please help me...

Member Avatar for moshe12007
-1
61
Member Avatar for ursdhivi
Member Avatar for vinnijain
-2
102
Member Avatar for KolosoK

Hello, I have a weird problem. I have a class implemented that looks something like the following: [CODE] class textBox { public: // default constructor textBox() { m_text = ""; } textBox(string text) { m_text = text; } string getText() { return m_text; } private: string m_text; }; [/CODE] Now, …

Member Avatar for hllsen
0
198
Member Avatar for CSW110

Hi, unsurprisingly this is my first post :) I want to learn C# mainly to support work in Excel and I was wondering what development tools I need. There are so many variations from MSDN to Visual Studio Standard and others. I am a competant programmer in other (some odd) …

Member Avatar for ddanbe
0
174
Member Avatar for afrinahossain

I created a c# graph. But, first time it is loaded, it is not show in the correct format(Pic1). For second ,third ,fourth etc time, it is shown in correct format(Pic2).

Member Avatar for ddanbe
0
45
Member Avatar for Coomanperson

Hi everyone, new to the DaniWeb community, i have always used it for homework help in the past, but i'm about to rip my hair out if i stare at this code for another hour. basically the project is to write a code that reads data from a file, gets …

Member Avatar for Coomanperson
2
173
Member Avatar for nadzz

Hi all, Does anyone know how to create sessions with c++ cgi? I am using c++ cgi to connect users from web to IMAP server. How can create sessions so that next cgi knows which user is this, etc. Thanks, nadz

0
44
Member Avatar for malinij

After getting substitutionGroup name i want to search that name in that file... my xsd file contains the following code... [code] <xs:element name="shape"/> <xs:complaexType name="shapeInfo"> <xs:sequence> <xs:element name="linecolor" type="xs:string"/> <xs:element name="thickness" type="xs:int"/> </xs:sequence> </xs:complexType> <xs:complexType name="triangle1"> <xs:complexContent> <xs:extension base="shapeInfo"> <xs:sequence> <xs:element name="sides" type="xs:int"/> </xs:sequence> </xs:complexContent> [/code] i want to search …

0
46
Member Avatar for Tariq269

sir i want to get first 10 links of google search page by c# how can i copy top 10 URL of google search in text file using c#

Member Avatar for sakhi kul
0
88
Member Avatar for gtcoder

I am new to programming. If it's a dumb question please forgive me for wasting a thread. But I wanna know. Why is this code not working? [CODE] int main() { char sndex[6][8]; sndex[0]={"BFPV"}; sndex[1]={"CGJKQSXZ"}; sndex[2]={"DT"}; sndex[3]={"L"}; sndex[4]={"MN"}; sndex[5]={"R"}; [/CODE] The Compiler (MingW + DevCPP) is showing this: [CODE] In …

Member Avatar for gtcoder
1
1K
Member Avatar for joannes

Hi Experts, I use Visual Studio 2005. I want to retreive data into textboxes providing inputs at runtime. I used the following code.It works when if i provide input at design time but while providing the input at run time the following error message gets displayed. "Syntax error converting the …

Member Avatar for kvprajapati
0
2K
Member Avatar for bbabarajj

hi i am trying to write a simple calculator.i have posted the code below,it works fine for one time solution. but i want the answer to be used for next calculation and also want to put a code to end the program. [CODE] int A,B,C; char op; cout<< "Enter a …

Member Avatar for dusktreader
0
121
Member Avatar for fxpepper

Hello Can someone help me understand the difference? Human h = new Human(); or Man m = new Man(); vs. Human h2 = new Man(); recently I have seen an object instantiated like this - where it references this other object (after the "new" keyword ) I am trying to …

Member Avatar for kplcjl
1
558
Member Avatar for AmigaCarolena

/*O.k. I am down to a few less errors. I do not understand how to correct them, I have placed the ";" everywhere and it does not make a difference, in fact I get more errors. Still confused! Thank you. Here it is again. This is a program that processes …

Member Avatar for EngSara
-2
141
Member Avatar for Gockelhahn

I am trying to integrate a matlab figure into a "Visual C#" application. So far I am able to exchange numeric values between matlab and c# and to plot figures. The problem is that the figure is not integrated in the overall application (a new window is opened). Is there …

Member Avatar for matlabking
0
44
Member Avatar for Narue

Consider the following program and input file: [code] #include <algorithm> #include <cstdlib> #include <ctime> #include <functional> #include <fstream> #include <iostream> #include <iterator> #include <string> #include <vector> #include "natural_compare.h" struct natural_less: std::binary_function<std::string, std::string, bool> { bool operator()(const std::string& a, const std::string& b) { return natural_compare(a, b) < 0; } }; std::vector<std::string> …

Member Avatar for dusktreader
7
2K
Member Avatar for josh06

I am 12, mad about computers and skateboarding, im an emo, i know it doesnt sound right that i like programming. anyway, i have started learning c++, only just! I would like to know first of all if it is possible that you can build your own operating system with …

Member Avatar for josh06
0
118
Member Avatar for 28daniela28

Hi, I'm working on a C++ mini-project ( I'm having an unoriented graph for wich I have an admissible flow and I have to determine the minimal flow for it). Everithing works fine, it compiles and runs well (the code is below) but I'm using files to read input and …

Member Avatar for 28daniela28
0
191
Member Avatar for sahiti
Member Avatar for Dave Sinkula
-5
138
Member Avatar for arakawid2120
Member Avatar for abarlowa

I need help with the errors in my code. Here is my pseudocode along with my program code following: [B][U]This is my pseudocode:[/U][/B] Start Declare Variable int length int width int area Print (“Enter length of room in ft.: “), Input length Print (“Enter width of room in ft.: ”), …

Member Avatar for abarlowa
0
1K
Member Avatar for iarkey

Ok well I'm making a console msn client. [CODE]#pragma comment(lib, "wsock32.lib ") #include <windows.h> #include <iostream> #include <stdio.h> #include <string.h> int main(){ char buf[12]; WSAData wsdata; WORD wsver=MAKEWORD(2, 0); int nret=WSAStartup(wsver, &wsdata); if(nret != 0){ std::cout<<"Startup failed, error code: "<<WSAGetLastError(); WSACleanup(); return -1; } std::cout<<"Init success\n"; SOCKET kSock=socket(AF_INET, SOCK_STREAM, 0); …

Member Avatar for iarkey
0
149
Member Avatar for lewashby

I'M reading the book that's in the title. Let me show you what's going on. I'M given the following code, an example of Inheritance. [CODE]using System; namespace CritClone { class CritViewer { static void Main(string[] args) { CritViewer cv = new CritViewer(); }// end main public CritViewer() { Clone myClone …

Member Avatar for apegram
0
146
Member Avatar for Eternity[LK]

Hi. I have never used a command-line compiler before and I'm very confused now. I need to use this compiler for my home assignments in one of my subjects in University. I installed the compiler but I don't know how to use it. Help file says: [I]To see a list …

Member Avatar for Eternity[LK]
0
143
Member Avatar for jballen87

I'm trying to create a program in C# that allows for arithmetic of Complex Numbers. Just adding, subtracting, multiplying and dividing. Anyone got any suggestions?

Member Avatar for ddanbe
0
857
Member Avatar for jigglymig1

I have to write a program that accepts a pointer to a c-string as its argument. The function should return the charater that appears most frequently in the string along with the number of times it appears. for example, if i input "hello dolly" the output would be: "l sppears …

Member Avatar for r.stiltskin
0
161
Member Avatar for ccie007

Hi Friends, I have no clue how to solve following C++ question.I am a learner.Thank you in advance. Question -- Simulation and use of random/io libraries A recent New York Times article featured a report on the usability, stability, and effectiveness (or lack thereof) of current electronic voting systems. By …

Member Avatar for jonsca
0
212
Member Avatar for ccie007

Hi frens, I couldn't compile this solution code given by my university on visual studio.Visual studio works fine with other C++ files. Here are the question and solution code pasted below.I wonder if anybody could try to compile the solution code on thier machine and see if they can run …

Member Avatar for ccie007
0
167
Member Avatar for oceantrain

I have a datagridview with 10 columns. Every month the user will update new info in the grid. I would like to have a datetimepicker next to the binding navigator. The purpose of the datetimepicker is to scroll forward or backward month by month. If scrolling forward the datagridview creates …

Member Avatar for kvprajapati
0
217
Member Avatar for wilsonz91

Hi, I recently bought a book-The Complete Reference C++ by Herbert Schildt. The first part explains about the similarities about C++ and C. The syntax used is different from the one my lecturer is teaching. eg: cout<< is replaced by printf cin>> is replaced by scanf I would like to …

Member Avatar for wilsonz91
1
201

The End.