132,726 Archived Topics
Remove Filter ![]() | |
I'm drawing a sphere and some ground. I used GL_POLYGON to draw a rectangle and colored it green. When I added a sphere, my ground just turned black. Is this because the sphere is a 3d object and the polygon is 2d or is there something else? Here is the … Software Development c++ | |
Alright. Ive been at this problem for a few days know and cant figure out what's wrong with my coding. The Problem: Create a method called displayPerfectNumber in your own class named myMath. The method displayPerfectNumber asks a user to enter a integer number and displays every perfect number from … | |
At the easy risk of asking something already asked a hundred times... Curses doesn't work for me. I use 2.6 on a Vista It gives an error saying it can't call up a part of the module that came with the program. ... Uhm... help.. T_T ~Pixel Software Development python | |
I'm new to perl and I'm writing a script to parse multiple Gaussian03 output files and extract certain pieces of data from them. Ideally the script needs to print out the name of each file, look for (the last) SCF Energy, the Zero-point Energy and check if the job has … Software Development perl | |
could you pls help me to select some project topics Software Development java | |
please if any one can help me ....i need a radix sort code for names..... all the names are data members in (node class) i just cant write the code so if any one can help me ..... Software Development c++ | |
[CODE] D:/Documents/NetBeansProjects/cap/main.cpp:33: undefined reference to `_imp__pthread_create' D:/Documents/NetBeansProjects/cap/main.cpp:34: undefined reference to `_imp__pthread_create' D:/Documents/NetBeansProjects/cap/main.cpp:35: undefined reference to `_imp__pthread_join' D:/Documents/NetBeansProjects/cap/main.cpp:36: undefined reference to `_imp__pthread_join' build/Debug/MinGW-Windows/main.o: In function `Z8cancelerPv': D:/Documents/NetBeansProjects/cap/main.cpp:47: undefined reference to `_imp__pthread_kill' D:/Documents/NetBeansProjects/cap/main.cpp:48: undefined reference to `_imp__pthread_exit' D:/Documents/NetBeansProjects/cap/main.cpp:51: undefined reference to `_imp__pthread_exit' [/CODE] this is the error i got when i compile … Software Development c++ | |
HI can anyone help me to write this programe in c Q ; WRITE A PROGRAM TO DETERMINE AND PRINT THE SUM OF THE FOLLOWING HARMONIC SERIES FOR A GIVEN VALUE OF N; 1+1/2+1/3+14+....................1/N THE VALUE SHOULD BE GIVEN INTERACTIVELY THROUGH THE TERMINAL | |
Hi, I've code like this [CODE] namespace RestaurantSoftClassLib.Karyawan { public class Karyawan { blablabla } } [/CODE] when I want to use the Karyawan's Class in User's Class [CODE] using RestaurantSoftClassLib.Karyawan; namespace RestaurantSoftClassLib.User { public class User { Karyawan.Karyawan karyawan; blablabla } } [/CODE] why I used to write Karyawan … Software Development c# | |
Can I have a FOR Loop of in the following manner:[for(int i=0;(s[i]!='\0')|| s[i]!=' ';i++)][/CODE=C++] where 's' is a character array Software Development c++ | |
My application has to include a live chat tool, anyone can help me with C# code, to make a live chat functional. Software Development | |
I don't know what to do... I've been trying for weeks to figure out the problem. You see, I'm supposed to make a game, as a project for school. Since it's going to be a rather large game, I decided not to flood the main file with a bunch of … Software Development image java java-swing | |
Hey guys, I'm trying to write something to a .txt file from within my program using ofstream. I have this function names show_results() which is a bunch of cout statements that are connected to a class and a bunch of member functions. But the function show_results is all cout statements. … Software Development c++ | |
I dont know whats wrong with my code.. when i entered the value,there was nothing appeared on my screen.. I've tried put the single quote like this one : case '1' : cout<<Very Acidic; break; ..but it was only works for the acidic value..When i entered the value more than … Software Development c++ | |
Hi, this C program is to remove duplicates. HOwever it doesnt always print out a result and when it does it screws it up sometimes. [CODE]# include <stdio.h> # include "simpio.h" # include "genlib.h" main() { int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,word; word=getchar(); a='a'; b='b'; c='c'; d='d'; e='e'; f='f'; g='g'; h='h'; i='i'; j='j'; k='k'; … | |
I am trying to read a decimal as a char and store it in an array by ignoring "." like if I have 0000.9876 will be stored as 9876. The program works fine...but it doesn't stop when i debug it.....I need help please ........... #include<iostream> #include <ctype.h> using namespace std; … Software Development c++ | |
hi everyone, i have a program code here, its working, but as soon as im trying to add results debugger breaks after adding score, can anyone help me to fix this problem. Program is working ok. heres the code: [code] #include <stdio.h> #include <string.h> void addTeam(char[50], int); void calculateResult(int, int, … Software Development c | |
I trying to write a program that uses a getline to read from a txt file. I need it to read from the file until it reaches a line that has "$$$" in it. I can get it to read in the file like this no problem. [CODE] //assuming all … Software Development c++ | |
I know some people are against converting jars to exes, but I needed to in this case. The jar worked fine but my exe gives me the error below. The code is just, [CODE]package mail; import java.net.*; import java.io.*; public class Mail { public static void main(String[] args) { System.out.println(args.length); … Software Development http-protocol java | |
Hello to all, can anyone please explain to me the following: I know how to use the copy constructor, I know that it's used only in the initialization, when i wanna initialize a new object using an old object... But what I don't understand is how will I know when … Software Development c++ | |
hi... i am new to this community, lately i was looking for some help in my code and this website came to my rescue in many topic. i am just implementing the menubar in swing, can somebody help me in my code. [code] import java.lang.*; import java.awt.*; import java.io.*; import … Software Development java java-swing | |
i not sure what is the single quote means... the example like this : if (value=='a') Thank you 4 helping :) Software Development c++ | |
Hi everyone! I need a little help with while loops please. I tried to create a class within my CD class that repeats the input of the CD info and the output of the CDs value at maturity until the principle of 0 is entered. I think I did this … Software Development java java-swing | |
Hi there, Being a newbie to C#Net 2003, I am having problem trying to retrieve data from a specific clicked row on the DataGrid to display the data on the TextBox on the FORM. This is the structure of the DataGird:- Col0 = CustomerId Col1 = First Name Col2 = … Software Development c c# c++ data-structure | |
for the XsineX function I have to calculate xsinx for each value in x then store in result. I need to call on the sin function to do calculations. I tried but I know its completely wrong, any help please?? [icode] #include <iostream> #include <cmath> using namespace std; // uses … Software Development c++ | |
Right now my code runs just the way I want it to. I would like the [CODE]Enter a sentence or phrase[/CODE] part to continue until the user enters "quit". I would like to use a while statement. Every way I have tried to enter phrase not equal to "quit" has … Software Development java | |
Hello To All, I want to implement peer-to-peer video streaming in my WPF project. Plz help me by referring any web site or sample code which i can use in my project. Thanks in Advance With Best Regards Hardeep Singh Bhullar [email]er.hardeepbhullar@gmail.com[/email] Software Development asp.net peer-to-peer vb.net video | |
hi, i have been unable to solve a problem related to C (i'am a newbie girl). I've googled around and maybe I have a flat learning curve :-( the fact is that i need to write a program that reads from a .txt file and print the output to another … Software Development c data-structure | |
This small program shows that how we can arrange strings by alphabet in a vector.By FlamingClaw Software Development pascal | |
Hello I am not sure if my function below will completely delete a linked list. I am worried it will delete every element of the list except for the head(first node)? For example; If I have this linked list below [QUOTE] L -> 1 -> 2 -> 3 -> 4 … Software Development c++ linked-list | |
hi, i have a mdi form named MDIParent2 in my application and it has many child forms. child form 1 named frmClient has 3 child forms now i want to call them in MDIParent2. can any one tell me how to i call sub child & sub - sub child … Software Development | |
Sorry for a duplicate post. The other post had gotten messy and since I was not allowed to delete it, I am starting a new post. Hi, here are the errors I am getting when i compile on cygwin. It is weird that the code compiles and runs perfectly on … Software Development c++ legal unix visual-studio | |
ran into a problem i know this is asking for me to calculate the product of a coulmn and row but im not sure where to begin. I know that rowData tells us the value in a row and nRows specifies the number of rowData and the same with nCols … Software Development c++ matrix-multiplication | |
I want to test the code i wrote which is part of my assignment double sine(double x, double tolerance, int & limit) { int a = 1; double b = x; double z(0.0); do { b=(-z*x*x)/((2*a)*(2*a+1)); z=b; z+=1;} while(fabs(b-z)>tolerance); limit= a; return b; } im supposed to use a main() … Software Development c++ | |
[CODE] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cs402; import java.util.*; public class Cain { static List values; /** * @param args the command line arguments */ private static String Board [][] = {{ " ", " … | |
Hi there, I have a unsolved problem here...my scripting do not go as I want, actually I want it to be solving the password in 10 seconds, but my scripting is run the timer and then only run the password solving.... anyone got any idea how to combine it?? [code]#!/bin/bash … Software Development shell-scripting | |
Hi, I'm having a little problem in my loop with the string array. I want to take a record for some student, but when I loop the function, the getline() did'nt work. It only work at the first loop, then it will skip it. My code is like this [CODE]#include … Software Development c++ | |
Hello, is me again, im trying to improve my program with another function it should print as many senteces on one line in the output, as user will enter as the parameter in the command line sentenece is characterized with sign '.' if you have sentences wchich ends with '...' … Software Development c | |
I would like ask for some advice please, I am trying to create a program in C# but have the following problem. I am currently trying to loop through a batch of XML files that are stored in a folder. However, I just don't want to loop through the XML … Software Development xml | |
I'm newish to c++ and even newer to ubuntu I tried linking and this is what I got: g++ -o calculator *.o -lcrypt -lm main.o: In function `main': main.cpp: (.text+0x1ea): undefined reference to `SAMSErrorHandling::Initialize()' main.cpp: (.text+0x2fa): undefined reference to `SAMSErrorHandling::HandleNotANumberError()' main.cpp: (.text+0x322): undefined reference to `SAMSPrompt::UserWantsToContinueYOrN(char const*)' collect2: ld returned … | |
So, i'm new to C# and not really sure how to do this. I need to create an options table where when the user loads it, it looks sort of like this [url]http://img11.imageshack.us/img11/9012/formf.jpg[/url] On the initial load, all of the data members are on top, loaded from an array. If … Software Development listview | |
I have gotten started on my while loop but I'm kinda stuck I dont know where to go from here :( My assignment is to write a program to read in 6 numbers from the keyboard and then indicate whether any of them were larger than 500 or smaller than … Software Development c++ | |
I know this is probably a really easy question, but my teacher failed to mention how to do it, so here goes. I'm making a simple program that tells a user if a sequence of given numbers are even or odd. Here's what the program should look like: [CODE]Enter a … Software Development c++ | |
Hey.. I wanna make a calculator .. which takes input as a string... example: Input : "1 + 2" Output: 3 "1+2" is passed as a parameter which is in the format of a string. The return value is 3 which an integer format. calculator needs only to perform +,*,-,/ … Software Development c++ | |
Hi, here are the errors I am getting when i compile on cygwin. It is weird that the code compiles and runs perfectly on Visual Studio. $ g++ -o mainUnix.out mainUnix.cpp [code]mainUnix.cpp: In function `int main()': mainUnix.cpp:47: error: expected primary-expression before numeric constant mainUnix.cpp:47: error: expected `;' before numeric constant … Software Development c++ visual-studio | |
hey, had a question that I couldn't figure out. I'm writing a program for linux and I need to save things to a person's Desktop. Because of that, I need to know their username. I am aware of the linux commands whoami, id, etc, but they only print the current … Software Development c++ | |
[CODE][B] DataTable dt; private void Permissions_Load(object sender, EventArgs e){ dt = new DataTable(); dt.Columns.Add("Feature", typeof(string)); dt.Columns.Add("None", typeof(bool)); dt.Columns.Add("ReadOnly", typeof(bool)); dt.Columns.Add("ReadWrite", typeof(bool)); datagridview1.Datasource=dt; } private void btnSave_Click(object sender, EventArgs e){ [COLOR="Red"]in the grid when i'll click on the any checkbox i want to pass parameter to this function [COLOR="Green"]SetPermission( , , … Software Development | |
I am trying to create an active TSR which prints an 'A' when the ESC key is pressed, it doesn't work. Can anyone tell me what's wrong? [code] bits 16 org 100h jmp init.tsr int1c: push ds push ax push cs pop ds call checkdos2 jc int1c_e cmp byte [hotkey_found], … Software Development assembly | |
I made a program that finds the ROT 13, but theres a little thing thats messing it up for me. Its supposed to find the ROT 13 of each character but when i run it, it gives me some funky character in return [CODE]#include <stdio.h> #include <string.h> int rot13(int c) … Software Development c |
The End.