49,761 Topics

Member Avatar for
Member Avatar for zephy2

Hello everyone, I currently installed the latest version of VTK , 5.4.2, after that, I am totally lost what I have to do. Is there any well organized reference about installing vtk 5.4 on VS2008? Thank you in advance. Sungmin.

Member Avatar for Sky Diploma
0
199
Member Avatar for buriza

I am looking for some help on some various errors and problems. This is my header file in which I am getting various errors in my for loops saying expected primary expression before } token. [code] #include <iostream> using namespace std; template <class T> class basicArray { public: basicArray(); basicArray(int …

Member Avatar for Sky Diploma
0
90
Member Avatar for Awebb999

[CODE]//This function prints all scores, but if a score occurs more than once, it only prints it one time void scores_once(int x[20], int size, int new_array[20]) { for(int i=0; i<size; i++) { new_array[i]= -1; } new_array[0]= x[0]; cout<<new_array[0]<<endl; for(int j=1; j<size; j++) { for(int k=0; k<size; k++) { if (x[j]!=new_array[k]) …

Member Avatar for Sky Diploma
0
71
Member Avatar for tomtetlaw

[code] struct{ int health; int armor; char* wep_name; char* name; } test_player = { 100, 10, "master sword", "tom" }; [/code] how to i access the members of test_player ?

Member Avatar for Sky Diploma
0
111
Member Avatar for AirGear

i have a code with algo that fits my problem, but i get this error message when i compile it.. #8 floating point exception [usually caused by accessing memory out of bounds]. who knows what's this? here is my code [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int …

Member Avatar for AirGear
0
243
Member Avatar for r4rozen

i can't write a code for a program.Please help me guys. It goes like this: Create a program that displays the total amount a company owes for a seminar.The seminar rate is $80/person. The input is the seminar rate and the number of seminar registrants,which should be greater than 0 …

Member Avatar for code zombie
0
93
Member Avatar for DC257209

Hey everyone, i'm new to the site and i'm lookin for some help on this program i have to write. I am 100 percent a beginner and don't really know what i'm doing. I need to write a short program that reads in the height at which the ball is …

Member Avatar for vmanes
0
263
Member Avatar for aomran

Thank you for taking the time to help me. This is a portion of a D-Heap program to run a number of process based on priority level given to each process. the following are some errors which I'm getting when trying to compile this code(this is a portion of the …

Member Avatar for mrnutty
0
167
Member Avatar for Wolf CCMLG

I was given some code by my Professor and I had to debug it. I finally found the problem, but I have no idea why it is a problem. Could someone please enlighten me. [B][U]Here is the piece of the code that has been corrected:[/U][/B] [code] . . . //Using …

Member Avatar for vmanes
0
143
Member Avatar for 2ndmiltia

Hey all. I'm writing a simple bank program with a menu of options, and the first option is to create an account. The user enters an account number and this number is stored in the array in the first empty slot. So for example, if the user enters 100, it …

Member Avatar for NathanOliver
0
285
Member Avatar for terzenta

(Most frequent character in a string) I've been working on this problem for hours, and I'm just totally lost. I don't know if I'm heading in the right direction at all, and would really appreciate any help. My code isn't working at all, but I've included it. The homework problem …

Member Avatar for terzenta
0
86
Member Avatar for Wolf CCMLG

Can someone please help me with this error I am getting when compiling: [B]DivSales.obj : error LNK2001: unresolved external symbol "private: static int DivSales::totalSales" (?totalSales@DivSales@@0HA) 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\...\Week 3 - Challenge 7\Debug\Week 3 - Challenge 7.exe : fatal error LNK1120: …

Member Avatar for Wolf CCMLG
0
206
Member Avatar for AnGuRuSO

I'm writing a program to draw a three-dimensional cube (with a corner cut off) without using any 3D graphics APIs. The only API call I make is win32's SetPixel() Everything is going great. I've drawn lines, faces, and even the entire cube. Then rotation came along. For some reason, when …

Member Avatar for NathanOliver
0
115
Member Avatar for sfuo

Hey I was wondering how the string class is able to output its self the way it does. For example: [CODE]#include <iostream> #include <string> using namespace std; int main() { string testString; testString = "Hello"; cout << testString << endl; system("PAUSE"); return 0; }[/CODE] If I were to try to …

Member Avatar for mrnutty
0
243
Member Avatar for kele1

i'm supposed to write a program that simulates cointoss. for each toss the program should print heads or tails and it would toss 100 times and counts the number off times each side of the coin appears. it should also call a seperate function 'flip' that takes no argument and …

Member Avatar for NathanOliver
0
232
Member Avatar for blamp

I completed most of the functions and it compiles but need help with two.Can someone help me with the uniqueScore function which is suppose to print test scores that only appears once and the differenceScore function which is suppose to print the difference between the largest and smallest score. #include …

Member Avatar for StuXYZ
0
115
Member Avatar for Wolf CCMLG

I am having an extremely difficult time with this programming challenge I have to do. I have no idea where to begin on this. I am a beginning programmer ([i]obvious I know[/i]), and here are my instructions for the challenge: [b] "Write a class EncryptableString that is derived from the …

Member Avatar for Alex_
0
895
Member Avatar for sonygamer

Hi everyone, I have to write a code that finds and prints all prime numbers from 2 to whatever number the user inputs, be it 10 or 10,000. So far what i have is this: [code=cplusplus] #include <iostream> using namespace std; int main(){ int n,p,t,limit; cout<<"input the limit:"; cin>>limit; //outer …

Member Avatar for ashen77
0
148
Member Avatar for jefanot

Hello, I really need help. If anyone could, please tell me what I'm doing wrong. Well, I'm making this program that asks if you're happy. Then if you don't answer yes, it will ask the question again until you do. I thought that it would be fun to have a …

Member Avatar for William Hemsworth
0
116
Member Avatar for power_computer

Ok I have to make a 3-D array within a class and read from a file with input like this [code] 90312 Thing_1 12.34 100 25 // Shelf 9, row 3, bin 12 20705 Thing_2 54.78 24 25 10101 Another_Thing 123.45 183 4 [/code] There array is based off 9 …

Member Avatar for power_computer
0
268
Member Avatar for Silvershaft

I got a problem when using mysql connector with wxWidgets my program crashes right when I start debugging, but it gives no compiler errors. Main.h [code]#ifndef __MAIN_H #define __MAIN_H #include <wx/frame.h> #include <wx/textctrl.h> #include <wx/button.h> // Mysql #include "mysql_connection.h" #include <cppconn/driver.h> #include <cppconn/exception.h> #include <cppconn/resultset.h> #include <cppconn/statement.h> class MainApp: public …

Member Avatar for yonghc
0
239
Member Avatar for CrAzD

I'm trying to figure out how to get info off of a 1 structure to use to get info from a second structure and use the info from the second to change the first. Here's some code hopefully explain it better. [code=c] struct weapons { string name; int str; }; …

Member Avatar for CrAzD
0
118
Member Avatar for NightLightSky

hey i really need help, how can i generate a simple coding of pythagorean table where it reads the upper right triangle? together, how to get table parameters, use nested loops (which prints out the raw list of all Pythagorean-candidates (do not need to store in an array) & how …

Member Avatar for Foamgum
0
167
Member Avatar for complexcodes

Hey guys, I have written a recursive function mazeTraverse which finds the path of the mouse to find its food which is placed inside the maze. I am given a maze of of 15 rows and 25 columns. Mouse's starting position is (8,1)[eighth row and 1st column] and the food …

Member Avatar for sfuo
0
108
Member Avatar for Der_sed

The following binary search code runs perfect . I feed values that exist in the array and it tells me at what location they are. But if i enter a value non-existent in the array it goes bad. It says number not in array and after that... [U] Any other …

Member Avatar for vmanes
0
112
Member Avatar for cookies

I'm using system("color __"); and system("title ____"); in my code and I'm struggling on how to change them according to the input. eg. if the user enters he wants green background and yellow words ... i'm stuck with 2 variables (i would convert them to 2 and 6 [the numbers …

Member Avatar for cookies
0
73
Member Avatar for KonkaNok

Hi, I noticed a few snippets recently where a size_t variable was used for array indices, and after searching around I'm still not sure what the obvious advantage of using a size_t variable over a typical int would be.. To clarify, what would be the difference between this: [code=cplusplus] for(size_t …

Member Avatar for KonkaNok
0
145
Member Avatar for xagutxu

Hi! I am using the Microsoft Visual Studio to build a program that has several threads. The threads communicate among them reading a shared variable; thus, a thread is waiting: "while (variable == 0);", until other thread puts the variable into 1. That occurs more than one time in the …

Member Avatar for xagutxu
0
123
Member Avatar for mostermand

Hi I have a problem, I hope you can help me with. I have a number, which I need to compare to some values. I do not wish to go through all the values, and compare them individually, as I there are too many for it to be efficient. Neither …

Member Avatar for mostermand
0
173
Member Avatar for crash override

I've been trying to get started with sockets programming. However, when I try to use the getaddrinfo and freeaddrinfo functions, my linker complains that they are "not declared in this scope" and that they are "unused variables". I have checked the header (ws2tcpip.h) and the headers appear to be declared …

Member Avatar for ndarkduck
0
4K

The End.