132,726 Archived Topics
Remove Filter ![]() | |
I have the following declarations: [CODE]typedef struct{ int year; // key char title[51]; char director[41]; } MOVIE; typedef struct node{ struct node *left; MOVIE *movie; struct node *right; } TREE_NODE;[/CODE] lets say I create a TREE_NODE called root. Why can't I do this declaration? [CODE]root->movie->year = 1990[/CODE] Whenever I try … Software Development c | |
Hey whats up im pretty new here and new to java. I have no idea when it comes to methods. (this is my first java course so im completly lost) I have a test coming up and Im just trying to review. We got a couple examples of things that … Software Development java | |
I'm trying to understand Argument Dependent Lookup. The classic example is: [CODE]namespace NS { class T { }; void f(T); } NS::T parm; int main() { f(parm); // OK: calls NS::f }[/CODE] I'm looking at this [URL="http://www.kuzbass.ru:8086/docs/isocpp/basic.html#basic.lookup.koenig"]page[/URL] and in particular this statement: [QUOTE]If T is a class type, its associated … Software Development c++ | |
My task for this function is to find the index of the <= string in the array. If more than one string, then retrun the smallest index of such string. Retunr -1 if no elements in array. I came out with a rough code. I hope what I did was … Software Development c | |
I have a palindrome program.Is there a way to ensure user input terminated in a string by a punctuation mark (e.g. ‘!’, ‘.’, or ‘?’.) in an array? And how do i get the program to exclude commas? eg A man, a plan, a canal, Panama! bosters a problem because … Software Development c | |
Hi, Yesterday a friend of mine asked me about the use of $ at the end of the crontab command. His query is something like this. [B]15 3 * * * command [COLOR=red]$[/COLOR][/B] Can someone please help me with the use of $ at the end of this crontab command … Software Development shell-scripting | |
I have been looking at a small bit of code concerning the use of [B]static [/B]with variables; I thought I understood the use of [B]static[/B], but I find this code confusing: [code]//: C03:Static.cpp // Using a static variable in a function #include <iostream> using namespace std; void func() { static … | |
I have a file of sentences similar to this: [CODE] Tom ate his Apple. Frank shoveled Snow. Henry drove a Truck. [/CODE]I would like to prosess each sentence so it only retains the capital letter in the first word, every other word in the senetnce should be lower case. The … ![]() | |
![]() | So my idea for this program was to take data from a file and compiling it into a schedule type thing.... Comments? Again...for learning purposes, I'd love to see suggestions for content, efficiency, and techniques. [php] # Get data from schedules.txt import string f = open("schedules.txt","r") schedule_rawdata = f.readlines() f.close() … Software Development python ![]() |
I am trying to get to grips with treeviews in pygtk/gtk and am stuck on setting the alignment of the columns. No matter what I try I cannot change the alignment[IMG]http://ubuntuforums.org/images/smilies/eusa_wall.gif[/IMG] Here is the code I found on the web which I am using to change different lines to see … Software Development python | |
Hi, I hav defined an array of n elements.Each element represents a structure. Like, [code=c] typedef struct { int dd; int mm; int yyyy; }srik; srik a[n]; [/code] Then how to assign a date (eg:02/07/1984) as a string("02071984") to the first array element(means the first structure) in the array. I … Software Development c | |
hi everybody! I am trap in a problem related to structure. I am working in the project in which I am devleoping a DLL in C++ using VC++ editor. The code I am using is as follow: [code=c++] //This is header file typedef struct{ static char szOriginalAddress[0x100]; static char szRecipientAddress[0x100]; … Software Development c++ | |
I want to make an evaluation version that lasts one month, how can I do an executable that works perfectly during this time and afterall it stops and is then no working anymore? Software Development visual-basic | |
Hello, for the final part of my program I need to count how many letters appear throughout a pretty large input file. Opening the file, storing to an array, etc.. is all taken care of. I'm clueless on how to count each letter that occurs. I've read structures are the … Software Development c | |
Hello everybody, I've got a small problem I need the following string to be split into it's parts: [code] ftp://user:pass@host/path [/code] the result should be smth like: [code] $USER = user $PASS = pass $HOST = host $PATH = path [/code] Somebody has help for me? Would be nice Alternative … Software Development client-server shell-scripting | |
Hi all I'm sure you hear this all the time but "I'm a student who sucks at Java looking for help" My assignment is to (short version) Task Overview:You need to write five classes – Shop, Item, CD, Game, and ElectronicGame. The Shop stores a Vector of Items. The items … Software Development java | |
Hello everyone. I've tried several times to use associative arrays in my Perl scripts, but each time I have got syntax errors I can't understand. Based on the tutorials I've read I have tried to do things like this: [code=perl]sub test_function { my($key, %table); %table = ('word1', 'Perl', 'word2', 'is', … Software Development perl | |
I need some help,Here is the problem, I work for a company that lays ceramic floor tile and I need a program that estimates the number of boxes of tile for a job. A job is estimated by taking the dimensions of each room in feet and inches, and converting … Software Development c++ | |
I am incorporating clock_t into a current build; I need a simple way to measure time elapsed; it is not so important the source of elapsed (CPU) time or even its starting point (zero would be ideal, but it should not matter). I really just wish to understand the output … Software Development c++ | |
I am trying to compile the following code. I keep getting thefollowing linker errors. I am getting about 28n of these errors all having the linker at the begining [Linker error] undefined reference to `SQLGetDiagField@28' [Linker error] undefined reference to `SQLGetDiagRec@32' [code=c] #include <stdio.h> #include <windows.h> #include <sql.h> #include <sqlext.h> … | |
Hello ladies and gents, Wanted to ask if someone could help me out with the debug settings in VC++ 2005. What I want to be able to do is to follow my program step by step and see what happens with the variables. I know it's related to the settings … Software Development c++ | |
[B]I was just wondering how to align data like this:[/B] [code] McBride, Susan $ 1000.00 $ 95.00 5 O'Hara, Catherine $ 2500.00 $ 299.51 5 [/code] [B]To make it look like this:[/B] [code] McBride, Susan $ 1000.00 $ 95.00 5 O'Hara, Catherine $ 2500.00 $ 299.51 5 [/code] The second … Software Development c | |
string strd1 = "9"; int m=atoi(strd); Got the error: error C2664: 'atoi' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *' how to change the second line to make it work? Software Development c++ | |
Hi everyone, I've worked on this thing for about three days now and am really getting frustrated. I need to make a stack using linear linked lists of arrays. I've got my class to compile without complaining, but am really struggling with the function definitons of push and peek. Any … Software Development c linked-list | |
Hi, I want to write a program in perl which will pass function parameters to a C++ .exe file and run the exe file with these parameters | |
Hey, it's me again, with another problem on an assignment. The input/output looks like this: [I]Enter the wind speed on the Beaufort Scale: [COLOR=red]7[/COLOR] Enter the number of boats racing (1-10): [COLOR=red]7[/COLOR] Enter the code for boat 1: [COLOR=red]LASE[/COLOR] Enter the time for boat 1: [COLOR=red]29:41[/COLOR] Enter the code for … Software Development c first-post | |
I'm trying to find a way to convert a number in any given base to decimal and then to the target base. What i'm asking is how will I represent this procedure in the function for example 123 base 4 to decimal= 1x4^2+2x4^1+3x4^0=27. I was thinking of decrementing the raised … Software Development c | |
Hello, I've put up some posts about the programming tools that I am currently using. So far, no takers. This makes me wonder what people who know what they're doing are using! M$'s IDE seemed overly complex for my modest needs. Besides, I have no use for the DLL and … | |
Guys..Could anyone of you please help me with ... say, I add a subitem to the 3rd column of a listview..now I want to remove that item and add another one in the same position (or replace) How can I do that.. Thanks in advance | |
if I have three words in there lines in a .txt file, and I want to read them to three string, how to do this using c++ ifstream? how to read every line(word)? Software Development c++ | |
Hello, i am a student and need write an asembler program. for basic 8086 architecture. but i do not understand few conditions for a program: it says that program must output text to screen whit a [B]int 21, 40h funktion, and indicate stdout as output, with descriptor 1.[/B] what this … Software Development assembly | |
My recent assignment is to find Mersenne Primes between 2 and 1,000,000. For the first part of my code, I have a function to find out if a number is prime or not. The second part of my program runs a Lucas-Lehmer test to find the Mersenne number. My problems … Software Development c++ | |
(** This post was inspired by a recent post I read where a reply suggested the indenting of all code.) I am guilty of this, I'll be honest. I know it is important to indent and indent properly, it is industry standard, and it is simply utilitarian. I always think: … Software Development c++ first-post | |
hi everyone......... I have a task, I have fragmented the task into subtask. I have planned to create a class to each subclass and one parent class to handle the sub tasks. Each subclass are saved in seperate file and all my subclasses and parent class are placed in the … | |
In linux I used PAR pp and converted my perl code to executable.. while running the filename.pl it is completely fine. But when I run the executable with ./filename It says it cant locate object methods new and other function (both written in inline c++.) some hints plssss Software Development perl | |
Hi, I am going to write an exam I found a model question. could u pls solve this question. An array named 'DATE_ARRAY' with n elements present in the memory. Each element in the array is a structure representing the 'Date' information and its type defination is shown below. Type … | |
Hey guys i hope someone can point me in the right direction The problem I have just started my first year in computer science and have just recieved my first java assignment. I know its really simple but i just cant get my head round it, the worse thing is, … Software Development java | |
[code]#include <iostream.h> #include <fstream.h> main(int argc, char *argv[]) { //definition of the variables. int mtx1[20][20], mtx2[20][20], mtx3[20][20]; int n, i, j, k; //exit if the number of arguments is not 2. if(argc != 3) { cerr << "Usage: mm <filename1> <filename2>\n"; return 1; } //open the input file 1. exit … Software Development c++ | |
Hello, this is my first post on these forums. I'm taking a CPSC 100 course to supplement the science part of my degree, and I've been having a lot of trouble since the midterm, when the profs for the class switched (they have completely different teaching methods). Since then, I've … Software Development c++ first-post | |
Quick question, what do i want to put in the while of my do while statement in myprintitle function so that will loop around with the main part as well. [CODE] include<iostream> #include<iomanip> using namespace std; int startDay(int , int ); int calcjan1(int, int ); void printMonth (int , int … Software Development c++ | |
![]() | Hi, i need some help please on creating a chat app in VS2005. this can be very plain its liker a one to one chat app via internet. this is my code i have thus far pls tell if im on the right track: oh and i wrote this so … Software Development dns |
Hi everyone. I'm extremely new to this. It's my first programming course, period. I realize I probably needed a load of pre-reqs, but for some reason, I was advised to take Intro to C++ so... So far, I've been doing well! However, this latest project has me stumped... The jist … | |
I am once again getting confused with functions and arrays in C++. I am trying to write a program that collects three values from a user, then displays those and does various things with them. In short, what's the problem with this line of code right here? [code] player = … Software Development c++ | |
Hii every one I enter some interviews in java they give me codes to test them manual and write the output but they were very defficult i need some like that codes to train on them thanks Software Development java | |
Greetings: A simple question that has me stuck: Program runs, calls function, function runs... Return to Main? This last area is where it fails. No errors, just no control returned to Main.cpp at end of function run. I've been studying the code much and researching the solution on the Net … Software Development c++ | |
hi, i dont want it to seem like everytime i have a problem i come to this forum...but i just need to cover all bases b4 my exam in a month...thanks for understanding. my question is..is there any way to write the following program WITHOUT using a [inlinecode]while[/inlinecode] loop? i … Software Development first-post java | |
Hi! ..My First Post Am... I need a logic and/or some kind of help to code a c program which accepts a numeric equation and prints it step by step in order of precedence.. Eg: the c program should accept any equation like : 5+(5-3)*6%10/6++ ie the equation may cointain … Software Development c first-post | |
Hi there, i need some help as i'm new with using comboboxes :) i have a table in a MS access database named "CUSTOMER" and in my vb form i have a combobox (name: cmb1). I want to display the names of my customers in my combobox when the form … Software Development vb.net | |
can anyone tell me how to fix this, it needs to print out the calendar for a whole year. [CODE]#include<iostream> #include<iomanip> int startDay(int year, int calcjan1); int calcjan1(int year); void printMonth (int startDay, int days); int main() { char again; int year=0; do { cout<<"Enter a year for a calendar … Software Development c++ | |
I have been trying to store the values of card face value into an array called faceValue but I don't know how to do this. I've created the array and placed in public in my h.file (char faceValue[5];) but trying to link it to *face in the function deal is … Software Development c++ |
The End.