49,761 Topics

Member Avatar for
Member Avatar for rajesh_pec

please can anyone help me in writing code for the below question in c++ as am weak in c++ a. Write and test a function for the vertex-insertion algorithm (insert a new vertex, given a specification of all vertices adjacent to it)

Member Avatar for skatamatic
0
103
Member Avatar for Alex_

Hello, This is the problem: I get the right function call only from the 3rd derivated class, when the other twos are called are not. Source : [code] #include<iostream.h> #include<conio.h> #include<string.h> class IV{ char *loc; public: IV(){loc=NULL;} IV(char *_loc){ loc=new char [strlen(_loc)+1]; strcpy(loc,_loc); } ~IV(){ if(loc) delete [] loc; loc=NULL; …

Member Avatar for Alex_
0
150
Member Avatar for philzz

Using Dev-cpp, a small program compiles but the resultant .exe file does not run. From the DOS command, it runs. When I try from the windows run command , it flashes but immediately goes away.

Member Avatar for skatamatic
0
194
Member Avatar for harryoma
Member Avatar for Swemp

Hi, Can I check a two-dimensional array like this ? The content of the arrays are of type [I]char[/I] [code=c++] matrix[0][0] == matrix[1][1] == matrix[2][2] [/code]

Member Avatar for Swemp
0
105
Member Avatar for Phil++

Hey, I am creating a project that writes to a file. The problem is that I don't want it to write to a file on my computer but to a file on my server. I am using this [CODE]ofstream myfile ("www.myurl.com/test.txt");[/CODE] What I want to do is open that file …

Member Avatar for Phil++
0
58
Member Avatar for perl1user

Hi, I'v tried to compile a small test program with cc/gcc but I'v got the following error: /tmp/ccD16111.o<.eh_frame+0x11>: undefined reference to '__gxx_personality_v0' collect2: ld command 1 exit status I did EXACTLY as in the book. What can I do ???????? [code] #include<stdio.h> int main(){ printf("0"); return 0; } [/code] [email]cvv3@yahoo.com[/email]

Member Avatar for Salem
0
119
Member Avatar for Bladtman242

I know there is [i]a lot[/i] of threads about books but i didn't find what i was looking for:) so here goes. how is the book ^^ made? does it explain the commands? becaus im a bit fed up with tutorials that just say "write this and write that" when …

Member Avatar for Bladtman242
0
162
Member Avatar for perl1user

calling C/C++ function from perl from : [email]cvv3@yahoo.com[/email] Hi, how do I call a compiled C/C++ function from perl ? Let say I have a C/C++ function: [code] *char func(char *ptr, int len) { ... return str;} [/code] Now i wonna call it from perl

Member Avatar for perl1user
0
114
Member Avatar for thilinam

please tel me how to use my classes declarations and definetions in c++ with vb.net

Member Avatar for Ramy Mahrous
0
69
Member Avatar for Lukezzz

I am passing 2 Strings^ from Form2 to Form3 when I open Form3 so I can get these in Form3 in the code below. This works fine. [COLOR="Green"]//In Form2, I pass along 2 String^ to Form3[/COLOR] [code] [COLOR="Green"]//Passing along n1 and n2[/COLOR] Form3 ^form3 = gcnew Form3 ( Convert::ToString(n1), Convert::ToString(n2) …

0
52
Member Avatar for aramakri

I have a wstring variable which holds a value of a time("20090106103842") in the format YYYYMMDDHHMMSS. How can I convert it to a time_t format

Member Avatar for Murtan
0
54
Member Avatar for mrnutty

I am just curious, just how much of math do one really needs in order to make, say space invaderes, or pacman....WOW,..NBA LIVE 2009? It's not that i am bad at math or anything, in fact I am pretty good at it and still learning, calc.II. BUt i am curious, …

Member Avatar for mrnutty
0
140
Member Avatar for Crul

Hi, I'm programming a simple line editor but I'm running into 1 issue that I just can't seem to figure out. I'm not the greatest at C++, if somebody could have a look I would be grateful. Basically I have this Main... [url]http://pastebin.com/m6e249679[/url] Then I have this source file... [url]http://pastebin.com/mdb671dd[/url] …

Member Avatar for Ancient Dragon
0
117
Member Avatar for xyzt

Hello It would be great if someone suggest me a library for handling configuration files.Is there a general method for this job? PS:i need it for *nix platforms Thanks in advance.

Member Avatar for Ancient Dragon
0
119
Member Avatar for Bladtman242

I know i can use fstream to create, edit and read files in c++, i also believe there is a different way wich i am unfamiliar with. but is it possible to work with files NOT in the same directory as the program? like if the program is in C:\programfiles …

Member Avatar for Bladtman242
0
278
Member Avatar for venomxxl

Hello, I'm quite new here, but there's a problem that needs solution. I think the title says exactly what I want to do. I need to use C for a reason I don't think is this important to mention. I tried searching Google, and found the same solution on most …

Member Avatar for venomxxl
0
381
Member Avatar for namita.mundada

I have created one binary file in c that save btree. File is having huge size around 2GB. If some one changes this attribute to read only, then b tree is updated incorrectly. And the behavior of code changes. I need to write a code, so that no can change …

Member Avatar for namita.mundada
0
128
Member Avatar for guest7

hi, How can i pass a stack to the function. I am getting compilation error. Following is my code. [code] class circuit { public: int append_and_file(stack<int> &); /* Some other variables defined */ } int circuit::unroll() { append_and_file(add_stack_ppi); } int circuit::append_and_file(stack<int> &stack_ref) { int var=0; int num_clauses = 0; stack_ref.push(2); …

Member Avatar for Comatose
0
141
Member Avatar for mitulgolakiya

Hi ! I am creating one application and I want to change the background of my button. How can I change my button background and put image in background ?

Member Avatar for mitulgolakiya
0
115
Member Avatar for 35nando

Hi, i'm looking for some library that provides solving matrix determinant. My matrix contains complex numbers (complex.h). Please write me some hints

Member Avatar for 35nando
0
2K
Member Avatar for idb_study

Hi all, I have tried to write a program which can add two matrix. It is running well....but when I am printing out the resultant matrix it is just showing the address of the resultant elements. For convenience, I have posted the output also. [B]Program:-[/B] [code=cplusplus] #include<iostream.h> int main() { …

Member Avatar for idb_study
0
99
Member Avatar for dmanw100

I tried Googling this to no avail: how can I request the used space/ total size of the hard drive? In this case it is safe to assume that the machine will be running Windows.

Member Avatar for dmanw100
0
92
Member Avatar for Zach1188

This is my first C++ program that I put any serious effort into. You may have seen the trick that allows you to start explorer.exe as the SYSTEM user (by running "at /interactive xx:xx explorer.exe", adding 1 minute to the current time). It takes a lot of jumping through loops, …

Member Avatar for Murtan
0
114
Member Avatar for Swemp

Hi, I have a problem with the use of vectors. As you can see, the program asks the user for a row of positive whole numbers. These numbers will by put in a vector called "getallen". Than the numbers in "getallen" will be sorted by the function "sorteerint" and number …

Member Avatar for Ancient Dragon
0
156
Member Avatar for takora

Hi there. I have to modify some variables stored in a pointer say xx. From VC++ debug Watch Window, I can expand xx to several data ([yy], _a1, _a2, etc). So, when I add xx->_a1=0.22 (it is a double type), it is OK. But, when I try to do xx->yy=0.34 …

Member Avatar for Ancient Dragon
0
74
Member Avatar for harryoma

hi, i need some help with adding numbers in array. the arrays are the same size, but the new array must be the same size as the first two. i know how to add two arrays but i don't know how to make the case for bigger size and say …

Member Avatar for harryoma
0
91
Member Avatar for Blackeagle

hello, i'm trying to to get the time of my sorting function in seconds, and i always get ZERO time. here is what i'm using: [CODE=C]clock_t t1,t2; t1=clock(); clock_t IT I.insertion(A,200000); t2=clock(); IT=((t2-t1)/ CLK_TCK)*10000000000000000000;[/CODE] i print the IT and get ZERO. can someone help me with that issue?

Member Avatar for StuXYZ
0
108
Member Avatar for mrnutty

#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; /* 215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? */ //my logic is to export 2^1000 into a text …

Member Avatar for Rashakil Fol
0
138
Member Avatar for Roko1

Hi. I have a problem with my SDI application. When I start Telnet, I can connect or disconnect to my server app with no problems, but when I send something to it.....nothing happens. I have an OnRecieve() function in my custom socket class so I can't understand where my mistake …

0
42

The End.