51,593 Topics

Member Avatar for
Member Avatar for Leppie

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 …

Member Avatar for daviddoria
0
149
Member Avatar for hitmanner

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;

Member Avatar for amin_a
0
358
Member Avatar for svr2009wwe

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.

Member Avatar for tesuji
0
262
Member Avatar for tiger86

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

Member Avatar for rahul8590
0
236
Member Avatar for paddy8788

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 …

Member Avatar for paddy8788
0
150
Member Avatar for Hawkpath

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 …

Member Avatar for NathanOliver
0
139
Member Avatar for fandango

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

Member Avatar for Radical Edward
0
223
Member Avatar for ShortYute

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

Member Avatar for ShortYute
0
2K
Member Avatar for mteberlein

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 …

Member Avatar for mteberlein
0
282
Member Avatar for rennel

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 …

Member Avatar for tkud
0
104
Member Avatar for namanithi

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 …

Member Avatar for mimke47
0
954
Member Avatar for zentropy

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

Member Avatar for Ketsuekiame
0
360
Member Avatar for gidireich

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 …

Member Avatar for Radical Edward
0
147
Member Avatar for kiwimoosical

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 …

Member Avatar for Ancient Dragon
0
231
Member Avatar for literal

1. What are the most recommended books on c++ algorithms? 2. Algorithms in C++ by Robert Sedgewick - any experiences? Thx

Member Avatar for literal
0
109
Member Avatar for lahiruchandima
Member Avatar for gidireich

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 …

Member Avatar for gidireich
0
211
Member Avatar for daniel88

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 …

Member Avatar for daniel88
0
114
Member Avatar for timbomo

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 …

Member Avatar for Fbody
0
1K
Member Avatar for adcodingmaster

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

Member Avatar for adcodingmaster
0
171
Member Avatar for leejiaen1212

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 …

Member Avatar for Ketsuekiame
0
293
Member Avatar for memstick

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 …

Member Avatar for memstick
0
118
Member Avatar for emperor43

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 …

Member Avatar for emperor43
0
180
Member Avatar for wade2462

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 …

Member Avatar for wade2462
0
125
Member Avatar for hellosy

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 …

Member Avatar for Ancient Dragon
0
38
Member Avatar for Dimitar

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 …

Member Avatar for zentropy
0
74
Member Avatar for LevyDee

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 …

Member Avatar for LevyDee
0
69
Member Avatar for Ganty722

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 …

Member Avatar for daviddoria
0
86
Member Avatar for az7_neli

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 …

Member Avatar for az7_neli
0
955
Member Avatar for haro2x

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

0
65
Member Avatar for greeran

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 …

Member Avatar for StuXYZ
1
1K
Member Avatar for aianne

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

Member Avatar for Adak
0
314
Member Avatar for u8sand

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 …

Member Avatar for nbaztec
0
194
Member Avatar for nschessnerd

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 …

Member Avatar for nschessnerd
0
232
Member Avatar for sarah123

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

Member Avatar for rahul8590
0
192
Member Avatar for fernandofranca

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 …

Member Avatar for fernandofranca
0
924
Member Avatar for ronnieaka

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 …

Member Avatar for u8sand
0
213
Member Avatar for kiwihaha

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 …

Member Avatar for kiwihaha
0
1K
Member Avatar for dhruv_arora

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 …

Member Avatar for Ancient Dragon
0
349
Member Avatar for vsawant

i have just started learning c++ i just want a program to print ood & even from 1-100 please help me

Member Avatar for ZootAllures
-1
152
Member Avatar for web3
Member Avatar for sasTReSS

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

Member Avatar for sasTReSS
0
1K
Member Avatar for RehabReda

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.

Member Avatar for nbaztec
0
110
Member Avatar for kcband

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

Member Avatar for thelamb
0
95
Member Avatar for akand

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 …

Member Avatar for tesuji
0
548
Member Avatar for fernandofranca

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 …

Member Avatar for fernandofranca
0
158
Member Avatar for flaviusilaghi

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 …

Member Avatar for VernonDozier
0
147
Member Avatar for Squires

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

Member Avatar for surojit das
1
277
Member Avatar for ashima 2
Member Avatar for dhruv_arora
0
134
Member Avatar for fernandofranca

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 ":" …

Member Avatar for fernandofranca
0
983

The End.