199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lewashby

In the following program what is `ifstream`? It looks like it might be a Class name making `file_in` an object of that class passing `filename` as an argument but this particular book hasn't touched OOP yet so I wasn't sure. #include <iostream> #include <fstream> using namespace std; int main() { …

Member Avatar for NathanOliver
0
336
Member Avatar for Pyler

I'm almost giving up on this problem. How to convert an integer to it's hexadecimal equivalent. I'm not looking to printout the hexadecimal equivalent of the integer in printf() but for a hexadecimal number.

Member Avatar for Lardmeister
0
395
Member Avatar for nitin1

I was just thinking that why I need headers at all? In headers, most oftenly we have the declarations only. In .cpp we have the definitons of that .h file. But, why can't we write all the functions directly in .h file and include it in my project files? Why …

Member Avatar for Lardmeister
0
235
Member Avatar for OMDYD

hi guys am new please i your help to debug the error with this code am working with String output="Sum of the Addition of "+num1+" "+num2+" "+num3+" "+num4+" Sum

Member Avatar for oussama_1
0
412
Member Avatar for ernesto22

im new to php . plz help. i have a page where people fill in a form and check on checkboxes. i also have a page where i edit. i want to know if its possible that on my edit page i could see the checked box checked ? example …

Member Avatar for diafol
0
354
Member Avatar for nufftalon

Hi if not too much hassle would like some general guidance on how to go about moving an existing clients drupal website. I never dealt with drupal as of yet. I was gonna host him and do changes for him. His old company gave me a folder with files in …

Member Avatar for nufftalon
0
230
Member Avatar for francototti

#include <conio.h> #include <stdio.h> #include <string.h> #include <fstream.h> #include <iostream.h> #include <stdlib.h> #include <iomanip.h> class Movie{ public: char name[40]; char dir[40]; char writer[40]; char release[6]; char genre[40]; char cast[80]; char budget[10]; char grossing[10]; char country[30]; char lang[30]; char rating[5]; }; int compare(char *, char *); void input(char *); void list(char …

Member Avatar for abdul04
0
189
Member Avatar for Jake.20

Greetings, can someone help me on this? I'm really out of ideas. What i need to do is when i click the link the value of it's ID should be pass on the label inside the modal. Here's my code: <div class="row"> <div class="large-12 columns"> <label id="devFont">-Device-</label> <div class="row"> @foreach …

Member Avatar for Jake.20
0
8K
Member Avatar for Ojo_1

I need the serial key and authorization key for delphi 8.All i have been seeing is contact delphi.How will i do that please anyone with usefull information.

Member Avatar for pritaeas
0
312
Member Avatar for piers

Hi, I am trying to take a number entry from a text field to use in some round Robin code to output the data. When I type a number for the variable num e.g. var num=12; the program works fine, but if I try to do it from text field …

Member Avatar for piers
0
180
Member Avatar for AliGulSoomro1

I am desiging a Form in which I am asking user to enter: Name in Textbox1 ID Card Number in Text2 here i want to code for textbox2 that it accepts only numbers and "-" but don't know how to control. Can anyone help me?

Member Avatar for J.C. SolvoTerra
0
1K
Member Avatar for toomutch

Hi All, I have a DOS batch script file that is scheduled to run hourly, to move any PDF files from a bunch of folders, and put them in one folder. When I view the target folder in Windows Explorer, all of the PDF files have a padlock icon on …

Member Avatar for SalmiSoft
0
347
Member Avatar for Darkzero45

So, I've wanted to learn how to program for a while now. Like 10 years. I have gotten nowhere with my endeavors. I haven't been able to go to college yet(working on that for the Spring semester) and I haven't been able to teach myself how to program. I work …

Member Avatar for DonnSchwartz
0
119
Member Avatar for Santanu Das

I am now in a problem to prompt user at the first run of my program. The Server is msSql Server 2008 R2 and Plaform vb.Net 2010. At the time of starting, the program starts to search the file, where the ConnectionString is saved. If it get then well else …

Member Avatar for Santanu Das
0
229
Member Avatar for markii.borabon_1

how can I drag or move my table td... any suggestion thanks in advance sir,

Member Avatar for markii.borabon_1
0
98
Member Avatar for markii.borabon_1

Im trying to explode the value of my query to input field so im able to edit them: this what I've got so far :: $temp = explode(',',$sizes); if($temp){ $ctr_size=''; foreach($temp as $size){ echo "<input type='text' value". $size.">"; $ctr_size++; } } please help..

Member Avatar for markii.borabon_1
0
209
Member Avatar for an00p

Hello guys, I have a doubt regarding the tabs I have in my project. Its a user view page with multiple tabs in it. Each tab is having details like user basic info, social profile info, skills etc. The current setup is PHP tabs with $_GET['tab'] value. There are different …

Member Avatar for veedeoo
0
437
Member Avatar for chubbyy.putto

Here is what i got so far. I got stuck at white-space separated words from a file, convert all words to a single case, and remove any non-alphanumeric characters from both ends of the words. It is to count the number of each word, and then write to a file …

Member Avatar for rubberman
0
184
Member Avatar for docfnt

I've built several user/custom controls in the effort of saving space on my UI main screen. Slide in/Sliode out, collapsable controls save a lot of space on the screen for Art/Design programs. My nightmare is that I hit the same wall every time. I can't get a control to activate …

Member Avatar for docfnt
0
228
Member Avatar for redkowloon

Hi , my friend pass this coding to me , to change it on few things , i try to change it first , to make a while looping ... loop for once but i get error , then change the input from number+letter to letter+number , still got no …

Member Avatar for redkowloon
0
123
Member Avatar for moaz.amin.37

import java.io.*; class ConsoleInput{ public static void main(String ss[]) throws IOException{ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); char c=' '; System.out.println("Enter Characters And q to Quiet"); do{ c=(char)br.read(); System.out.println(c); }while(c != 'q'); } } in upper code this line `c=(char)br.read();` get string from user at this point user enter some …

Member Avatar for JamesCherrill
0
268
Member Avatar for Jannezs

Can someone help me with my problem? I try to make a sum with radio buttons in php, but it doesn't see my value This are my codes: <FORM METHOD="POST" ACTION="12.php" > <DIV>Kies uw product:<br> <INPUT NAME="product" TYPE="radio" VALUE="400" CHECKED>Opblaas rijdende Eend <br> <INPUT NAME="product" TYPE="radio" VALUE="15000">Opblaasbare rijdende televisie <br> …

Member Avatar for toxicandy
0
1K
Member Avatar for malatamil

after login i want to display logout and username. but here if i login again its showing login. please some help me index.php <?php session_start(); $city=$_SESSION['city']; $userl = $_SESSION['username1']; <?php if(!isset($userl) == '') { ?> <div class="header_nav_left">Welcome <?php echo $userl; ?> | <a href="logout.php" id="clicklogin" title="Logout" onClick="NewWindow(this.href,'loginwindow','500','500','no','center');return false" onFocus="this.blur()">Logout</a></div> <?php …

Member Avatar for toxicandy
0
152
Member Avatar for lewashby

One of my C++ books was showing the line `cin.getline(arg, arg)` and later showing `getline(cin, arg)`. Why is the second one not object.function and yet have the object as one of the arguments? What's the difference?

Member Avatar for lewashby
0
327
Member Avatar for rose_2

i will start studying programming with C++ prog. language .. which programs should I use ?? please I need some help

Member Avatar for JasonHippy
0
234
Member Avatar for aluhnev

#include "stdafx.h" #include<iostream> #include<fstream> #include<string> #include<vector> using namespace std; struct DATE{ int day; int month; int year; }; struct onDutyRecords{ string name; double sunshine; double rainfall; double midTemp; DATE date; }; onDutyRecords person; int ShowMenu(void); void ListDaysOnDutyOfMet(vector <onDutyRecords> &); void ListAllTheWetDays(vector <onDutyRecords> &); void ListDaysOnDutyOfMet(vector <onDutyRecords> &); void ListAllTheSunnyDays(vector <onDutyRecords> …

Member Avatar for JasonHippy
0
330
Member Avatar for moaz.amin.37

Hello every body i have a problem with Scanner class.So my question is that when we use `BufferedReader` or`InputStreamReader` to reading and writing input and output then we use `close()`method to close the stream but in the case of `Scanner` why we do not close the stream this is my …

Member Avatar for JamesCherrill
0
162
Member Avatar for Zaprzap

I have been working through the Accelerated C++ book. In the fifth chapter I am beginning to construct my own programs without the aid of step by step instructions from the book. There is an exercise that requests for me to write a program that produces a permuted index. The …

Member Avatar for NathanOliver
0
254
Member Avatar for theashman88

I am creating a form that uses a DateTimePicker control to display the date in the format of h:mm:ss tt. I am trying to make the default time one hour ahead. The control is labeled deliveryTime and I tried double clicking it and then typing in `DateTime.Now.AddHours(1);` I dont know …

Member Avatar for ddanbe
0
463
Member Avatar for nitin1

For my project, I need to learn multithreading in C++. I have read 4-5 articles on Google, and have searched for more but they all are more or less similar. I want to learn it in depth. Can you provide me some links/source/anything for learning mutilthreading in C++? I am …

Member Avatar for Moschops
0
164
Member Avatar for ma.da.7140

Can someone help me with below script, this is script for change password. But it always can't recognize the old password. i'm really thankfull for your comments.. <?php include("plogin.php"); //$_SESSION["userId"] = $_POST['id']; //$userId = $_POST['id']; session_start(); include("config.php"); //Cek Login if ($_SESSION['level']==user) { $namaLgkp = $_SESSION['username']; if(count($_POST)>0) { $result = mysql_query("SELECT …

Member Avatar for Adrian_5
0
270
Member Avatar for davy_yg

Column 'group_id' in where clause is ambiguous. I wonder why? invoice.php <?php //LOAD GROUP $result2 = mysql_query("SELECT group_name FROM `group` INNER JOIN invoice ON `group`.group_id = `invoice`.group_id WHERE group_id = '".$_GET['group_id']."' ORDER BY group_date") or die(mysql_error()); $result = mysql_query("SELECT * FROM `invoice` WHERE group_id = '".$_GET['group_id']."' ORDER BY group_date ASC") …

Member Avatar for Adrian_5
0
566
Member Avatar for Glenn Rodgers
Member Avatar for diafol
0
274
Member Avatar for ma.da.7140

Hi guys, can anyone help me with this script. i would like to update password into md5. what should i do TQ <?php include("plogin.php"); session_start(); //Cek Login if ($_SESSION['level']==user) { $namaLgkp = $_SESSION['username']; ?> <?php session_start(); include("config.php"); if($_REQUEST["Submit"]=="Ganti") { $sql="update tb_user set password ='$_REQUEST[pwbaru]' where username = '$_SESSION[username]'"; //echo $sql; …

Member Avatar for diafol
0
247
Member Avatar for nadiam

Hi, so i have this list of table seats like table of 6, table of 8 that kind of thing and i have images(width and height:110px) that correspond with those seats but by default they are hidden using `.hide()` and there is also a div(width:880px, height:350px) where these images would …

Member Avatar for nadiam
0
340
Member Avatar for haider885

Hi... I just want to ask What are requirments to make a portal system? Like student-portal system of a University?

Member Avatar for JorgeM
0
141
Member Avatar for ankit1122

hello, <?php $q=$_GET['q']; //echo $q; $con=mysqli_connect("localhost","root","",$q); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $abc=mysqli_query($con,"use $q") or die('cannot show tables'); $result=mysqli_query($con,"show tables"); echo "<select id='abc'>"; while($row= mysqli_fetch_array($result)) { echo "<option value='". $row[0]. "'/>" . $row[0] . "</option>"; } echo "</select>"; ?> i want to response …

Member Avatar for diafol
0
189
Member Avatar for Anitha14

I have a c# windows form application with Webbrowser control. For the URL that I have, need to get the POST data. How do I get this? SHould this be coded inside the webbrowser.Navigating event?

Member Avatar for anthonydaly
0
360
Member Avatar for ankit1122

hello i have seen that tables are locked in mysql while reading the same table..so should i continue using mysql in my website...

Member Avatar for steelbrain
0
285
Member Avatar for Elixir42

Hi Answerers, **Background:** I just figured out how to solve my unresolved external symbols by just dragging the project files from explorer (contained in exe's directory) and plonking them in the dll project, under thier own filter! **Original Situation:** I was getting 'unresolved external symbols' errors because I was #include-ing …

Member Avatar for Elixir42
0
257
Member Avatar for Slavi

Hey guys, another one that I got stuck on(Although I passed 4000 points, soon to be on the leader board!:D) ... so here is the idea I have an input array for example {1,2,3,4,5,6,7} and an int number for example 10; so what I have to do is return all …

Member Avatar for Slavi
0
279
Member Avatar for Razi_1

Does anyone have an idea of how I should make a simple calculator without the case function?

Member Avatar for Razi_1
0
1K
Member Avatar for koneill

All, I'm wondering if their is a way to use the CSS clip to place my image propational within another image. In this case - I am giving users the ability to upload their own image: As an example - this URL shows the uploaded image: http://www.pinkcloud.com/custom_clock/submit.php?upload_message=image uploaded&upload_message_type=success&show_image=kmo_mikeg.jpg Here are …

Member Avatar for mattster
0
344
Member Avatar for davidbr

Hi, I wrote a small app which have some different pages but now i have a problem with update dynamically a label text from one of the pages. I would highly appreciate if anyone can have a look and maybe help me... I want to update self.label1 from pag01 class …

Member Avatar for davidbr
0
8K
Member Avatar for CashFlowsToo

Why is Ruby so special? How does it impact Mobile App Development? I don't quite understand how or why rails and ruby is relevant. I'm very new to understanding how and why Ruby is very relevant in Silicon Valley.

Member Avatar for L7Sqr
0
298
Member Avatar for showman13

OK, this may be an elementary question, and hopefully there is a quick and easy resolution... I have always had this issue and previously just dealt with it, but want to get it working the way it should be. When I generate an email from within a PHP script that …

Member Avatar for mattster
0
268
Member Avatar for Razi_1

So I pretty much found how to make a "Shutdown Timer" from youtube. Can anyone tell me how I can expand it to days instead of hours? Program shutdowntimer; uses crt,windows,dos; const sec = 1000; // one second in ms min = 60000; // one minute in ms var h,m,s:integer; …

0
120
Member Avatar for davy_yg

Hello, I have this code and I try to print group_level before I record it and it doesn't appears: invoice_edit.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" …

Member Avatar for mattster
0
181
Member Avatar for yaldoo

Hello All! I am having trouble with my C++ code. The problem is that my code isn't giving me the correct logic outputs, Also, my teacher said to MUST MAKE the output look like this : P and Q : T P or Q : T P --> Q : …

Member Avatar for sepp2k
0
4K
Member Avatar for James_30

Can someone recommend a book or some reference to properly code DAO`s and apache derby client driver. The derby manual did mot cover this I will display my code in my next post

0
96

The End.