51,593 Topics
![]() | |
Morning all, I've got a grid of rooms that I need to navigate round using directions in main that's working fine, in main I've put a random starting location that also works. Ive also got a program with two functions in it, random starting location and random direction facing to … | |
how do you declare an array of dynamic string. i mean..if you have char name[501][41]; how do u declare the above in dynamic mode using *. char *name[41]? or char *name*? thanks in advance; | |
Hi; I am making one small application which can store data to my online mysql server. But with c++ win32 how can I do it? Please help me. | |
Hi, I am simply trying to output text to my project screen that has a counter which increments by one, than prints it. Here is my attempt. int abovemaxpoints = 1001; // this works for any scoring for the game. while(std::cin >> abovemaxpoints) { std::cout << "star points" << counter++; … | |
I have to write an extension of basic_stringstream class, and I'm facing some difficulties with endl() function. Here is my code [CODE] class Logger: public basic_stringstream<TCHAR> { public: Logger(); }; inline Logger& __cdecl endl(Logger& _Ostr) { // Original code in ostream _Ostr.put(_T('\n')); _Ostr.flush(); return (_Ostr); } int main() { Logger … | |
I'm not sure if this is the right place to post this, but I do use c++ so....yah. My problem is that I don't know what to do now. I'm certain I haven't mastered c++, but I think I've mastered the basics. So now I'm thinking "What now"? Is there … | |
I notice <vector> uses the constructor once and then uses the copy constructor for a class when creating all the other elements of a vector chain. So, if I have: [code] class MyClass { MyClass() { cout << "Constructor" << endl; } ~MyClass() { cout << "Deconstructor" << endl; } … | |
I am just 'transfering' from c to C++ and so ... some of the header files #include <direct.h> isn't exactly C++ friendly... I know I can just use them however I want my code to be as C++ly as possible as i'm just learning it... So.... [B]How do I:[/B] [LIST] … | |
Hi everybody, I have a legacy program at work that I have taken over and my boss wants me to add some functionality. I have already added a com object to the program and am producing a functional dll which I can write strings to and control my program. I … | |
Hello everyone..I am planning to develop a payroll system in C++ using textfile as its database but i don't have any idea on how to begin it..Can any one help me with the codes please..How to view data into textfile, how to write data into textfile, how to save data … | |
i am doing a POINT OF SALE i nvisual c++ for my basic diploma course. i need to do an IPO CHART for the report as well. I have done the report- see below- can anyone tell me if i am correct or have missed out on anything : IPO … | |
Does anybody know how to get data from the ethernet port? Is there a library for it? Basically there is going to be a microcontroller sending data over ethernet, and I want to get the data it sends and write it to a file Thanks | |
A very basic question: In the standard c++ structure, every .cpp file looks like this: MyClass::MyClass() ... MyClass::~MyClass() ... MyClass::function1(... MyClass::function2(... MyClass::function3(... It looks redundant to reiterate the "MyClass::" every time. I tried different ways to use namespaces for this, without success. It there any way to telll the compiler … | |
Ok, so im having a little bit of trouble. Just lettin yall know, im 13 and just started trying to c++ a couple of days ago (3 days) so i think im coming along quite well! But i've tried writing this script and can't seem to do it :/ so … | |
1. What are the most recommended books on c++ algorithms? 2. Algorithms in C++ by Robert Sedgewick - any experiences? Thx | |
Someone know a way to hide a process from task manager? | |
Hi all, Here [url]http://www.blackwasp.co.uk/VSRenameIdentifiers.aspx[/url] I read about a possibility to change identifiers automatically and consistently in VS. In my VS2008, I don't see the "refactor" menu item in any of the mentioned menus. Any ideas for what could be wrong? Any other ideas, how can I rename a class automatically … | |
Hi guys, Well, it's World Cup time and it seems only fitting that I submit something related to that. I was intrigued by the whole "Group of Death" concept. Intuitively (for me), a group of death should be a very unlikely event - yet they are always found in the … | |
what is a way to get numbers in 2 diff columns one column is whole numbers and the other are numbers with decimal places [CODE]int price=' '; // i am attempting to grab a number that has a decimal but its not the correct way int itemnum=' '; // i … | |
I always come to dani web whenever i have some difficulties. Thanks to all of you. I have a question regarding DLL's. A DLL file is to be written or we just write a CPP file and the compiler generates a DLL for this CPP? Please answer Thanks in advance | |
Dear All, Is C# able to do a project similar to a planner or maybe a simulator? Example: 1) User load floor plan 2) User 3) User drag and drop or select the devices and add to the floor plan 4) Program calculate total cost 5) if possible program analyse … | |
I am working on a RedRat code project for my job these days. The RedRat is a device that can be used to control 16 IR outputs, and my plan is to use this for testing of STBs with my own program. +++++++++++++++++++++++++++ For those interested >> [url]http://www.redrat.co.uk/software/SDK/index.html[/url] +++++++++++++++++++++++++++ I've … | |
I'm trying to connect to devices on a network through TCP , one is a wireless device with limited capabilities (a 802.11g transceiver with an incorporated SoC ) or the client and the other is a normal pc , the server . As the client is meant to be in … | |
I am coming from c++ and its nice STL. In C++ I could do this [CODE=C++] <include> string ... ... int nMyInt = 5; string sMyString; sMyString[5] = "b"; [/CODE] Ive tried this approach in c# but doing this way gives me this error [QUOTE]Property or indexer 'string.this[int]' cannot be … | |
i try create using win32 console application but it will come out with the stdaf.h header file i know to create a pure C i need to change the project to compile in C only and i did but the error stadaf.h keep popping out do anyone know how to … | |
I have an input file which is a 4X4 matrix, and each item of the matrix is represented by 4 digits 0's and 1's. 1 is closed and 0 means open, the direction is NSEW ( first digit represents North and so on..). I'm trying to recursively find my way … | |
error LNK2005: "public: __thiscall ClientList::ClientList(void)" (??0ClientList@@QAE@XZ) already defined in serverApp.obj in file: serverDlg.obj I get this error when i try to include my header I wrote. I looked this up on MSDN but don't get it. Its an MFC project if that helps. My clientlist header is just c++ not … | |
well... the predicament i am in here seems simple.. but i cant seem to get my head around it, and YES its for a school project, but its just a part i cant work out the thing is, i'm trying to read a line from a file and store it … | |
Hi, everyone! I have a new problem with my graduation work. :( My application must open database at runtime and modify data in this database. The database is random. For that reason I have no idea in which table will be inserted data or update or delete. The problem is … | |
Hello i have made a webbrowser using the webbrowser control in c#. I have disabled the new window event, and now I want to get the url of the clicked link to open this url in current window. Here is the code: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; … | |
hi i am having a problem integrating Lua into C++. I found a discussion about it here but it didn't help me. i have installed lua and i can see it in /usr/include and /usr/lib and /usr/bin i created the same code as the previous descussion [CODE] #include <lua.h> #include … | |
Hi!, I'm newbie here on daniweb.. and i dont know if i'm in a right place to post this problem. lol. *sorry for my english* anyway, will you please help me about Turbo C? My teacher gve us a sample problem and he starts it with this code : [code]#include<conio.h> … | |
Hello, Recently I've been doing some Windows API programming and I came across a problem. I want to make a console program that accepts commands, when the command 'win' shows up it will create a window with some automated features. Lets say I had a command sendfile [file-path] [where]. I'd … | |
I have an application that uses readprocessmemory to get information from another application. I think my application causes this other application to crash. Does anyone have any input on this? Why does it cause a crash and how can I change my application?? I cannot modify the other app thanks … | |
how can i write a program to calculate the median of matrix in file1 , and send the output to file2 .....???? can anyone help me please??! ======= sarah | |
The code runs perfectly, but when I press any button, for continuing the system Pause, it gives the error: Run-Time Check Failure #2 - Stack around the variable 'arq_linha_part' was corrupted. [code=c] #include "stdafx.h" #include "Sistema.h" #include <fstream> #include <iostream> #include <string> #include <sstream> #include <cstdlib> #define ZB 100.0 #define … | |
okay so here's the little piece of code that would be useful in a sudoku program that i'm making... this function leftover is simply extracting the set minus of two arrays. i don't know if logic's been having any problem but i think its pretty simple clear. oh, and i'm … | |
i have problem only declaring struct variable. i declare a struct in struct.h file and i wan main.c and class.h also using the same variable. But the class.h file say the struct is undeclare.. example: struct.h [CODE]struct car{ int year;};[/CODE] main.c [CODE]#include <cstdlib> #include <iostream> #include "struct.h" #include "class.h" using … | |
It's my school project, I wrote this C++ program with file handling. I am getting these errors and I can't understand what's causing the errors, if anyone can rectify my program, that would be great. My program :- [CODE]#include<fstream.h> // for C++ and File-Handling functions #include<conio.h> // for getch() and … | |
i have just started learning c++ i just want a program to print ood & even from 1-100 please help me ![]() | |
| |
Hi everyone, i want to ask question about how to make a multiple tree in c++. So i want to make a tree which contain more than 2 child(or node or leaf), but i don't know how to make a tree like this. does anyone have an example about this? … | |
hi guys how are you ?! hope every thing is alright. well i want to make something like this [URL="http://www.coderun.com/"]one[/URL] can anyone help me how could i start in steps ? what books should i read ?! Thanks your help will be greatly appreciated. | |
I am having trouble with this one. Whenever I run it I enter in the grade value and it starts repeating over and over really fast. What is wrong with it? [CODE]# include <iostream> using namespace std; int main () { cout << "welcome to my GPA calculator\n" << endl; … | |
I have some data in a table in mysql. I have written a program which can connect to the database and access all tables and data of mysql. I have a variable in the C program. I want a particular data in one of the tables in the database to … | |
I commented on the code what is my doubt. I don´t know I can´t I simply use arq_linha_part >> parm; If I use that it returns me the error: 1>------ Build started: Project: Interface GaussSolve, Configuration: Debug Win32 ------ 1>Compiling... 1>Interface GaussSolve.cpp 1>c:\users\fernando\documents\visual studio 2008\projects\interface gausssolve\interface gausssolve\interface gausssolve.cpp(38) : error … | |
Hy. I have to make a program to crypt a text entered from the keyboard whith aes 256 , but i have problems when i try to split the text in two.I get a bad_ptr when i declare unsigned char** intext=new unsigned char* [16]; [CODE] #include<iostream> #include <fstream> #include<conio.h> #include … | |
I am pretty proficient in C++ and Java. I know that most progrmas could be written in either language. My question for those of you who have been out there for a while, do companies tend to use one programming language for certain types of programs? For example, is C++ … | |
plz send me some imp in c & c++ urgently my exam is after 2 days | |
My entrada.txt jas the following contents: [code] #Commented text #This should be used like: #Bar:Bar_number:Type_of_the_bar; # # Bar:1:PV:1.05 [/code] So the lines that starts with # are commented so the program will not process them. Everything is working fine, but when I used getline() to delimit the string on ":" … |
The End.