199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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> … | |
Hi all, I am having a problem with the contents of my page breaking thru the bottom border of my page. It looks fine in Explorer (that's a turn-about, eh?) but at 800 x 600 or lower, in Firefox it breaks. Anything I am overlooking? Thanks :confused: The URL: [URL="http://www.chocolatelover.net/"]http://www.chocolatelover.net/[/URL] … | |
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 … | |
[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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 | |
Hi friends, I need to implement the "video rating" option in my website. Its some thing like "*****" should be used to rate the video. Any idea how to implement this feature ? Thanks, Satees | |
Im using a free php script where i have to edit the config file. i have edited the password field to the one i want it to be but when try login to the admin it says my password is wrong. the files are uploaded so im not sure whats … | |
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)? | |
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 … | |
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 … | |
(** 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: … | |
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 | |
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, … | |
[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 … | |
Hi friendds I need to reating the messages using php code. I need some suggestion. For example some sites scripts are rated in ***** Tha same action im-plemet my applicaiton. How to add ? please send me any ideas Thanks vssp | |
Hello I have information comming from a form to the process below. the process validates user input using preg_match found in a function (valid.php) before inserting into a mysql database. This is my first attempt to use preg_match to validate user input and may have coded it incorrectly. The database … | |
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 … | |
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 … | |
![]() | 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 … |
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 = … | |
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 | |
Hi, I'm new here, but I'm hoping that you guys can help me out. I'm using ASP.NET 2.0 (C#), and I'm having a problem binding a DataReader to a DataGrid. If it makes any difference my IDE is MS Visual Web Developer 2005 Express Edition. [code]System.Data.OleDb.OleDbConnection dbConnection = null; string … | |
hello im trying to get my div layer to align so that it centers on the browser so it doesnt matter about the size of somones browser it will always be centered on the page. i have tried [HTML]<div align="center" class="style1" id="Layer1">[/HTML] but this doesnt seem to work when i … | |
Hi everyone, I am currently doing IT and majoring in Java, C++, Database Systems(Mysql, Oracle, SQL Server and Networking). Someone has advised me to do System Engineering and I really do not know what it is. I would like to continue my studies doing this course, so if anyone has … | |
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 … | |
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 … | |
I have been attempting to upgrade a SuSE 9 linux box from php 4.3.4 to php 5.1.6. I have something working, since I'm able to run my old programs under the new setup, but I'm fairly certain I've done something wrong somewhere; using the phpinfo() command shows that I'm still … | |
Hello gang, Here I am with another Newbie question. I'm creating a photo gallery for my Web site. Right now I use a series of links to create the gallery: [code]<a href="./images/gallery/photo1.php"><img src="./images/gallery/thumbs/tn_photo1.php"></a> <a href="./images/gallery/photo2.php"><img src="./images/gallery/thumbs/tn_photo2.php"></a> <a href="./images/gallery/photo3.php"><img src="./images/gallery/thumbs/tn_photo3.php"></a>[/code] My Linux host will already make the thumbnails from images I … | |
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 … | |
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 … | |
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 … | |
i m new to asp . i m try to send mail using CDO. my os is XP pro. i have install IIs and smtp also running. if i running my program , its doesn't throw any error. but my mail is not sent.. that is , if i m … | |
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 … | |
Hi everyone, Iam a nuubie to PHP. I have faced some problems in my project. I want to access a server(folder in server) through script run by another server. Its possible to access the files kept in one server through script run by another server. Please anyone help me. Its … | |
Hi I'm trying to have an assignment operator for my linked list class so that when I call it, it replaces the current one with the one I pass in. i.e testList1 = testList2; I'm trying to get it so that testList1 will point to testList2. Here is the code … | |
Hi everyone How can I embeded an image to OLE Object field using Long Binary data. and what Long Binary data means and how to use it. does anyone have any ideas on I would to display images in my asp page. I am trying to insert the images in … | |
I had to use an enumerated data type in my last program, and I couldn't get my program to stop giving me fatal run-time errors. here is the enumerated data type: [code]enum piece {EMPTY, BLACK, WHITE};[/code] Now, the trouble I am having is related to evaluation or assignment of this … | |
Hey. The intent of this program is to help answer the question “How good is the random number generator rand()?”. The program must be designed and written in a modular fashion using functions and arrays The function rand() returns int values between 0 and some system-specified maximum value. The first … | |
I am using the MFC dialog application. There are 3 edit box, add1, add2 and sum and a button "add", when exectuing, I input add1, add2, and use the "add" function dlg.m_sum=dlg.m_add1+dlg.m_add2 how to make the sum appears in the "sum" edit box? Do I have to add a view … |
The End.