8,298 Topics
![]() | |
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 … | |
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) { … | |
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 … | |
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 … | |
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 … | |
/* 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. … | |
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 … | |
[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 … | |
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 | |
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 … | |
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 … | |
[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? | |
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, … | |
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 … | |
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 … | |
[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 | | … | |
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 … | |
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 … | |
Hi All, Is it possible to take Backup of SQL Server Compact database (i.e. *.sdf) and Restore the same. Regards. | |
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... | |
how to search the file using the C#.net windows application ? | |
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, … | |
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) … | |
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). | |
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 … | |
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 | |
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 … | |
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# | |
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 … | |
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 … | |
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 … | |
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 … | |
/*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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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.: ”), … | |
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); … | |
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 … | |
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 … | |
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? | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … |
The End.