51,593 Topics

Member Avatar for
Member Avatar for tonig_ccc

i wanted to ask you guys for some help i use microsoft visual studio 9.0 and i have downloaded hotspotter but it resulted it was all a source now i dont know how to compile it with mocrosoft visual studio any help???????????

Member Avatar for siddhant3s
0
134
Member Avatar for nanchuangyeyu

Hi, I am trying to declare a 3D array with the size of 6,400 and 400 in each dimension using the code as following: [CODE] short matrix[6][400][400]; [/CODE] but actually it introduced a run time error "stack overflow" after surviving the compilation.So what's wrong with this code and how to …

Member Avatar for ArkM
0
212
Member Avatar for Talguy

For my Electrical Engineering summer research project we're using a single mysql server and multiple iPhones. The iPhones are going to collect data and send it to the server which will populate the database with the data. I am new to socket/network programming so I need some pointers to my …

Member Avatar for Salem
0
83
Member Avatar for amateur2009

Hey guys, I need a favor. My text file looks something like - type1 10 5 6 0 3 type2 9 4 0 0 5 type1 10 4 0 0 7 type2 9 0 5 8 6 type3 7 3 7 0 9 type3 7 0 9 9 9 I …

Member Avatar for Salem
0
62
Member Avatar for free_eagle

Hello, I am starting out with learning C# language. Recently, I bought a book "VISUAL C# 2005, How to Program by Deitel". Later I found that there is 2008 version of C#. Would you please tell me what is the difference between these two versions of the language? Is it …

Member Avatar for jjoensuu
0
303
Member Avatar for karjan
Member Avatar for karthik.c

hi ,when im trying to insert key-value pair in map(key-char array field of a structure,value-entire structure)im having errors . NDBAPI/TGBitsNdbApi.cpp: In function `int get_map(Ndb*, char*, char*, void*, void*)': NDBAPI/TGBitsNdbApi.cpp:154: error: request for member `Msisdn' in `structPtr', which is of non-class type `void*' NDBAPI/TGBitsNdbApi.cpp:156: error: `void*' is not a pointer-to-object type …

Member Avatar for karthik.c
0
2K
Member Avatar for newbie_newbie

Maybe it's a really basic question..... ..but why does this NOT work? Respectively what options do I have to get this working? g++ reports: expected constructor, destructor, or type conversion before ... (I marked the line below in which the error occured.) Your help is very appreciated! Thanks! [code=c++] #ifndef …

Member Avatar for newbie_newbie
0
148
Member Avatar for phoenix911

[B]THE QUESTION[/B] with a positive integer s read from the keyboard, find all sequences of two or more consecutive integers whose sum is = to s.... for example.... if user enters 15 result should show 1 2 3 4 5.... 4 5 6... 7 8.... [B]MY TRY[/B] [ICODE]#include <iostream> #include …

Member Avatar for siddhant3s
1
202
Member Avatar for Sarlacc

I have some real time data that i want to show in an edit box but at the moment it only displays the first value when the program starts. What i would like to know is how to go about updating what is displayed in the edit box every so …

Member Avatar for Sarlacc
0
460
Member Avatar for gabohan

Hi Everyone. I'm pretty new to C++ and C, but I have experience with other languages (not OOP). I'm working on a project that requires me to take a working source code in C++ and convert it run in C. Luckily the inheritance diagram isn't too bad, so theoretically, I …

Member Avatar for gabohan
0
240
Member Avatar for ashishchoure

Hi, I have PCRE library for window 32 bit . I want it for window64 bit From where can i get this? I have source code also and i built it on 64 bit machine but created library is not supporting.

Member Avatar for ashishchoure
0
189
Member Avatar for VMG

Hi everyone, I'm trying to link a class with a library. The script is: /bin/sh ${BOREALIS}/common/bin/libtool --mode=link --tag=CXX ${BOREALIS}/nmstl/bin/wtf g++ -g -Wall -o $1$app $1.o -L/home/vincenzo/software/borealis-projects/LoadDistributionTool -lwld I get the error: Linker errors follow. This mode is untested; type "wtf 0" for the original output. cannot find -lwld in /usr/bin/ld …

Member Avatar for acastella
0
112
Member Avatar for szcfama

After adding information, when i choose the option "Display all" it crashes right before it's going to display GPA... can anyone help me...also can anyone help me read from the file into the array... plzz...this is really frustrating...any help greatly appreciated. [code=cplusplus]# include <stdio.h> # include <string.h> # include <iostream> …

Member Avatar for Daiva
0
175
Member Avatar for SallyJ

Can someone please explain what \n\n means in a line of text in C++? For example ("\n\nWelcome to Main Menu\n\n"); Thanks

Member Avatar for siddhant3s
0
6K
Member Avatar for soudruhcz

Hi, that's my first bigger work in C++. Programm works good but I don't know where I have to alocate memory. And for which structures or something else I have to do alocation? Can anybody help me? Thx. There is my code: [CODE=c++] #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include …

Member Avatar for soudruhcz
0
426
Member Avatar for Generalcrix

I am doing a program on payroll before any deductions are made but i seem to be encountering some problems. Here is the program [code=cplusplus] # include <stdio.h> # include <string.h> # include <stdlib.h> # include <fstream> # include <iostream> # include <cstring> using namespace std; typedef struct { char …

Member Avatar for Salem
0
141
Member Avatar for Poab9200

Hello I made the following program for someone on this site that had requested the game. I didn't have a problem making it. During some tests I conducted I ran into a problem, at least what had seemed like a problem. Player 1 will win on average 90-96% of the …

0
73
Member Avatar for Daria Shmaria

I'm writing a spellchecking program using a hash table. The hash table (a char * array) serves as the dictionary, storing words inputted from a file. However, a segmentation fault occurs before I can get through reading, hashing, and inserting all 60,389 words (the words are in alphabetical order, and …

Member Avatar for Daria Shmaria
0
163
Member Avatar for Slacker101

[code]class theGame { private: void question1();//You awake void question2();//Go find a sword void question3();//Go find armor void question4();//Find dragon void question5();//Kill dragon char answer1; char answer2; char answer3; char answer4; char answer5; public: void showQuestion(); void enterAnswer(); }; void theGame::showQuestion() { void question1(); void questoin2(); void question3(); void question4(); void …

Member Avatar for Stinomus
0
172
Member Avatar for szcfama

my C++ program is writing an array to the file...but how can i get the data to read into the array in my program?

Member Avatar for Ancient Dragon
0
30
Member Avatar for Daria Shmaria

Is there a way to convert from const char * to char * without casting away the const? I was warned that it could be dangerous and cause crashes (which I would agree with, since when I ran my program with const_cast, it caused a segmentation fault). Alternatively, is there …

Member Avatar for Daria Shmaria
0
30K
Member Avatar for anujsharma

hi can anyone tell me how to generate random number within certain limit as in between 10 to 20 etc .please help me Thanks anuj

Member Avatar for BestJewSinceJC
0
117
Member Avatar for arshad115

hi,i am trying to make a global integer array of size 32 in Windows forms.I am Using Visual Studio C++ 2008. here is my code: [code=c++] array<Int32^> ^garray = gcnew array<Int32^>(32); [/code] if i declare it globally then it gives the following error: "error C3145: 'garray' : global or static …

Member Avatar for William Hemsworth
0
124
Member Avatar for BlackStar

[ICODE] struct Node{ int n; Node *next; }; struct Some{ Node * ptr; }; int main() { Node *aNode = new Node; Some *aSome; aSome->ptr = aNode; } [/ICODE] Why do I get a Seg Fault here?

Member Avatar for Stinomus
0
220
Member Avatar for Lukezzz

I am writing 1 line to a file and close the file. Then after a few seconds the file will be open and written to again but then when using the code the string is overwritten. What I want to do is to continue write on next line. I am …

Member Avatar for Lukezzz
0
90
Member Avatar for johnnydarten

I am a C++ beginner and I am trying to write a code about an application for dynamic allocation in memory which uses chained hash tables to implement some data about persons iam using a no as a key and a name as my data I defined the class tables …

Member Avatar for johnnydarten
0
113
Member Avatar for BlackStar

if I get this down, then I'll complete my assignment. I want my program to have the ability that whoever is using the program has the ability to control how many customers a restaurant has. Say Pressing C = new customer. And depending on how many times they press c, …

Member Avatar for BlackStar
0
418
Member Avatar for honeybits

I took a test last night and I had a program due at the end. I could not figure out. I would like to understand what I did wrong and what I need to remember for future reference. Here is what I had and the instructions. Using the Visual Studio …

Member Avatar for efficacious
0
133
Member Avatar for vasek

Hello, I am happy to find this forum. I was trying to read a file to matrix matice. The input file looks like this: 7 1 4 5 6 9 3 2 2 0 7 6 8 6 1 2 4 2 9 1 7 2 3 8 [code=c++] #include …

Member Avatar for homeryansta
1
132
Member Avatar for ClimaxBeetle

How long does it take to count 1 billion? Determine the amount of time it takes the program. [CODE]Int i,j,k, count=0; For (i=0; i<N; i++) For (j=0; j<N; j++) For (k=0; k<N; k++) count++[/CODE] to complete in your programming environment, for N=1000, and 1000. If your compiler has optimization features …

0
96
Member Avatar for dirnthelord

I am trying to implement these patters using for loop....I am having difficulties with them....If someone can help, would be great!! I attached the pattern to a Image.... [ATTACH]10180[/ATTACH] I tries this code for the third pattern...I have no Idea how to get them done....can anyone post codes for all …

Member Avatar for arshad115
0
151
Member Avatar for youngfii

I have this loop i made and just cant figure out why it wont stop running..can some one help ..I just need it to say what decision i made then stop...or display the ol' press any key to exit app..God Bless.. [code=cplusplus] #include <iostream> #include <cmath> using namespace std; int …

Member Avatar for arshad115
-1
110
Member Avatar for arshad115

Hi,I want to create a picturebox at runtime.i mean when i click a button then,the picturebox is created. i have tried this code, but it doesnt work. [code] PictureBox^ pct; pct=gcnew PictureBox; pct->Location = Point(240,210); pct->Size.Height= 30; pct->Size.Width= 30; pct->BackColor.Aquamarine; Controls->Add(pct); pct->Visible=true; [/code] i am using visual c++ 2008. after …

Member Avatar for arshad115
0
795
Member Avatar for kailisr

//I am haing trouble creating this program. There is basically only one part that I can't figure out. I need to match up my array to my string. I need something that will force the first strings in each to equal eachother, then use a counter to match the rest. …

Member Avatar for tux4life
0
128
Member Avatar for yairzick

I have a class holding a pointer to a templated class: [ class A { protected: Feature<Base>* m_p_feature; }; now I want to derive A with some derivative of Base: class B : public A { public: B() { m_p_feature = new Feature<Derived>(); } }; where Derived is Derived from …

Member Avatar for siddhant3s
0
93
Member Avatar for Arumugams

Hi, I am new for writing plugins.Dont know how to start.Can any body provide link or sample codes for plugins.

Member Avatar for tux4life
0
54
Member Avatar for arenq

Can you tell me which basic operations on a list can cause an use of stack proportional to the size of the list? (I mean, looping on all elements...) I have problems with stack size. Is iterator post-incrementing dangerous in this sense?

Member Avatar for arenq
0
83
Member Avatar for K'rul

Can anyone help me fix these?Program displaying and writing symbols to my file... And also after calculating GPA , when choose function read or display all it is illustrated as null....help plz [code=cplusplus] # include <stdio.h> # include <string.h> # include <iostream> # include <fstream> #include <stdlib.h> using namespace std; …

Member Avatar for K'rul
0
101
Member Avatar for still_learning

I am working on solving several problems and this is one that I came across which I am not sure how to solve. If someone could help me here that would be great. Here is the problem, thanks much in advance: Your boss comes up with the following idea: Move …

Member Avatar for siddhant3s
0
157
Member Avatar for Gurdinho

Hey everyone, I've just a simple question for you. I've an array like a[10] = {23, 17, 35, 67, 43, 52, 97, 83, 73, 29} How can i shuffle the order of this array's elements? (randomly) Thanks for your interest and your help... Have a nice day...

Member Avatar for ArkM
0
101
Member Avatar for cool_aj

Hi there, I tried to use the above compiler for C.For every program I get the following message. I followed the tutorials,but can't figure out what am I missing in order to compile and run programs efficiently.It is not the code,as I have tried a number of programs which run …

Member Avatar for cool_aj
0
130
Member Avatar for Duki

I am trying to convert an array of longs to an array of chars. There are 1081 elements in the long array. Each element is 4 digits long. Is there a function in C++ that will convert a long something I can store in the array or could someone point …

Member Avatar for tux4life
0
251
Member Avatar for Topi Ojala

Greetings from a newbie! I'm creating a game of a sort where objects move and collide on a 2D ASCII map ( vector<vector if u will ). I'm having hard time calculating the projectories of ranged weaponry. Not sure if this problem is more mathematical than C++ related, but here …

Member Avatar for amrith92
0
292
Member Avatar for azjherben

I was told olny the computer / home that the "host program" was in needed to be port forwarded, but you need port forwarding just to use the client too. Base code for client program: [code] //Main.cpp #include <iostream> #include "Socket.h" #include <fstream> #include <string> using namespace std; string getcot(char …

Member Avatar for azjherben
0
102
Member Avatar for 1obama

Two files be placed , to certain composition of (warehouse of) simple project entering, template calculates inclusive < include (reach; make) > Array and it operation of template with (from) method several instructions of codes ( ) demonstrating main. Task relies on making of new template representing calculator, be based …

Member Avatar for monkey_king
0
81
Member Avatar for ekansh

hello people, I am very new to this forum and its my firs post I want to create a simple client server c++ application for exchange of messages over internet I have written a client server using sockets and is working perfectly on LAN. I am using UDP . could …

0
61
Member Avatar for Sune

Hello I have started to study C++ after having worked with a procedural language for many years. I have read a couple of C++ books (hmm, well at least looked into) and some tutorials about C++. I started to prepare a C++ quick reference guide for my own usage and …

Member Avatar for e.shankar87
0
228
Member Avatar for pferian

Hy, I have to develop an application usign Visual C++ 2008 that should handle (open, change cells and save) some Excel 2003 sheets. I am using .NET Framework 3.5 and the COM reference Interop.Excel.1.5. Does anyboby knows how to code this? Thanks.

Member Avatar for pferian
0
152
Member Avatar for mufon

My problem is that when is changed size window or is changed colour of object, it stop to work, not immediately but after short time drawing, I don't have idea where I work with memory or something like this what is responsible for this problem. If you have some idea, …

Member Avatar for Ancient Dragon
0
103

The End.