149 Topics

Member Avatar for
Member Avatar for harryhaaren

Hey all, I've a couple of large enough vectors in my code, talking about 88200+ floats per vector. I wanna copy the contents of one into the other. I've read around, some say [code=c++]vector.swap ( otherVector );[/code] is fastest? Currently I'm using the following: [code=c++]for(int i =0; i < vector.size(); …

Member Avatar for Narue
0
3K
Member Avatar for nika201

hello, I have a simple problem. I need to create a new table "smaller" using the data from an old table "larger" table. When I say smaller I mean it will have the exact structure as the older table but will have only a few records. Now, i know that …

Member Avatar for pritaeas
0
103
Member Avatar for Sarah Smith

Ok, so, I'm trying to copy an array starting at a specific based on the number of variables I have. I have the program give me the number of variables. What I need is to copy the original array, UnsortedArray, start at the index of var + 1. I have …

Member Avatar for lolafuertes
0
95
Member Avatar for Sarah Smith

Hello, I have a one-dimensional array that has one number per element. I also have a variable number, var. I need to take the number of elements from the first array that equals the var and put it into a second array with commas between the numbers. I would also …

Member Avatar for Sarah Smith
0
230
Member Avatar for anilopo

how should i prevent the shallow copying? every class i think i would need to copy i need to do the 'clone' function? is there a 'copy constructor'? the thing is - i have a constructor that gets objects as parameters. how do i copy it into the data member? …

Member Avatar for apines
0
197
Member Avatar for taylby

Hi; In need of some guidance. I have a form which has a list box upon it. with items in it. These items are dragged out of this and a custom control is added to the form. All this works fine. However a new requirement is that there should be …

Member Avatar for Diamonddrake
0
285
Member Avatar for AKJo

Using TMediaPlayer to play parts of .wav files. I would like to copy parts from .wav files and append to an other .wav file. Is there a way to do this, without physically connecting the speaker output to the microphone input and add noice and loose sound quality. I would …

0
98
Member Avatar for ace8957

Hi all, So I'm working on this program to use a circular doubly linked list to implement a queue class. It went fairly well, but I'm stuck on the copy constructor, which causes runtime errors whenever I try to test it. Nonetheless, I really don't see what I am doing …

Member Avatar for caut_baia
0
2K
Member Avatar for guptas

Hi all! i am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported [code] Imports System.IO Public …

Member Avatar for guptas
0
309
Member Avatar for Xufyan
Member Avatar for oscarp

Hi, I have a map of a base class object (not pointer to objects). I did this because I need to have inheritance from others types like this: Parameter RealParameter: Parameter IntParameter: Parameter ... My problem is that when I am going to insert in the map, copy constructur of …

Member Avatar for mike_2000_17
0
2K
Member Avatar for johnroach1985

Hi. I really know very little about linux scripting. And I need help writing this script. The script is to get one parameter which is <directory>. And than the following will ensue; [CODE] for each image within directory [INDENT]if not(image exist in temp-directory) [INDENT]cp image to temp-directory and resize to …

Member Avatar for rch1231
0
170
Member Avatar for hindu times

Any idea why the iFrame resize code would stop working when I copy the code over to another page? It works fine here: [URL="http://www.rjt-online.com/photos.php"]www.rjt-online.com/photos.php[/URL]. But when I copy the code over to another page ([URL="http://www.rjt-online.com/video.php"]www.rjt-online.com/video.php[/URL]) in it's entirity, and just change the urls, it stops working?

Member Avatar for fxm
0
370
Member Avatar for adi.shoukat

I want to write a Code in C which can create copy any given file (txt, bmp, jpg, pdf etc) what i've written so far is: int main(){ FILE *fp; char ch; FILE *fpW; if((fpW = fopen("file2.gif","wb"))==NULL) { printf("Cannot open Destination file.\n"); exit(1); } if((fp = fopen("file.gif","rb"))==NULL) { printf("Cannot open …

Member Avatar for Adak
0
2K
Member Avatar for fodor_dask

I have to make a folder listing, which I've created:[code=php]$dirPath = '.'; if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir("$dirPath/$file")) { echo "<div style='background-color:#0ccccc;'><a href='$file'>$file(directory)</a></div>"; } else { echo "<div style='background-color:#0ccccc;'><a href='$file'>$file</a></div>" . filesize($file); echo …

Member Avatar for diafol
0
130
Member Avatar for vista

Hi there. Okay heres the scenario. I have 2 tables "Logins" and "User_Details" What I want to do is write a PHP query that whenever a new user is created, that is manually entered into "User_details" table using a form, the next thing that should happen is that it should …

Member Avatar for vista
0
145
Member Avatar for wade2462

I figured it out. To return an array you need to write your function as so [CODE] int *foo() {} [/CODE]

Member Avatar for wade2462
0
95
Member Avatar for joseph2010
Member Avatar for joseph2010
0
142
Member Avatar for vino4all

Hi, I'm a newbie............ Sorry, if I violate any norms. Is it possible to copy any audio file or image file using C language? I think it is possible. If anyone knows it please guide me. If you know the code, that 'll be helpful.

Member Avatar for jephthah
0
222
Member Avatar for srikanth754

I have an object like this. List<TSQLBeginTransactionBlock_Ext> beginTranList =new List<TSQLBeginTransactionBlock_Ext>(); Now i want to make some changes to this object but i want the original object as well. I tried created a temporary object like this List<TSQLBeginTransactionBlock_Ext> tempBeginTranList =new List<TSQLBeginTransactionBlock_Ext>(); tempBeginTranList = beginTranList; then I've made changes to this temp …

Member Avatar for Diamonddrake
0
753
Member Avatar for icewolf

Hi There. I am trying to use libCurl to copy the contents of a webpage into a string in C. This is what I have so far: [CODE]void Cmd_translate_f (char *message) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, va("http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%s!&langpair=en|fr"),message); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); res = curl_easy_perform(curl); …

Member Avatar for icewolf
0
4K
Member Avatar for napkinbob

Hello. I want to copy a file from a UNC path (ex: \\comname\dirname\filename.txt) to a local destination (c:\outputdir) I have no compile errors, but when I run it, it throws an exception (System.IO.DirectoryNotFoundException). I'm absolutely sure the destination existst (it's referencing the destination directory). I've tried doing it with system.io.file.copy(source,dest) …

Member Avatar for fatiza
0
710
Member Avatar for Draculaboy1014

So I have this C code which is supposed to check if words from a input.txt are in a dictionary.txt document that I have created. Words in both texts are separeted by comas ej. dog,house,car@ and end with the "@" char. So far I have adjusted the code and it …

Member Avatar for gerard4143
-2
133
Member Avatar for cooldude9509

I'm new here at DaniWeb, and my english suck. Does anybody know how to make a form open [B]itself[/B], just in a new window? I want to make a form, that haves a button in it. when i click the button, it opens up a "copy" of itself (the old …

Member Avatar for vb5prgrmr
0
2K
Member Avatar for Namibnat

[COLOR="Red"]Note two things: First off, I don't guarantee that it works well. Writing to files, if done wrong can always break things. Be careful. I mostly participate in this forum (the Python part) for fun, and my code is written like that. Second: this script is about copying things. I …

Member Avatar for Namibnat
1
767
Member Avatar for MktgRob

I found this interesting blog post through one of my groups on Linkedin and I wanted to share it with everyone. Here is the link [INDENT][url]http://www.relationship-economy.com/?p=6591[/url][/INDENT] The basic premise is that in the world there are either creators or copiers and that is social media if you simply copy other …

Member Avatar for MktgRob
0
133
Member Avatar for adi.shoukat

I want to write a Code in C which can create copy any given file (txt, bmp, jpg, pdf etc) what i've written so far is: int main(){ FILE *fp; char ch; FILE *fpW; if((fpW = fopen("file2.bmp","w"))==NULL) { printf("Cannot open Destination file.\n"); exit(1); } if((fp = fopen("file.bmp","r"))==NULL) { printf("Cannot open …

Member Avatar for Dave Sinkula
0
210
Member Avatar for Brian.oco

Maybe the guy on those Biz Hubs commercials is right. Those nefarious multi-function business machines just might be out to get us. That's the position taken by a North Carolina compuer science professor who says those all-in-one multifunction business machines – the ones that print/ fax/ scan/ and copy -- …

0
168
Member Avatar for John A

Google is being charged with content copying by none other than... Microsoft. They are complaining that Google is copying far too much information, information that many people make a living on. Google's been trying to make the whole web searchable, everything from books to news to magazines. Although Google has …

Member Avatar for Chaky
0
185

The End.