199,114 Archived Topics
Remove Filter ![]() | |
Hey guys! I'm taking a C# class this semester and I've been struggling extremely bad. It's like, I can't get my mind to think simply, everything I think, I over think. When I'm doing labs, I can break down what I want each thing to do bit by bit, but … | |
This is a somewhat big project for me as I'm not very experienced in c++. The end goal is to read a text file, and read every word in the text file. Each time a new word is read, store it in a vector. If a word is repeated, keep … | |
I have 3 tables in MSSQL 2008 (ABSTRACT) [INDENT]tblContacts: [/INDENT] [INDENT][INDENT]ContactID: Auto Numbering Int[/INDENT][/INDENT] [INDENT][INDENT]FName: string [/INDENT][/INDENT] [INDENT][INDENT]LName: string[/INDENT][/INDENT] [INDENT][INDENT]Address1: string[/INDENT][/INDENT] [INDENT][INDENT]Address2: String[/INDENT][/INDENT] [INDENT][INDENT]City: string[/INDENT][/INDENT] [INDENT][INDENT]State: string[/INDENT][/INDENT] [INDENT][INDENT]Zip: string[/INDENT][/INDENT] [INDENT][INDENT]ContactType: int[/INDENT][/INDENT] [INDENT]tblStaff:[/INDENT] [INDENT][INDENT]ContactID: int[/INDENT][/INDENT] [INDENT][INDENT]StaffID: AutoNumber Int[/INDENT][/INDENT] [INDENT][INDENT]Title: string[/INDENT][/INDENT] [INDENT][INDENT]Unit: string[/INDENT][/INDENT] [INDENT][INDENT](etc)[/INDENT][/INDENT] [INDENT]tblMembers:[/INDENT] [INDENT][INDENT]ContactID int[/INDENT][/INDENT] [INDENT][INDENT]ApplicationDate: string[/INDENT][/INDENT] [INDENT][INDENT]Membership Date: date/time[/INDENT][/INDENT] … | |
I am reading Exceptional C++ (Herb Sutter) and there is something that I don't get at all concerning vector insertion. On page 59 it says: 1) "multi-elements inserts ("iterator range" inserts) are never strongly exception-safe" 2) "for vector<T>.... inserts and erases (whether single- or multi-elements) are strongly exception-save as long … | |
![]() | hi i am trying to make a program that whilst ingame (magicka if anyone is interested) reads what is pressed on the keyboard and the simulates a combination of keyboard key down and keyboar key up and mouse press. eg if i press NumPad0 it would simulate Key Press A, … |
Hello forum, vaironl here. I would like to notify you all that I'm in an IB- Computer Science class (I'm learning a lot as I go, since I promise to skip the normal CS course). I would like to know if I could design this frame for my final project, … ![]() | |
Hi World, Im stuck on my Computer Science Homework. Ive found out that I need to compare it to a full adder and that is that. Can someone help me go step by step through it at I have to hand it by Friday and I am quite confused. I … | |
hey guys i just get time limit exceeded error wen ever i submit a pgm wid large values.. how to avoid it. do not use file to store variables | |
Hi fellow programmers! What I want to do is this... * I have a list of registered users * next to each user is a link "Add as friend" * user_1 clicks the link to add user_2 * user_2 now needs to confirm or deny the request WILL THIS TABLE … ![]() | |
Hey guys, I thought getting yesterday's date was now() - 1 but visual studio is giving me error saying '-' is not the right operator. I think now() - 1 was used in VB6. whats the correct way of obtaining yesterday date? | |
ok i try to write a linked list of objects from one class here is the the class: [CODE] class detail{ int code; string unit; string name; float price; public: detail(int c, string u, string n, float p); int get_code(){return code;}; string get_unit(){return unit;}; string get_name(){return name;}; float get_price(){return price;}; … | |
I want to adjust this class that is written for phpBB2 into phpBB3 forums. Here is curl_phpbb.class.php complete code: [url]http://www.phpkode.com/projects/item/curl-phpbb-functions/[/url] I am working at this function: function new_topic($forum_id, $message, $topic_title) As I can see, GET and POST params are different for phpBB3 and that is [B]my main problem: to send … ![]() | |
here's my code; [CODE]SELECT b.alert_id,cur.stock_code, current_name,d.board_name,cur.year_id, cur.period_id,cur.fixed_assets, prev.year_id AS prev_year_id,prev.period_id AS prev_period_id, prev.fixed_assets AS prev_fixed_assets, (cur.fixed_assets*100/prev.fixed_assets) AS "total1", c.para1 FROM company_financial AS cur LEFT JOIN company_info a ON (a.stock_code=cur.stock_code) LEFT JOIN company_alert b ON (b.year_id=cur.year_id) LEFT JOIN ref_alert_parameter c ON (c.alert_id=b.alert_id) LEFT JOIN ref_board d ON (d.board_code=a.board_code) LEFT JOIN ref_sector … | |
I drew a circle to represent a human face. I am drawing an arc to represent the mouth but I am having troubling positioning it in the right place. I have checked the value of x and y in the computation of the arc but can't seem to figure out … | |
How do I make a transparent window in Tkinter? | |
I am trying to create a client to connect to a mysql database using sockets. I have the following code but of course, its not working to my advantage. Right now, this code connects to a server file located on a linux machine...i havent coded it yet to connect to … | |
Hi all, I am working on a small project using Dreamweaver. I have a marquee with many images. Everything works fine in Dreamweaver Live View ( images keep coming out from the right end and disappear into the left end). In IE8 (which supposedly fully support marquee, right?) , once … | |
![]() | Hi, I have excel sheet which contain 100 and 100 of email and corresponding name. I need to seprate them according to the number of occurrence of their name. eg: name email chandran [email]chan@gmail.com[/email] maidhu maidu2yahho.com karan [email]karniii@nii.in[/email] Chandran [email]chan@gmail.com[/email] Chandran [email]chan@gmail.com[/email] karan [email]karniii@gmail.com[/email] excell sheet contain name and email, … ![]() |
am writing a program that plays rock paper scissor. The user will enter choice manually (rock is1, paper is 2, and scissors is 3) and the computer will chose one at random without letting the user know. The game will run as many times as the player wants. I can … | |
Hey guys, Alright I have a tricky assignment to do in a view that will enable my next program to run MUCH faster and more reliable... Now I need to list all Items (1 table) and their locations where they are stored (2nd table) in a way that enables 1 … | |
Please tell me,Why Microsoft choose name operating system (Windows).Please no body reject this question.I know it is not related c#,But it is related IT world. | |
1 the computer displays some secret word(in underscore):--- 2 I guess letter"c"in the word 3 yes,the screen pops up like this :c-- 4 I guess the second letter is u 5 yes , it is :cu- 6 last ,I guess the final one is p 7 yes , it is … | |
In JavaScript (preferably jQuery) how could I create a new element and set its values, but I want it in a specific place In the document. My divs are structured like this : [code]/* container item [item to be created inserted here] */ [/code] I know how to do this … | |
Recently started basic programming in uni and I am struggling with c#. One of my lab questions was write a dice program, i will write the exact question below. Because of anxiety I cannot ask the lecturer for help in class so thats why I am here. I am unsure … | |
just like my title says my loop won't work [CODE]import java.util.Scanner; public class TestSocialEvent { static String title, attire, dayweek,input,time; static int day,month,year; public static void main(String[] args) { Scanner k = new Scanner(System.in); System.out.println("Social Planner"); SocialEventController sec = new SocialEventController(); while(true){ SocialEvent ev = new SocialEvent(attire, dayweek, title, day, … | |
Ive been working on a web map application with OpenLayers as a client side library, geoserver and Postgresql as database.I am a newbie in OpenLayers and javascript as well.I need to commit the features added on the map into the database.Is there a way i can specify the table in … | |
![]() | [QUOTE]Que.h Header file [/QUOTE] [CODE]template < class T> class Que{ public : Que(); Que(int max); ~Que(); int isFull()const ; int isEmpty()const ; void Insert( T newItem); void Remove(T & item); private : int front , rear; int maxQue; int count ; T * Items; // Dynamic Arry Implementation }; template … ![]() |
hey guy's iam a biggner at data structure n there z a program i did it bt everytime i run it doesn't work with me and i dono what is the wrong on it can somebody help me plz [CODE]#include <iostream> #include <string> using namespace std; class student_grades{ private: string … | |
[CODE]#include<stdio.h> #include<graphics.h> #include<stdlib.h> #include<conio.h> void main() { int graphdriver=DETECT,graphmode; int color,n,m; initgraph(&graphdriver,&graphmode,"C:\\TC\\BGI"); for(n=0;n<10;n++) { putpixel(250+n,350,BLUE); } for(m=0;m<10;m++) { int x=getpixel(250+m,350); printf("%d",x); } getch(); }[/CODE] please any one help me solving errors.. | |
Hay everyone. Im busy creating a program, but first you have to log in with a little form I made. I thought about using a registry entry, but I dont know how to use Tregistry. It should also be possible to use on a network pc with only client level … | |
Hi! I have another assignment regarding writing a program based on a given output. Here's the Output given: Output: Enter your date of birth: Day: Month: Year: My birth date is on 31 August 1980. So, here's my answer( Although it is wrong; with about 6 ERRORS in it): [CODE]#include … | |
am trying to rebuild my chat content by storing it into a stringlist first and then re-pushing it out but problem am having is with my font settings i can not work out how to add my font styles to the string has anyone got any code to show how … | |
Hello, I've been trying to create a script that will take defined pages of a PDF and display them to a webpage using PHP. I've looked through the PHP Manual and only came up with ways to create a PDF, but no read options. --Detailed Scenario-- My school wanted me … | |
I am writing a code that will login the user then one they are logged in they will enter in other information in textboxes. I wanted to know how to check that the username, password and ID match what is in a sql database. Also once it goes through how … | |
i have this code in a page called process.php to create a page dynamically. [CODE]$_SESSION['z']=$post; $string = '<?php $p='.$_SESSION['z'].'; ?> '; $fp = fopen("$post.php", "w"); fwrite($fp, $string); fclose($fp); [/CODE] if $post=big then it creates a page big.php with this code [CODE] <?php $p=big; ?> [/CODE] but i want to write … | |
![]() | Hi, I am posting in PHP forum as I believe it is a PHP problem. I have seen examples of inserting multiple rows and it seems there are generally 2 options...to use multiple insert commands or to 'concatonate' the query. I have tried these options but with no success. So … |
Hello, i need to list all menu items on page load, now it's on mouseover anyone can help? [ICODE] <a href="home.php?cat={$catid}" class="arrow" onmouseover="javascript: return switchSubcatLayer(this);"></a>[/ICODE] | |
Can anyone tell me if the following query can be done? [CODE]mysql_query("SELECT a, b, (a+b) AS c FROM table WHERE c=1");[/CODE] When I try this I get an unknown column error for c. In order to get the query to work I have had to do this [CODE]mysql_query("SELECT a, b, … | |
Hi all, I need to run a query that performs a count(*) on a table. This gives me the subtotals for each group. Now I need to sumarize the subtotals with sum the results given by the previous count. What would be the best way to do this? Thanks. | |
hi guys! how do I put div tags at the beginning of the $ _SESSION until </ a> [CODE] echo $_SESSION['username'].' | <a href="logout.php">Logout</a>'; [/CODE] | |
Hey, I need to make a function that returns an array. How would I do so? And how would I make a variable that gets all the values in that function? Thanks, you guys :) | |
On the 'Edit Profile' page of my eCommerce Wordpress Theme ([url]http://www.projectdisobey.com/disobeyclothing[/url]), no error message appears when I do any of the following in the ''New Password' and 'Confirm New Password' text fields: 1. 'New Password' and 'Confirm New Password' do not match. 2. 'Confirm New Password' field is left empty. … | |
Hi everyone, When I try the code below with data in a txt file, I have no problems and the data prints properly and neatly on the screen. (Note, one slight modification when using a txt file, instead of getline (ist, ignored, ','), I do getline (ist, ignored, '/t') to … ![]() | |
Hi, I have a StatusStrip and is filled with Year in the format say "June2009 - May2010". I want to get the years from this string like 2009,2010 from the above string. Please suggest how can i do this. I have tried this but not able to further separate June2009. … | |
Hi! I have another assignment regarding writing a program based on a given output. Here's the Output given: Output: Enter your date of birth: Day: Month: Year: My birth date is on 31 August 1980. So, here's my answer( Although it is wrong; with about 6 ERRORS in it): [CODE]#include … | |
Hi, The onUnload event is triggerred both when a user clicks the 'Refresh' button(post back) as well as when the user clicks the 'X' (close browser)icon on the browser. I have to build an application in which the page may post back while drop-downlist selected index change event occurs.I need … | |
Hello, I am learning classes and object and I have a problem with this code. Simply does not work. Can you tell me the reason please? Error message tells me that Distance is not defined...(I donĀ“t understand this message) Thank you for help! Vlady [CODE]class Distance(object): 'return distance between 2 … | |
I made an asp.net application and two exe files (of my windows application) are added on button click event of my asp.net application. It works fine when i run locally but when i host this website, its not showing me exe files instead these exe files are showing in my … | |
hi, i am looking at a way of integrating an email system where users can check their own email from within the system and email from it. basicaly within the cms they should have the ability to login to their pop3 email if possible. only problem is that the cms … |
The End.