64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for shadiadiph

My earlier post works ok now to display I have been working on how to transfer the info to be displayed on another page. I can't get it to work in theory i thik it should be working can anyone give me an idea what I have done wrong. on …

Member Avatar for nav33n
0
112
Member Avatar for TheGhost

I have problems with the map, in the below loop. [CODE] //iterator declared as "it" and map declared as "aMap" //key of a map declared as "key" while(true){ for(it = aMap.begin(); it != aMap.end(); it++){ //some processing if(//some condition){ //some processing aMap.erase(key); it--; } } //some processing //some conditions to …

Member Avatar for TheGhost
0
129
Member Avatar for daviddoria

I have to call a function in the form f(void* params) I would like to pass two vector<double> to this function. I suppose I should make a struct struct MyParam_t { vector<double> myvector1; vector<double> myvector2; }; and then somehow fill it and pass it to the function. Someone recommended that …

Member Avatar for Ancient Dragon
0
107
Member Avatar for Jennifer84

I am wondering how a "Managed vector" is declared. I have worked much with: std::vector<string> OneVector; How is the same declared for a Managed type ? What I am trying to do is to translate this to managed: [code] std::vector<string> OneVector; std::string Stuff = "Hello"; OneVector.push_back(Stuff); [/code] At the same …

Member Avatar for Radical Edward
0
186
Member Avatar for Sky Diploma

Hi Everyone , I have some doubts which i have encounteered when i was working on a project of mine, 1)I was wondering whether system("sky.exe") could have variables in it. can i use a string in the place of "sky.exe" something like this [code] string s; s="sky.exe"; system(s); [/CODE] 2) …

Member Avatar for Sky Diploma
0
146
Member Avatar for swapna7999

hi there i have a vb application and its exe and i know how to call an exe in a php page but my problem is , i need to place the exe in a fixed position in the php page is it possible and if yes how plz let …

0
56
Member Avatar for braineles

Hi, I am trying to create a menu list in asp.net 2.0 and want to use shortcut keys for the same. The menu contains links to other pages which i want to view. The back end is C#. Kindly guid me through the process of achevining the same. the code …

0
62
Member Avatar for serkan sendur

I dont want the windows media player automatically open the wmv files as streaming videos. I want the wmv links to open as download dialog boxes. I know one approach is to zip the wmv files but i dont want this. How can i achieve this?

Member Avatar for majestic0110
0
114
Member Avatar for Seagull One

This problem has been bugging me for the past few days. I've tried all sorts of different things to get it to work, studied my books, but nothing. It goes like this: Let's say I want my robot to recite the three laws of robotics. I can say, "Recite the …

Member Avatar for Seagull One
0
143
Member Avatar for FreezeBlink

For instance, if you have the following (random example): [code=Python]w = input("Enter width") h = input("Enter height") for x in range(0,w): for y in range(0,h): print x,y if (raw_input("Stop? y/n") == "y"): break[/code] That would only break out of the y loop. You could introduce another variable, and change the …

Member Avatar for vegaseat
0
174
Member Avatar for jesseb07

Hey, I've been trying to work with wxwidgets so I can start learning GUI's, problem is, it seems like all their libraries are full of errors. I have a hard time believing that a self-respecting group of people would release, as stable, something that would take hours, if not days, …

Member Avatar for jesseb07
0
152
Member Avatar for cwolfraven

Hi. I am totally new to python. I have a problem that I have been trying to solve without any form of solution. I have a group of files in Directory A that are named like: Text__###__TEXT___###.tif These are dummy files. The real files are in Directory B and are …

Member Avatar for Freaky_Chris
0
99
Member Avatar for Shadow14l

I just want a console to run. When I use this function, I don't ever want the automatic tk window to appear. How would I use this function without any gui? *Also on a side note, what is the python code tag? (python)is it this :P?(/python)

Member Avatar for Shadow14l
0
245
Member Avatar for n.aggel

hi guys, it's been a while since i used c for anything so here goes a question tha may seem silly. I have 2 variable length arrays.... [code=c] int main() { int n = 5; int m = 6; int before[n][m]; int after[n][m]; array_function( 5, 6, before, after ); } …

Member Avatar for n.aggel
0
379
Member Avatar for sam_only96

hi all! how can we list all directory as well as file(all hirerchical) in python script by giving the path as input

Member Avatar for sam_only96
0
265
Member Avatar for grommet2481

I know that this is a simple one but never the less I forget how to do it. How do I create white spaces on my screen. Im writting in DEV-C++. I want my output to look something like this Name title pay Sam Uni student shit I know how …

Member Avatar for grommet2481
0
93
Member Avatar for noraantonia

Hello, I have a question. I work in visual c++ in a document/view arhitecture (SDI application) and i draw some stuff with some opengl functions (cubes, cylinders) but when i hit the "New" menu from the File menu it doesn't erase or clear my drawing I don't know why. Can …

Member Avatar for noraantonia
0
91
Member Avatar for tanha

Hello everybody, I am using WAMP: 1. PHP 5.. 2. MySQL 5.. 3. Apache 2.. the collation of my database and tables and fields are 'utf8_persian_ci', and also my query is in this format in PHP: [CODE]mysql_query("SET NAMES utf8"); mysql_query("SET CHARACTER SET utf8"); $query = mysql_query("SELECT * FROM tblName SORT …

Member Avatar for tanha
0
131
Member Avatar for chazzquire

Hello, I'm trying to use getch several times in my program, but it is remembering earlier key presses. Is there a function or command I can use to clear the getch buffer? Or am is there something else I am doing wrong? Thank you. C.

Member Avatar for chazzquire
0
159
Member Avatar for Clockowl

hai. I'm trying to compile a program split up across multiple files. The code is far from complete, but I noticed lots of compiler warnings and errors. This ought to be due to splitting the code up: I thought the preprocessor simply copy and pasted the code into main.c when …

Member Avatar for Clockowl
0
127
Member Avatar for assgar

Hi The goal is to allow the user the ability to compare daily schedules of between 1 to 7 users. The number of columns/user schedule and column headers are dynamically created base on user selection. Each user schedule is set up in columns with the user name at the top …

0
117
Member Avatar for Jennifer84

I am reading a file that is about 20 Mb, this will take about 10 seconds. A few lines from this file look like below. The first value is a date value that go from lower to higher and the second value after the "Comma" is a number. In the …

Member Avatar for Jennifer84
0
581
Member Avatar for BBaller1211

I have a Pong game with a level editor (as long as you have the source code) where you can put walls where you want. There are also walls that only balls hit by the player can pass through, walls that only balls hit by the Cpu can pass through, …

Member Avatar for BBaller1211
0
100
Member Avatar for xyster

I have a quick question that is been bugging me. [CODE]void swap(void *a, void *b) { void *tmp; tmp = a; a = b; b = tmp; }[/CODE] I wrote this intending it to be either able to swap a structure, or just the data defined within a structure. Will …

Member Avatar for xyster
0
103
Member Avatar for Borderline

Hi There I have a very simple web gallery in php and mysql. I have noticed upon creating it, that I have several fields in my database contacting the same information (to a certain extent) and I wondered whether this would eventually put a strain on my server. Would it …

Member Avatar for amigura
0
134
Member Avatar for Paua

Newbie question; How do I cast a text file to an array, after the file is read using StreamReader? I have read many threads, code etc but I really need my hand held here, I just dont get it (especially using windows forms)...this is part of an assignment.... I've been …

Member Avatar for Paua
0
174
Member Avatar for Black Magic

Hey, I made i looked up toupper and made a little program out of it and have come to a little situation, When i enter the space character " " it does not output what i want and it just closes. [CODE=C++]#include <iostream> using namespace std; int main() { int …

Member Avatar for joshmo
0
157
Member Avatar for jagatsastry

Hi people. I was just wondering if I can use _LINE_( by including some header file or so) in devc++ to get the source code line number or _TIMESTAMP_ to get the compile time timestamp. If not is there an alternative? I see compile time errors when I use them …

Member Avatar for jagatsastry
0
218
Member Avatar for BBaller1211

I'm new to Swing, and still relatively new to Java as a whole, and am having trouble with my first Swing program. I'm trying to make a simple Pong game - it will display the title screen with a "Play" button on it that when pressed starts the game. Here …

Member Avatar for BBaller1211
0
82
Member Avatar for jaasaria

hi guyzz, i wanted to have two connection using access and mysql in my proj. my access was my main db connection and what ever data in my access will store directly in mysql db when their is internet connection... I declared 2 fuction connection but my problem is the …

Member Avatar for jaasaria
0
134
Member Avatar for OmniX

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to …

Member Avatar for OmniX
0
92
Member Avatar for OmniX

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to …

Member Avatar for OmniX
0
68
Member Avatar for Metalsiege

Hey everyone. I've been working on a homework assignment to simulate a weather station responsible for recording hourly temps and reporting an average temp. I'm supposed to be passing an array to different functions to first get the temps and input them into the array. Then, compute the average temp …

Member Avatar for Metalsiege
0
204
Member Avatar for oku

Hello everyone, just got a query regarding calculating I'm building a form and depending on how you fill it in you are given a score, currently i am using if/else statements. Here is an example $age is taken from the database after the form is completed (persons age) $mc is …

Member Avatar for oku
0
138
Member Avatar for InfinityArc

hi i am trying to make a function for calculating the commercial boat fee, so if a boat is commercial, the program will add additional fee to the total sum, and if its not it won't add anything to it. i got the function to run, but all i am …

Member Avatar for InfinityArc
0
133
Member Avatar for HB25

Dear Friends I have finished the Data dictionary table for my assignment but I cannot figure out my (Composite and Foreign) Keys. I am attaching my physical data dictionary table with this massage. I would be very grateful if someone could identify them for me and update the table for …

Member Avatar for HB25
0
233
Member Avatar for vanessia_1999

Hi everyone, I am so new to javascript and it is really giving me a micrain. It looks easy but tend to be hard. Atleast for me since I am a beginner. I need help please. I need to make work with the element getElementById I have tried numerous way …

Member Avatar for vanessia_1999
0
129
Member Avatar for TheFueley

I'm trying to work out what should be a simple composition example. For some reason I can't compile this project though. I get three errors when I try to compile. Errors listed below. Where am I going wrong? 1>c:\documents and settings\user\my documents\visual studio 2008\projects\name\name\ssn.h(5) : error C2011: 'SSN' : 'class' …

Member Avatar for TheFueley
0
178
Member Avatar for tefflox

hello, i'm trying to get [URL="http://superiorminitrucks.com/admin"]http://superiorminitrucks.com/admin[/URL] login functionality to work. It's my first logon script, which was tested to work, but I'm running out of brute force to get this one through... [CODE]<?php //////**************************************/ // // LOGIN PAGE // // Server-side: // 1. Start a session // 2. Clear the …

Member Avatar for Narue
-1
312
Member Avatar for Najid
Member Avatar for Jennifer84

I am readin a .txt file Line for Line and what I am interested to do is to identify that if the Line do contains any characters as Letters, text, symbols. Exceptions is things like: '\n' ' ' etc... so "" wont be possible here ? So I am trying …

Member Avatar for Radical Edward
0
91
Member Avatar for maydhyam

Hi All, I have a form with a submit button that enters the registration data into the MySQL DB...is there a way for a notification to be sent to the System Administrator notifying her about the registration?

Member Avatar for maydhyam
0
79
Member Avatar for maydhyam

Hi, Can anyone tell me what is wrong with my code? I am trying to have an email sent to the email addy hardcoded informing the the email receiver that the info was sent into the DB...and when I do add a user, no email was sent...only the registration data …

Member Avatar for maydhyam
0
174
Member Avatar for maydhyam

Hi All, I think I'm lost..... Here's my problem, I have a searchUser.php which allows the user to enter the Employee ID and submit (which searches for the user). The result is displayed from the chunk of code below. I want to allow the user to append a particular field, …

Member Avatar for maydhyam
0
120
Member Avatar for servis

i am extemly newbie and don’t know whether I should post my problem here or somewhere else, however… i have following problem in one of my php-mysql application header link through browser is, "http://localhost/test/reply.php?id=852" and query is as follow, [ICODE] $name=$_POST['name']; //from the name form $q_id=$_GET['id']; $sql="INSERT INTO `test`.`reply`(`rid`,`tid`,`name`)VALUES(NULL,'$q_id','$name')"; $result=mysql_query($sql);[/ICODE] …

Member Avatar for rgviza
0
4K
Member Avatar for princeanthony

Please write echo statement from html statement below; <a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a>

0
73
Member Avatar for guest7

Hi, I wish to do the following things: a) Append the first three lines from the file "file1.txt" at the end of another file "file2.txt" b) Run a program "prog1.cpp" which uses the file file2.txt. c) Delete the three lines appended at the end of the file "file2.txt". and append …

Member Avatar for Duoas
0
96
Member Avatar for rayman341

typedef struct iphdr { u_char ip_hl:4, /* header length */ ip_v:4; /* version */ u_char ip_tos; /* type of service */ short ip_len; /* total length */ u_short ip_id; /* identification */ short ip_off; /* fragment offset field */ #define IP_DF 0x4000 /* dont fragment flag */ #define IP_MF 0x2000 …

Member Avatar for rayman341
0
470
Member Avatar for Ole Raptor

Hello I have been working on this script for a little while. All is working good(get all information into the xml). But I am needing to have the php code add an image to the xml for download. If anybody as any ideas i would greatly appreciate it. I have …

Member Avatar for Ole Raptor
0
97
Member Avatar for henpecked1

I have some questions, some might seem kind of dumb, but we're studying overloading operators and inheritance/polymorphing. I'm having trouble finding some references on some things to show me how to do this stuff or why I'm doing it a certain way. what kind/type of binary operators can I use …

Member Avatar for Radical Edward
0
117

The End.