- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 14
- Posts with Upvotes
- 14
- Upvoting Members
- 11
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: 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 … | |
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. | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
| Re: 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 … |
Re: 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; … | |
Re: [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 == … | |
Re: 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 … | |
Re: 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 … | |
Re: 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) … | |
Re: 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++) … |