- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Plz answer my these C doubts- Q. 1- If i have 3 source files and i declare a static variable in the source file s2.c then which statement is true:- That static variable is created when the program starts executing and is destroyed when the whole program finishes executing. OR … |
|
Re:
[I]<<snip>> [/I] Original article can be found here: [url]http://www.cs.cmu.edu/~gilpin/c++/performance.html[/url] |
|
Re:
I am programing in MFC .NET, and I am encountering a problum in adding the symbol '' to a CString object. This is naturaly due to the fact that the symbol is used for such things as \n \t ect. How do I go about it? say I have the … |
|
Re:
Code in VC++.NET I have a string that has html tags. I want to replace <BR> with \n, but not sure if <BR> will be uppercase, lowercase, or a mixture of both. The string replace function allows only one parameter for the replaced value. Is there a better way of … |
|
Re:
[qoute] If you have a folder called Data in your C drive, in Data folder there are day_01.txt, day_02.txt ,……………………day_30.txt . you need to build a program that called the file according to it previous date, so if the date 2/10/2005 you have to call and open file day_01.txt. Notice1: … |
|
Re:
int p(int x) { if(x<3) return x; else return p(x-1) * p(x-3); } say m(x) is a number of multiplication operations that the execution of p(x) performs. what can be recursive definition of m(x)?? Answer should be (x-1)*(x-3) . Am I wrong? |
|
Re:
Below I have attached 4 methods from my linked list class. 1) find 2)remove 3)retrieve 4) Insert. what I'm trying to do is write code that will let me MOVE the position of a node to another position in the linked list. Anyone got a clue?? regards Tim [code]SeqItemType Sequence::retrieve(int … |
|
Re:
Hi guys,, i want to have C to my PC..i am using win XP. anyone can help me please |
|
Re:
Hi, I have difficulty declaring a hash_set. I would like a hash set where the key is a structure Point3d (typedef Point3D {short x,y,z}) and the value in the set associated with the key an int. I don't quite understand how to declare it ... something like hash_set< const Point3D, … |
|
Re:
So I'm writing a program (MFC) that connects to a server w/ windows sockets (YUCK I know). I left it running as part of an endurance test the other day, and my PC ran out of virtual memory. Odd eh? So I ran it again using task manager and noted … |
|
Re:
Hello Im trying to understand and explain how the quick sort code actually works, i unable to understand or xplain line 4 to 11. Can ne of u xplain to me briefly what those lines actually do in the code algorithm.... Apreciate ne help. [CODE]do { while(strcmp(array[i].Genre,x)<0 && i<right) i++; … |
|
Re:
Hey guys, the following code is part of a program I am working on and as a newbie to c++ I have come across a problem. As you can see when the case is J the int J is increased by 1 but how do I go about doing this … |
|
Re:
If any body knows it, Pls. post me reply to this |
|
Re:
1) Plz explain these complex declarations(from K&R).-- [CODE] char(* (*f())[]) () // f : a function returning pointer to array[] of pointer to function returning char. char(* (*x[3])()) [5] // x: array[3] of pointer to function returning pointer to array[3] of char. [/CODE] The one line explanations which r given … |
|
Re:
I have a problem i have a fully operational C++ code that works but when i convert it to ASM (assembly) code it doesnt work I dont know where I am going wrong but here are both codes.. [code] #include <iostream> using namespace std; int main() { int n, tmpA, … |
|
Re:
Hello, I am having trouble with arrays. Basically, this is what happens: [code] vector <char*> constArray(10); char* changingString = "hello"; constArray[0] = changingString; changingString = "hi"; printf("constArray[0] = %s\nchangingString = %s", constArray[0], changingString); [/code] Output: constArray[0] = hi changingString = hi So, I think constArray[0] is changing because it points … |
|
Re:
im trying to do a sort for the array structure records that i have entered... so far i've tried to use a book to do the coding...but im lost.. can anyone tell me if im on the right track or where im going wrong!!! [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> … |
|
Re:
Hello, If I want to check my algorithm if it works good in every cases so can i check very outer cases and then I can conclude that my algorithm works well in all cases? |
|
Re:
We can call static member function through both class name and objects...but we generally use class name to call static member function instead of objects.... Is there any performance benefit in it by using class name or is it just to remove confusion by not calling through object |
|
Re:
Hi guys, Will you guys please suggest me some good books for TEXT compression with programming examples given in c or c++. Hope you guys will help me. :) prasath. |
|
Re:
The code below compiles but produces the wrong output. The code is supposed to convert an infix string to postfix. the current output is only the arithmetic operator, unless there are parenthesis then it will only show the right parenthesis. I have been woking on this for hours and am … |
|
Re:
[B][COLOR=Navy]This is an ongoing question going through my head.... I've been doing C++ programming for about 4 months now. Been using Deitel's C++ How to program book. Learned from the basics till data structures like link lists, queues, stacks, trees..all using templates, vectors, pointers. File processing (sequential and random). Well, … |
|
Re:
Ok i decided to start from scratch for my CD database. I've created an array structure, i can enter the fields, but for some reason it dont display to screen neone know why please??? also how can i add an option to either add more records or just quit . … |
|
Re:
Hi everyone.. Have you ever head of Ruby programming language? Waiting your comments and help |
|
Re:
Hey everyone, I'm writing a program for a class. It's a relatively simple C program that I'm compiling in Dev C++. I'm trying to make it as complex as possible, but I'm just a college freshman and don't know much beyond the basics of programming. I'd like to enable option … |
|
Re:
I am try to write a C++ program that tells the eldest and youngest sibling in a family. i try to write write a member function that overloads the > Operator to sort the Siblings according to their ages after making comparisons.but i am fail. please someone write this. thanks … |
|
Re:
I would like to sort the temp.txt contains like the following. 1_r0.png 1_r10.png 1_r100.png 1_r105.png 1_r15.png 1_r150.png 1_r155.png 1_r160.png 1_r20.png I want the sorted result to be 1_r0.png 1_r10.png 1_r15.png 1_r20.png 1_r100.png 1_r105.png 1_r150.png 1_r155.png 1_r160.png like the above. Anybody can help me? I used sort -n temp.txt sort.txt But … |
|
Re:
ok so here is what im doin. Given a square matrix, write a program that determines the number of white(numbered) blocks and total number of squares in each of the white blocks. By definition, the outside boundaries of the matrix must be shaded(0). A block of white squares consists of … |
|
Re:
This code is written in VC++.NET. I have a windows form that display data from a socket port using callbacks. I have main.cpp that calls Application::Run(new Form1). The socket processing code is currently in the Form's file. I want to separate the Form1 from the socket processing code. Put the … |
|
Re:
If you would be so kind to go to this url, where I have already posted my problem and give me some tips on this forum or on the one already posted: [url]http://www.linuxquestions.org/questions/showthread.php?s=&threadid=387067[/url] Thanks in advance, P.S. This is really urgent, and it is probably a small problem. Some updated … |