49,757 Topics

Member Avatar for
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
103
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
111
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
277
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
107
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
Member Avatar for guest7

Hi, I have to call an external executable program (prog2) from within my program (prog1) and then use the output of that exceutable program (prog2) in program (prog1) after calling it. I have to manipulate the output obtained from progam (prog2) in program (prog1) and then perform this iteration n …

Member Avatar for guest7
0
107
Member Avatar for amerninja2

Can someone give me a link to a good tutorial or something on C++ Winsock FTP and HTTP communication. I know how to use TCP/IP, but when you connect straight to an IP, they have to be connected to the same network your on for it to work. If you …

Member Avatar for amerninja2
0
145
Member Avatar for amerninja2

I use the Dev-C++ compiler on a Toshiba laptop running on Windows Vista 32-bit. Im good in C++, and I have been learning to use the OpenCV (Open source Computer Vision) library with C++. When I run my C++ app, the OpenCV window that uses GUI freezes up. It shows …

Member Avatar for amerninja2
0
171
Member Avatar for BevoX

I have a rather simple question, and I' ve been looking for the answer for awhile, but did not find any. So I would like to know, what is the proper way of deleting a pointer. For example I have a class with some kind of array, which I want …

Member Avatar for BevoX
0
119

The End.