Posts
 
Reputation
Joined
Last Seen
Ranked #226
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
93% Quality Score
Upvotes Received
14
Posts with Upvotes
14
Upvoting Members
11
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
10 Commented Posts
~73.4K People Reached
Favorite Tags
Member Avatar for Alex Edwards

Hmm... I've made it my top priority to get a Master's and Ph.D in Computer Science and Software Systems... however I'd like to know what a suitable Master's Thesis would be? I'm thinking about making a book, maybe 6000 pages long, pertaining to nothing but Software ideals and technology. This …

Member Avatar for KelvinG
0
1K
Member Avatar for stilllearning

Hi, I looked for this information, but couldn't find it anywhere. Is there a difference between a "template class" and a "class template" or are they just two different ways of saying the same thing ? Thanks a lot.

Member Avatar for parchuresunilv
0
2K
Member Avatar for rrreeefff

Hello, I am trying to compute the GCD non-recursively. I have no errors but when I run the program it aborts because it says c is not intlized. [code=cplusplus] #include "stdafx.h" #include "stdio.h" int main (void) { int a,b,c,r,result; printf("enter a value for a\n"); scanf ("%d", &a); printf("enter a value …

Member Avatar for deceptikon
0
304
Member Avatar for em_jay

I need help in deleting all the leaf nodes in BST void BinarySearchTree::removeLeaves() { removeleaf(root); } void BinarySearchTree::removeleaf(tree_node* p) { if(p != NULL) { if(p->left) removeleaf(p->left); if(p->right) removeleaf(p->right); delete p; } else return; } can someone check my code. pls

Member Avatar for shroog
0
1K
Member Avatar for nezhad

Hello; I have 2 questions: 1- I know you can allocate memory to an array dinamically in C and C++. But, can this be done if the array is part of a structure? 2- Can the size of a dynamic array automatically grow up to a maximum or do you …

Member Avatar for nataraja833
0
572
Member Avatar for shopnobhumi

Hi i have just started my c++ class and really having hard time with that.i was assigned to draw a graph which should look like dis : ***** ***** ***** ***** ***** This is what i am trying but getting only this result : ***** * * * * Please …

Member Avatar for kavita_gunaji
0
806
Member Avatar for onemanclapping

hello. I'm doing a program in c++ and I need to use a system call to "clear" my screen. for linux I use system("clear") but in windows the same is system("clr"). is there some way to find which OS is being used at the moment of execution so the program …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for basukinjal

Suppose we have two array inorder and preorder containing the elements in the said format. Using these two arrays how can i generate the binary tree?? Any help on the algorithm to be followed will be highly appreciated. For eg: inorder is : 2 3 4 5 6 7 8 …

Member Avatar for xinhedanti
0
499
Member Avatar for stilllearning

I am really new to this, so please excuse me if this is a dumb question. I am saving some data using ruby on rails and one of those fields is a background for the divs I am rendering back on load. I created the partial layouts successfully but I …

Member Avatar for blocblue
0
114
Member Avatar for stilllearning

Hi, I have some code which creates an extremely long table row, and I've been able to clean it up to a point where my performance is fairly decent. What I am trying to figure out is if its better in terms of speed to use divs as opposed to …

Member Avatar for scrappedcola
0
104
Member Avatar for ishwarverma

Hi guys, i am having some problm while building my C code through VC++6.0. The following error i am getting while building: --------------------Configuration: ReportVARS - Win32 Debug-------------------- Linking... ReportVARS.obj : error LNK2001: unresolved external symbol _BTRV@24 PHCLUST.OBJ : error LNK2001: unresolved external symbol _BTRV@24 BTRVUTIL.OBJ : error LNK2001: unresolved external …

Member Avatar for Member 784668
0
323
Member Avatar for SilentDuck

I'm trying to create this pattern: [url]http://mathworld.wolfram.com/Rule60.html[/url] I cannot get my code to print this. It runs, it just does not print the right pattern. I know I am doing something wrong, I'm just not sure what. [CODE] #include <iostream> #include <fstream> using namespace std; int main() { //Declare variables …

Member Avatar for Banfa
0
207
Member Avatar for Kombat

Ok so for my program it prompts the user to enter 32 bits each separated by a space. But while debugging I would like to be able to load a txt file or something that contains the 32 bits instead of having to enter it each time I test it. …

Member Avatar for WaltP
0
77
Member Avatar for tones1986

Hey guys - i am working off three files that contain information on associates and their sales. The files are: products: (product ID, name, price item) % cat products 103:sway bar:49.99 101ropeller:104.99 104:fishing line:0.99 ... 108:wheel:49.99 111:lock:31.00 102:trailer hitch:97.95 sales: (product ID,num. sold, date sale, associate ID) % cat sales …

Member Avatar for bobydavid71
0
197
Member Avatar for Eko

Hi guys , In Visual Studio 2005 I compiled the following code [CODE] int main() { float a; a=0.1; if(a<0.1) { printf("C\n"); } else { printf("C++\n"); } } [/CODE] I was very surprised when I saw the output C++ . I got the warning C4305 :" '=' : truncation from …

Member Avatar for dwayneb
0
5K
Member Avatar for preet4fun

A bank updates t customers'' accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer's balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 …

Member Avatar for puranchandra248
0
2K
Member Avatar for tundra010

Hi I have Microsoft Visual C++ 2008 Express Edition and I downloaded fltk from fltk.org. When I tried compiling it, i got many of these errors: LINK : fatal error LNK1181: cannot open input file 'fltk.lib' How do i compile FLTK now? Please help

Member Avatar for tundra010
0
268
Member Avatar for Chumpcash

Hey, I really need some help fixing the errors in this source file! I honestly don't know how to fix some of the errors. This assignment has to be submitted it 2 days. I've looked for the missing sytax errors and the other ones but i just cant seem to …

Member Avatar for Yiuca
0
164
Member Avatar for wislean

hi i need help with my grading program i need to do something so the menu comes up and make it work property i have no idea on my switch statement and how to delete student from list please help me [code] #include <stdio.h> void main() { int ssn[1000]; int …

Member Avatar for csurfer
0
135
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
107
Member Avatar for DemonGal711

Okay, I'm making a program that will let you traverse a maze where the beginning is the top right corner (coming from the right) and it ends in the bottom left corner (going to the right). We have a 2D array for the board and are using a stack to …

Member Avatar for stilllearning
0
124
Member Avatar for Niner710

Hi, I keep getting an error in Visual Studio C++. I am trying to create a copy constructor but keep getting this error. "Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, and indicates a bug in test.exe or any of the …

Member Avatar for skatamatic
0
166
Member Avatar for rrlangly

I'm trying to create a central event system for my game where I add some events to a priority_queue and pull off the first one as soon as it expires. But I'm having a problem of understanding if I'm adding them to the queue correctly, if they're in order, or …

Member Avatar for stilllearning
0
152
Member Avatar for tefismp

Someone out there please help me i must do a function for a bucket sort but i dont know how and the only things i must use are normal arrays and pointers no strange functions and libraries i need the code in c++ please i know what the program does …

Member Avatar for Freaky_Chris
0
161
Member Avatar for christiangirl

I need to print the contents of an array backwards, but every time I try it just prints a a smiley face, or something like that. Here's the code, it isin three files: [code] main file: #include <iostream> #include "testArray.cpp" using namespace std; int main() { testArray test; char ch; …

Member Avatar for Freaky_Chris
0
240
Member Avatar for koman

[code] #include <iostream> using namespace std; int main () { int j; int t; int p; int num; cout << " Please enter an even integer greater than 2: "; cin >> num; for ( int i = 2 ; i < num; i++ ) if ( ( i == …

Member Avatar for stilllearning
0
156
Member Avatar for RonaldvanMeer

I'm writing a program wich is using an array -> startpoint[4] this array will be later filled by values from an other array. this is not the problem! the problem begins here: I have a class: computerPlayer.cpp with a method: getStartpoint() [code=cpp] int *startPoint[4]; // global variable int* computerPlayer::getStartpoint(){ int …

Member Avatar for RonaldvanMeer
0
164
Member Avatar for Avaviel

I'm having trouble with a program with class. When it runs, on the screen and on the file it shows one output, the last one in the input file. It USED to work, untill I tried to get fancy and add some other code... that will be below the main …

Member Avatar for Avaviel
0
336
Member Avatar for msundastud

can't figure out what I'm doing wrong....Im trying to write a program that can convert a sequence of positive integers from base-10 (decimal) to base-2 (binary), but I can't use the pow function [code] #include <stdio.h> #include <stdlib.h> void input_check (int start, int stop) { if (( 0 <= start) …

Member Avatar for devnar
0
160
Member Avatar for ambarisha.kn

I wrote the following function. i want to return fbCodeAddr and tmpAddr to the main function. How to do this? Function is as follows; [code=c] void fbExeCode(int BldCnt) { // for(int BldCnt=0;BldCnt<fbdStepno; BldCnt++) { char *fbCodeAddr; char *tmpAddr=0; char *buffer; int n; fbCodeAddr=(char *)malloc(1024); int stack=0; int totalPin=0; for(int fb=0;fb<fbnodeLst.size();fb++) …

Member Avatar for Ancient Dragon
0
139