64,152 Solved Topics
Remove Filter ![]() | |
Hi, I have used a lot of makefiles to compile programs. The issue is, I don't know how to produce make file. Is it another "language" I have to learn or some automatic issue? Also what is short yet clea tutorial on that? Thanks | |
Hello everybody, I'm trying to get the user name using GetUserName() API function, it was sucessful in the console project however in the Visual C++ project it gives me this error: [CODE] 1>MyProgram.obj : error LNK2028: unresolved token (0A00000F) "extern "C" int __stdcall GetUserNameA(char *,unsigned long *)" (?GetUserNameA@@$$J18YGHPADPAK@Z) referenced in … | |
So I'm working on a quiz game application, and one of the things I have to do is use StreamReader to read questions from a text file of the format [quote]Question Answer1 ###Answer 2 (correct answer denoted by ###) Answer3 Answer4 Question2 Answer1 Answer2 ###Answer3 Answer4[/quote] and so on. I … | |
hey!i was tryinn to write this complex number addition and i dunno where this garbage value it is pickin from :-/.... m gettin mad over this because first time such a simple program has got me all over :icon_mad:.... so here's the code: # include <iostream> using namespace std; # … | |
I have a date in the form DD-MM-YYYY, I know how to explode it into just DD, MM and YYYY on its own but how do I check if this date is valid? For example 01-02-2009 is valid but 31-02-2009 is not. Any way to check this? ![]() | |
hi this is the corotuıne example writen in def [CODE]namelst=['Charles Darwin (1809-82)', "Darwin's principal works, The Origin of Species (1859)", 'and The Descent of Man (1871) marked a new epoch in our', 'understanding of our world and ourselves. His ideas', "were shaped by the Beagle's voyage around the world in", … | |
Has anyone used this code to calculate quantiles? The code defines the function 'quantile'. If one runs the code and names the script file 'quanitle.py' and puts it in the same directory as another code file calling the function, why is the function not accessed???? Here's the copy-and-paste script for … | |
In my Operating System lectures, we were taught various scheduling algorithms like FCFS, Shortest Job first, etc. In Shortest Job First, the scheduler is supposed to execute the processes with the least amount of burst time first. My question is: How does the scheduler calculate/estimate the burst time/execution time of … | |
Hi, does any of you have any idea why the self.status variable is not rewritten? When I run the script below, although it connects to the ip and port mentioned, and receives a message, the self.status is still "down" the otuput is : 192.168.0.1 down it should be: 192.168.0.1 'message … | |
Yet another date time related sql statement i need help with, oh how I loathe them. I need to find the records between now and a week ahead. I have this so far [CODE] Dim con As New OleDb.OleDbConnection Dim OleDBCon As System.Data.OleDb.OleDbConnection Dim ds As New DataSet Dim da … | |
I really don't see what is wrong =(. First I download via curl a file, then I want to compare it to a local file there are 15 lines in dwnext.ded and there are 14 lines in extlib.ded I want to store in append those lines that have a string … | |
Hello. Because my client's table has two rows getting int values as ids from other table to display the string values. Table 1 Table 2 Item: 12 12 = 'Cat' For displaying the values I have created view in DB [CODE] create view ClientsView as select cl.id,cl.Name,cl.Familyname,cl.Position,cl.Email,cl.OfficePhone,cl.Mobile,cl.Website,cl.Comment,cl.[Date],cont.country,cl.Street,cl.City,clgr.[Group] from Clients as … | |
Hey all I'm having loads of problems trying to update my database with a dataset, I have been looking around forums and posts and trying all sorts of work around's, as far as I can assume, I will need to manually create (insert, update) function querys (even though as far … | |
Hi friends, I have a form to create a company details.. which will insert the details into a table. For this table, I need to have a auto increment field as character.. when we have autoincreament as Integer... whenever the new company is created..the number will increase from 0, 1, … | |
I Use visual Basic 8.0 and Mysql 5.0 I have one Table1: [COLOR="Red"]Table1[/COLOR]: RecordID , Integer = primary key auto_increment NOT NULL Articlenr , Integer Articlename, Char(20) Table1: has two records: RecordID, Articlenr ,Articlename 1 , 1000, Hamer 2 , 2000, saw I want to use Datagridview to update Mysql … | |
Hi, I recently bought a book-The Complete Reference C++ by Herbert Schildt. The first part explains about the similarities about C++ and C. The syntax used is different from the one my lecturer is teaching. eg: cout<< is replaced by printf cin>> is replaced by scanf I would like to … | |
How to display following using while loop : <div style="background-color:orange;text-align:center"> <p>Header Section</p> </div> <div style="border:1px solid black"> <p>Content section</p> </div> I want to display all my database in above manner, It gives Parse error I want to fetch my database using while like : for 1st record <div style="background-color:orange;text-align:center"> <p>Header … | |
Is this possible? Any tutorial if possible? I want to make a program to do mass conversion of my Icons without loosing resolution | |
Hello this is for my assignment for college. I just need help on how to properly declare ofstream/ifstream globally to get my program to work the proper way. Yes I know I can just declare it in Main() and use pass by reference. ( Did that on the first project … | |
How to add 1/1+ 1/2+1/3...+1/9+1/10 . I tried but I am getting answer in negative number. | |
Hello guys! I'm facing a problem with IO using files. Here is the simple code that's kepping me awake: [code]Files::Files() { numbers.open("textfile.txt"); if ( numbers.good() ) { cout << "Object from Files class ok!" << endl; } else { cout << "Object from Files class NOT ok!" << endl; } … | |
Hi everyone, I am working on a window that will calculate an average grade from 3 grades typed in by user then display it's appropriate grade letter. This is what I have so far and well it isn't working. Can anyone point me into the right direction as to what … | |
ok so i an setting up an html email thing that you use an wysiwyg to format the text (just bold links and stuff like that) and i am running into a problem with my links they seem to be escaping and then not printing out in gmail with a … | |
I wrote a program to compare two text files character by character and its not working probably an easy thing im just not seeing. [code=c++] #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, char *argv[]){ string s1; string s2; char c1, c2; if(argc !=3) { // … | |
Hey guys Ive been working on this problem for standard deviation, and so far ive got it all right accept my declaration in this module, was wondering if anyone can help me see whats wrong with my formula or the decelerations i have made Here is the code for my … | |
Hi all I need a javascript code that removes all the title="*" attributes in a page, where the star (*) represents a wildcard for the content of the title attribute. So the following would occur: <a href="#" title="test">test</a> would be replaced with <a href="#">test</a> just like: <a href="#" title="">test</a> would … | |
I'm new at Python coding and in DaniWeb. Really nice forum :icon_cheesygrin: Need some help w/ the following code: the content of saldo.txt is the following [CODE]1000[/CODE] The code I was talkin' about: [CODE] # [...] f = open('C:/saldo.txt') print f saldo = f.readline() f.close() if saldo <= 100: a … | |
Hello! So , I got a weird problem.In my code the value of the char N[cn] is ignored when I compare it to a constant value. Here's the code: Code: [code] for ( i = 1; i <= 220; i++ ){ // Generate Numbers itoa (i,Number, (V+1)); sscanf(Number, "%d", &ii); … | |
Does anyone have any suggestions/tips/ideas on the merits of Expression Web? I'm using Visual Studio 2008 but the front end work seems to be lacking. I don't know much about expression web and wondered if anyone used it and if it's worth the money. | |
I was wondering whether anyone could tell em whats wrong with this code. Its trying to get the records where the theorydates (stored in a database as shorttime) are before 2 years ago and return the records in a datagrid but it doesnt. [CODE] Private Sub ExpiredTheoryTest_Load(ByVal sender As System.Object, … | |
Hey, this is my first java program. I am trying to print my original list of ages, but I can not figure it out. Please help! I have part b and part c already done. Any help is appreciated a) print original list of ages b) number of occurrences of … | |
I have a select menu with many text-based options. However when I submit the form, instead of actually returning the textual item in the POST variable is it possible to set it to return the ID of the selected item? For example I have the following form: [CODE]<select name="dev_stage" id="dev_stage"> … | |
Hey, i am trying to convert a 2D array to a 1D array and also the reverse. Not sure if i am doing it right so does anyone know how it can be done. below is the code i have for 2D to 1D but now how do i do … | |
I have read about AJAX for a while now, and tryed to use GET and POST, but with not so good results. Code in index.html: [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Sending data to the maaan and back!</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> //var val = … | |
Hello all.. thanks for my last forum..for better solution with fast reply.. I have getting problem with display link button on page aspx.cs .. I have requirement as below..... i am trying to display file name with remove link after attached file.I have done code on aspx.cs as below and … | |
hi friends i have a project about e-tranction interface in which it will maintain many bank's details and each user may add many bank details and they can make online money transfer . if any one knows any details... please reply me... | |
I have a date in the format of YYYY-MM-DD as a string (including the hyphens) How do I split this string just to obtain YYYY, MM and DD separately? Possible use of an array or something? Would really appreciate some help :) Edit: Nevermind, just discovered the explode() function :P | |
Hi all, I have been looking for single function to split strings and seems to me either is not available or I miss it. So I please, help me to know if it is available and if yes where can I get it. Thanks | |
help needed.... i have 16 values in one row of a table, but i only wanted to retrieve 14 value from that row(FieldValue) the last two values was u-needed. sorry for my bad english... and thank in advance.. [CODE] <?php $con=mysql_connect("localhost","root",""); if(!$con) { die('Could not connect:'.mysql_error()); } mysql_select_db("kiperak",$con); $result = … | |
Hi All, Today I came across a peculiar piece of code. [code] int main(int argc, char* argv[]) { printf("%lf\n",(0.99-0.90-0.09)); } [/code] According to me the output for this code should be 0, but to my surprise when I ran this code the answer that I got was -0.000. I cannot … | |
Hi, I am customizing jquery scrollshow, it can be found originally [URL="http://flesler.blogspot.com/search/label/jQuery.ScrollShow"]here[/URL] As you can see in the original script there are only images which scroll, now I have the description to show below each image which should also scroll as the images scroll. This description will include - 1. … | |
Incomplete dice game function, dunno why does'nt works... If you're not using windows, change the dir. "C:/" [CODE] def bet(Bet): try: f = open('C:/money.txt') print f money = f.readline() f.close() print ('You have', money, 'Dollars. Wanna play dice(y/n)?') v = raw_input() if v == 'y': # here i'm printing those … | |
Hello. I'm trying to write a program that will convert a user input infix expression into its postfix form. My current code is allowing the user to input a string, but it does nothing with the string. I'm fairly new to JAVA, thus I think I'm making a simple mistake … | |
Hi folks Can anyone explain to me why this is not working please? I am trying to delete the first 52 lines of a text file, then skip deleting the next line, then deleting the next 100 lines, then skipping the next line and repeating the process until the file … | |
Hello, I am a new member to this forum. I have some announcements, I will continue to read some more. I need to create a program were the user inputs a number, program displays the cube root for that number. The code I got thusfar is: [CODE][COLOR=#0000ff] #include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] … | |
I've got a simple question: how can I make an onclick return confirm event work inside PHP tags. [code] <HTML> <BODY> <a href="delete.php" OnClick="return confirm('blah blah');"> Click here </a> <?PHP ECHO "<a href='delete.php' OnClick='return confirm('blah blah');'> Click here </a>"; ?> </BODY> </HTML> [/code] the first link is a simple html … | |
Hi, I'm trying to create a pretty basic fancy string output, [CODE] #include <iostream> #include <cstring> #include <stdlib.h> using namespace std; int main() { char output[] = "Hello there world"; int len = strlen(output); for (int i = 0; i < len; i++) { cout << output[i]; system("sleep 0.1"); } … | |
Hi guys I'm having sometrouble here! Please help if you can! I'm storing in a mysql database the price of some products. I am storing them in cents ie. €5.99 = 599. I have the following code that will output just that: [CODE]<?php $x='599'; $num = $x; $last_num = strlen($num) … | |
Hello, I'm trying to make my code work with -Wall -Werror flags but I get the above error (error: array subscript has type char). Here is the code, which works if these flags are not set. The code is meant to check whether the first character from text is blank … |
The End.