51,593 Topics

Member Avatar for
Member Avatar for Daco

hi everyone, a friend of mine made a program that was bounded on your mac. a few days ago he released his code and i was interested so i downloaded it. i took the mac retrieving code and placed it in my own code. once all .h and everything were …

Member Avatar for sachin1_pangare
0
527
Member Avatar for MrGobroski

Greetings... I am trying to get a 2-d vector filled with a records form a dataset. this is what I have: [code] int StudentNum = 1, rflds; TDataSet *Students = DSet; String stu; rflds = Students->FieldCount; //Number of fields in the dataset vector< vector<String> > dataset(Students->RecordCount, vector<String>()); while (StudentNum <= …

Member Avatar for MrGobroski
0
171
Member Avatar for Imperial Advent

Hello, Well, not long ago i've been given a worksheet at school since I wanted to get into software development to achieve small games and useful programs. The worksheet is really simple and i've learned quite a bit on basics but I still need help. This is what I could …

Member Avatar for falguni.panchal
0
380
Member Avatar for Hummy
Member Avatar for Spartan552

Hi. I need to use a fstream variable for each instance of my class but... #include <fstream> class MyClass { public: MyClass(bool bKernel) { } std::fstream fichier; }; int main() { MyClass module(false); module = new MyClass(true); return 0; } This one wont work printing some weird errors : g++ …

Member Avatar for Duoas
0
242
Member Avatar for CPPRULZ

I'm trying to figure out how to use the atoi function I have wrote and understand this so far: #include<iostream> #include<cstdlib> #include<cstring> using namespace std; int main() { int x; string str="34"; x=atoi(str); cout<<x; system("pause"); return 0; } And Then I get error reports about a freakin const char?! HELP!

Member Avatar for CPPRULZ
0
575
Member Avatar for robertmacedonia

I get an error when I try to give this button a na ction of showing a new form. It says: `"error C2039: 'poeni' : is not a member of 'IgraBobi'"`. But this "poeni" form IS a member of the "IgraBobi" solution. I added it correctly, why doesn't it recognize …

Member Avatar for Wiki_Tiki
0
120
Member Avatar for friendlyguy

hey everyone! im kinda a bit stuck my friend is a mega coder in the 'gunz' (gaming) world and he has just made some thing. ohh he also said i need to do it in dev c++ (if that any use to any one) lol he sent me 3 files, …

Member Avatar for friendlyguy
0
146
Member Avatar for robertmacedonia

I got this error and have no idea what it means... May i get a little help please ? error C2059: syntax error : ']' [code][ #include <iostream> using namespace std; int broj (int be, int a[]) { int br=0; int f=0; int b[200]; for(int i=0;i<=br;i++) { for (int j=0;j<=br;j++) …

Member Avatar for robertmacedonia
0
86
Member Avatar for williamnz

Hi there, I have a custom class , lets call it MyClass. In the main part of my prog I want to run a cout which outputs say Myinstance. I would have though I would add it nt he stdiolib. But I want to add it in my class... Something …

Member Avatar for williamnz
0
2K
Member Avatar for phickman7872

Hi all, I am new to C on linux and have a question about I/O. I am trying to read input from the command-line: printf("What is your first name? "); scanf("%s", firstName); printf("What is your last name? "); scanf("%s", lastName); printf("What is your age? "); scanf("%d", &age); printf("What street do …

Member Avatar for yap.nice
0
401
Member Avatar for np2100

Hello, I was wondering about something. Whats the point of learning console programming (The black screen that comes up) when Win32 or another windows api has completely different syntax. Eventually the person will want to make an actual windows application so what would be the point of learning console first. …

Member Avatar for yap.nice
0
133
Member Avatar for gayatrisona

I am facing a problem in Borland C++ code. There is a database in SQL server 2005. Merge publication is done on the database. the borland c++ application connects to that database. There is one table in the database named DBTable which we are trying to open in the following …

0
50
Member Avatar for REJARR

As a part of school project, I want to create a program which allows easy access to details about books and about borrowed books. I am planning to create the digital library in command line mode. What are your inputs about the project and classes that I need to design.

Member Avatar for ArkM
0
84
Member Avatar for ee_girl

Hi!, I'm a first-year student at the university. When i am using Tubo C++ , i encountered a problem with inputting Date to graphics window. The code below here is the way to input date in text window, but i dont know how to input this into the gaphics window, …

Member Avatar for Salem
0
106
Member Avatar for r.ranu1

I am getting the error message "segment _TEXT exceeds 64 k" when i am linking my program in borland turboc3 3.0 compiler. Can anyone suggest a remedy for this. I have tried reducing some lines of text from my program but to no help and now i can't reduce any …

Member Avatar for Duoas
1
145
Member Avatar for BradenMurphy

hey all This would be my 1st year out of school and into college woohoo! My course is for one year and it is just based on programming... the languages i've chosen to do are C++ as my primary and Java as my secondary. My course has also included SQL …

Member Avatar for swaira umar
0
150
Member Avatar for Priya73

Hi all, Can anybody suggest to me a compelling reason to use any of the programming languages [C,C++ and Java]. Under what circumstances would you use one over the other. I am developing an application that will run on mobile device and for this I am wondering which one will …

Member Avatar for swaira umar
0
160
Member Avatar for adamj2

Hi there, I want to read 1 byte of information, in the form of an array of unsigned chars [1], from a file. I then want to use this piece of data to act as a secret key for a message authentication code I will be performing. The key will …

Member Avatar for ArkM
0
177
Member Avatar for duskrue

Hey all, I'm having trouble with an assignment for my C++ class. The .pdf has the assignment parameters, and the .cpp file has what I've written so far. Right now I've written the program enough to make sure the two strings (LastName and FirstName) get swapped correctly and put into …

Member Avatar for iamthwee
0
117
Member Avatar for scaraffe

Hey! I have a string str = "12354" . i want to create another string str2 with only the first two elements of the string str ie i want str2 = "12". can someone please tell me how i can do that?

Member Avatar for scaraffe
0
91
Member Avatar for Icebone1000

Hi(sorry my english) i used to use a library to manipulate characteres on the screen( like gotoxy() ), also the colors and the background color, but i really didnt like of it, it was very unknow. So, there is a library where i can send any character to a given …

Member Avatar for Duoas
0
95
Member Avatar for Samuelandjw

Hi! Everybody, I have several c++ sources files as following: main.cpp: [code]#include "A.hpp" int main() { return 0; } [/code] A.hpp: [code]#ifndef A_HPP_ #define A_HPP_ #include "B/B.hpp" #endif /* A_HPP_ */ [/code] B/B.hpp: [code]#ifndef B_HPP_ #define B_HPP_ class Foo { int foo(int val); }; #endif /* B_HPP_ */ [/code] B/B.cpp: …

Member Avatar for VernonDozier
0
108
Member Avatar for NickyU

can more variables have the same value in an enum ? eg. [code] enum boolean { true = 1, false = 0, TRUE = 1, FALSE = 0 }; [/code]

Member Avatar for Bench
0
120
Member Avatar for BradenMurphy

Hi for my assignment i have to create my own greater than operator for a string class. Basically the class acts as the std string class library but i gotta edit the greater than operator in it. The assignment says upper and lower case should be treated as equal eg …

Member Avatar for BradenMurphy
0
189
Member Avatar for complete

I have heard a lot of talk about hashtables from time to time. They are supposed to be very cool ways of storing data where the index you use to look up the data is somehow the data itself. But hashtables are not part of the C++ standard template library... …

Member Avatar for ArkM
0
111
Member Avatar for jeremyhowell

I am completely new to C++. I want to know how to make a simple text program that takes user input and performs one of two operations depending on what the user entered. thanks for all help.

Member Avatar for Salem
0
107
Member Avatar for vedmack

Hi i got an application that uses the mso.dll and MSOUTL.OLB : [code] #pragma warning(disable: 4146) #import "C:\Program Files\Common Files\Microsoft Shared\Office10\\mso.dll" named_guids #pragma warning(default: 4146) #import "C:\Program Files\Microsoft Office\Office10\MSOUTL.OLB" no_namespace exclude("_IRecipientControl", "_DRecipientControl") [/code] In which I'm trying to create an instance of the "Outlook.Application" in the following way: [code] _ApplicationPtr …

Member Avatar for Salem
0
166
Member Avatar for Wiki_Tiki

Hi everyone, I'm busy working on a program that needs to store settings somehow, and have the settings saved. I don't know how to do this, so I've written a test program. The object of the test program is to enter a 4-digit password, (sort of like a locker lock) …

Member Avatar for Wiki_Tiki
0
102
Member Avatar for Bazman76

I want to change the results of function deal() below which fills out a string array. In the watch window I can change the result of the memory location that the pointer points to, but not the string that begins at that address. Is it possible to keep the memory …

Member Avatar for Ancient Dragon
0
128
Member Avatar for robertmacedonia

Hi, may I ask for a little help ? I don't know how to type a command for selected radio button. I mean - for example - if radio button is selected do this... I know there is a function KeyPress, but do not know how to use it, thanks …

Member Avatar for John A
0
116
Member Avatar for goodmuyis

Can Anybody Put Me Through Out To Add Image To My Database? I've Been Trying But Easy. Get Any Solution Pls Reply Me Or <Snipped>. Thanks.

Member Avatar for goodmuyis
0
70
Member Avatar for brizhou

A programmer has been asked to implement a simple game that requires the use of a board to position and manipulate some objects represented by symbols. The programmer has implemented the board as a two-dimensional array of characters. The following constants have been declared as global to the whole program: …

Member Avatar for ssharish2005
0
160
Member Avatar for QuantNeeds

Hello, Finally I am down to the last issue with my program: text file writing and reading. My file has a function whose ofstream object does work and produces a text file for printing called "print". This function is the printTextFile(fstream &readFromFile ) function. But initially it is supposed to …

Member Avatar for Ancient Dragon
0
321
Member Avatar for Prabakar

I have mentioned this before, I have to use turbo c++ in class. [B]Problem:[/B] I wrote the following code & to my surprise the code passed the compilation without any problem. I was even more surprised with the output. I just don't understand whats happening. This code won't compile in …

Member Avatar for Prabakar
0
151
Member Avatar for edel

Please, can you help me to solve these problems??? I've compiled codes on linux with make command and.... THANKSSSSSSSSSSSSS trinity@trinity-laptop:~/a-saodv$ make gcc -Wall -pthread -g -DDEBUG -c -o main.o main.c main.c:3:20: error: config.h: Nessun file o directory In file included from main.c:12: /usr/include/linux/wireless.h:660: error: expected specifier-qualifier-list before ‘__s32’ /usr/include/linux/wireless.h:673: error: …

Member Avatar for CoolGamer48
0
297
Member Avatar for QuantNeeds

I am having some issues. I was trying to use my setToolName function to copy the string into the array – this would check if the string was too long. But then it does not capture 2 words, say if the string is “lawn mower”. So I started to use …

Member Avatar for QuantNeeds
0
141
Member Avatar for jhonnyboy

hey guys just joined the forum and so far it looks very promising :D got a quick question for everyone that can help, i am trying to organize a txt file to output the "gpa" from highest to lowest. Now this is what i have so far... [code]#include <iostream> #include …

Member Avatar for jhonnyboy
0
129
Member Avatar for darkivader

Hello, im new to working with windows controls and im trying to create a simple listbox inside a main window. It compiles fine, but when i run it, the listbox is all screwed up and im fairly sure that my error message is trying to pop up (but for some …

Member Avatar for mitrmkar
0
168
Member Avatar for mayoub

Dear DaniWebbers, If you would all be so kind to help me, I have a problem here and I am trying to know why this happens... In a large application I am working on, I need to have a struct of some sort with a sub struct-array and the sub …

Member Avatar for mayoub
0
145
Member Avatar for integer*09

In my development com there's no issue of handling 4MB of text file data but it took about 1-2mins for my program to finish. I got a few questions here: Q1-> how much can this string "line" store? Q2-> should i use sstrm.clear() and line.clear() inside the while loop or …

Member Avatar for vmanes
0
124
Member Avatar for eladio_ees

Hello everyone!!, i have a question for you, do you know any libraries to develop wireless network in C/C++ but available for linux/unix?¿ Thanks!!

0
75
Member Avatar for 2fac323

My program reads the data from the infile. But outputs the wrong results accept for lowest temperature -21 which is correct. I have played with the while loop where I believe the problem lies but have been unsuccessful in getting the right results. Can somebody steer me in the right …

Member Avatar for ArkM
0
523
Member Avatar for clutchkiller

I am just currently getting into programming, and was curious. I know you wouldnt call C an outdated language, but for someone like me, would it be best to learn c++ instead of starting on C? If im correct, C++ is object oriented and C is Structured correct? So if …

Member Avatar for Ancient Dragon
0
113
Member Avatar for kneel

how can the searching code be created? i've made a program named address book. now i wanna make a function that can search an existing contact details from the file through 2 ways 1) search by name 2) search by phone No. kindly define me the code in C++ thx

Member Avatar for Ancient Dragon
0
262
Member Avatar for SonxQ7

Well i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ …

Member Avatar for Alex Edwards
0
165
Member Avatar for sidatra79

Does anybody have any idea why the following code causes a memory error? Thanks everybody in advance :D [code=CPP]#include <stddef.h> // some older implementations lack <cstddef> #include <time.h> #include <math.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <list> #include <deque> #include <set> #include <iostream> #include <iomanip> typedef double element_t; using …

Member Avatar for ivailosp
0
91
Member Avatar for Sarlacc

I am currently working on a project to create a program to test a persons pitch perception. For this i need to be able to process a microphone input to find out what the note that is being sungs pitch is. What would be the best way to go about …

0
89
Member Avatar for tonyaim83

Hi I m trying to create a map of STL which has set as one of it's element. Following is snippet of my code [code=c] .. std::map<std:string,std::set<int,int> > map_of_set; int a=9; int b=10; std::string str="test"; map_of_set.clear(); map_of_set.insert(test,9,10); //This gives compilation error [/code] kindly help

Member Avatar for sidatra79
0
146
Member Avatar for 2fac323

This program needs to read the infile and calculate the temperatures for each function. I can only get it to output 0's. Can someone explain the steps needed to make this code work correctly? What am I missing? Should I be passing by reference? If so how?? [ICODE]#include <iostream> #include …

Member Avatar for 2fac323
0
165

The End.