199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for samii1017

Okay, so pretty much I have to use structs to print out information about 4 dogs. However, I can only get the first dog, Smokey's information to print. Any advice on how to get the other four to print? #include <stdio.h> #include <stdlib.h> #include <string.h> #define pause system("pause") #define SIZE …

Member Avatar for Moschops
0
138
Member Avatar for csss

i want to split the power value ex:11 pow 10 = (11 pow 7)(11 pow 3) like that i want to split the value please help me

Member Avatar for tinstaafl
0
170
Member Avatar for baheer

I have the following Code: I also tried also to use foreach Loop but it doesn't work. Any one can help me please: [CODE] ############### Code <?php include("config.php"); $sql="SELECT * FROM news"; $result=mysql_query($sql); $count=mysql_num_rows($result); ?> <table width="400" border="0" cellspacing="1" cellpadding="0"> <tr> <td><form name="form1" method="post" action=""> <table width="400" border="0" cellpadding="3" cellspacing="1" …

Member Avatar for menelik
0
868
Member Avatar for mrpython1

Im thinking about making a little system for an imaginary retailer, Im going to have a section for the employers and there sales figures, Was just wondering If there was something like an import function for graphs? Im a bit of a noob so go easy

Member Avatar for vegaseat
0
535
Member Avatar for MRehanQadri

If the prototype of my function is void sell_item(store **head,store **tail). In main i've passed sell_item(&head,&tail), where head & tail where both pointers of store(struct) type. Now I want to access the the content where head is pointing to. How shall I access it? Like *head->next??? But this is not …

Member Avatar for MRehanQadri
0
168
Member Avatar for ImZick

Hello i have a problem on connecting my database. i have this kind of code which would get the item in the combobox and use it as my connection Dim ConFunnelLocation As String = "C:\Database\Funnel\" & Form_Funnel_Report.Combo_Funnel_EBU.Text & ".xls" and a table Dim TblFunnelCon As String = Form_Funnel_Report.Combo_Funnel_AM.Text & "$" …

Member Avatar for G_Waddell
0
203
Member Avatar for Samyx

Hello Everyone, I am trying to display a graph, but it is not working. I see that the variables is getting the correct value, so maybe the addSeries is not recognizing the variables. Can anyone help me? See the code below: <!DOCTYPE html> <html > <head> <?php //connect to database …

Member Avatar for Samyx
0
190
Member Avatar for totalwar235

I was attempting to recreate the fibonacci sequence and I made a working code but my code will refuse to use a number above 12. any ideas what is wrong? #include <stdio.h> #include <stdlib.h> int main() { const int user = 1; long int fib[user]; int i = 0; int …

Member Avatar for deceptikon
0
179
Member Avatar for Jacklittle01

I am developing a text based rpg, but do not know how to go to different def statement, but it says it is not defined. Help?

Member Avatar for Jacklittle01
0
137
Member Avatar for nitin1

#include<iostream> #include<string> #include<vector> #include<algorithm> #include <cstdlib> using namespace std; int main() { char s[5]; string g; int p=345; sprintf(s,"%d",345); g=s; g+=".mp3"; cout<<g<<endl; getchar(); return 0; } I have a very small doubt about strings. this is code snippet i have shown. when i have called sprintf(), then it has changed …

Member Avatar for Moschops
0
163
Member Avatar for adikimicky

Hello everyone, I am trying to make a chat application. For this i have made two programs-SERVER and CLIENT. But these are connecting. import java.io.*; import java.net.*; public class SimpleServer { public static void main(String args[]) { ServerSocket s=null; try { s=new ServerSocket (6666); } catch(IOException e) { e.printStackTrace(); } …

Member Avatar for adikimicky
0
183
Member Avatar for nova37

am using dev c++ updated version for my project am using myql c api problem is when i run my application it stop and says that mysql.dll is missing , currently when i place mysql.dll in the app folder it cant give me the error , so i want to …

Member Avatar for Ancient Dragon
0
192
Member Avatar for sumitrapaul123

Hi, I am very week in design and program to interface. I have a task to design few classes. I have some simple interfaces like below. Sample interfaces. public interface IParameterValue { string ParameterName { get; set; } string ParameterValu { get; set; } } the above interface is a …

Member Avatar for TnTinMN
0
276
Member Avatar for bipi09

hello.. can someone show me how to view html code inside pdfptable using itext

Member Avatar for peter_budo
0
136
Member Avatar for rubai

I am new to php, just made a simple calculator. when I don't select the radio buttons; a notice come up. Notice: Undefined index: r in E:\MY LOCAL SERVER\htdocs\php practise\calculator-form-advanced.php on line 59 Also I want show results in this input section <p> <label for="result">Result</label> <input type="text" value="" /> </p> …

Member Avatar for dinhunzvi
0
523
Member Avatar for ashish2expert

Hello, Though I have done this question without string functions but can anybody give me short algorithm for this. Here is the question: Write a program that reverse the words in a sentence: Enter a sentence: *you can cage a swallow can't you?* Reversal of sentence: *you can't cage a …

Member Avatar for ashish2expert
0
925
Member Avatar for Unused Mass

My listview has 3 columns. "Text" , "Delay" and "". The "" column is to show which one is being ran by filling it with a "<". If I use List.Items(currentTimer - 1).SubItems.Add("<") Then it works, but how will I remove it? SubItems(1) modifies column 1, and SubItems(2) is out …

Member Avatar for Begginnerdev
0
189
Member Avatar for dewdropz

Hi I have the following code which is giving an error while trying to use scanf with it. Please help resolve uint16_t x[3]={1,2,3}; uint16_t y; printf(" %"PRIu16",y); (works) printf("Enter a value for y: "); scanf("%"PRIu16, &y); warning: format '%u' expects argument of type 'unsigned int *', but argument 2 has …

Member Avatar for deceptikon
0
242
Member Avatar for php_noob

Good Day Guys, I am working on a web application and I am not that really good in JQUERY/JAVASCRIPT but I am really interested to learn on that part of web development. Here is the scenario, I have menus that corresponds on records statuses Example this is the menus I …

Member Avatar for php_noob
0
362
Member Avatar for mohan564

i want to select values from database.that values should be displayed in listbox. <Thanks in Advance >

Member Avatar for Ketsuekiame
0
134
Member Avatar for Mclovin

I'm struggeling with a problem which probably is farely easy to solve. I just cant find a simple way to do it. I want to be able to recognize the occurance of digits in a string. Lets say the string looks like: [CODE] file_Name1 = 'abc123de' file_Name2 = 'qwe987rty' [/CODE] …

Member Avatar for Lucaci Andrew
0
2K
Member Avatar for Vish0203

hi.. I'm trying to read a .docx file using apache poi api methods.. But i'm facing a few problems.. Can anyone suggest me the changes to be made in this code?? package apiole; import java.io.*; import org.apache.poi.xwpf.extractor.XWPFWordExtractor; public class Apiole { public static void main(String[] args) throws IOException { File …

Member Avatar for Vish0203
0
288
Member Avatar for Hemanth.Satkuri

I am calling a Stored Proc in Oracle using Hibernate. Procedure: create or replace procedure GetStocks(email in VARCHAR2) is BEGIN execute immediate 'SELECT * FROM stock WHERE email=email'; END; Java Code Query query = session.createSQLQuery("CALL GetStocks(:email)").addEntity(Stock.class).setParameter("email", "abc@xyz.com"); System.out.println("QUERY:"+query.toString()); System.out.println("QUERY SIZE:"+query.list().size()); List result = query.list(); for(int i=0; i<result.size(); i++){ Stock st …

Member Avatar for riahc3
0
372
Member Avatar for ponnu

I have vb form tht accepts user data.I need to check whether user enters emailid in the correct format ?Please provide suggestion .Thanks in advance

Member Avatar for ponnu
0
249
Member Avatar for khair.ullah

hi everyone i am try to write a code for a checkbox that work like a radioButton dynamicaly in vb.net. i.e. if i have 5 check box and i try to check the first one other will become unchecked. Second with same code if i increase the number of check …

Member Avatar for khair.ullah
0
950
Member Avatar for nicholasamh

Hi, I am using visual studio 2008, C++ MFc. I have create 2 edit box. I will let user key in at the editbox1. Then i will get line and paste what user have key in to editbox2. I want it to be something like hyper terminal format. That mean …

Member Avatar for ningappa
0
212
Member Avatar for aneeqtariq_143

i am trying to get the value of radio button which is generated by jquery. I think there is some problem in call events. Here is my code. HTML `<div id="divOption1"></div>` Jquery radio button generate `document.getElementById('divOption1').innerHTML = '<input id="option1" type="radio" value="1"/> '+ questions[currentQuestion]['option1'];` here i call jquery function to get …

Member Avatar for ruchi18
0
348
Member Avatar for Bile

-->>Now I have managed to go through some codes that creates a System Tray Icon... -->>I've managed to create it but something is wrong here that disturbs Me... -->>When I Click on the Tray Icon of My Software it wont Load My Application... -->>That is Say if it was Minimized …

Member Avatar for AndreRet
0
298
Member Avatar for dinhunzvi

i have a php associate array and i want to convert it to a javascript array. how best do i do this

Member Avatar for code739
0
163
Member Avatar for PBubble

Good evening! I'm trying to figure out how to retrieve and display data from MS Access to my project's DataGridView. So far I have the codes to make the options for the CheckedListBox appear. SAMPLE: (Codes for other categories are not included since they're all basically the same) 'view client …

Member Avatar for tinstaafl
0
954
Member Avatar for Counterpartz

Hello, my current assignment states this: "Modify the console application you created in HW1 in the following manner. Instead of using five Console.ReadLine() statements to read the user’s input into the five variables, use one Console.ReadLine() statement that’s inside a loop that executes five times. The rest of your code …

Member Avatar for tinstaafl
0
320
Member Avatar for dewdropz

Help, I am getting a segmentation error. Basically I need a function to print out certain elements of an array. I have created the functions displayArrayVal1 and displayArrayVal2. x_array and y_array are both global. Where am I going wrong? #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> uint16_t x_array[8]={1,2,3}; uint32_t …

Member Avatar for nullptr
0
325
Member Avatar for elanch

hi all! I have created two datetime picker for getting input for start time and end time. but i could'nt able to calculate time duration between them. How to calculate the time duration by getting start and end time input. Thanks in advance elanch

Member Avatar for dhineshbabu2k1
0
2K
Member Avatar for Evil_genius82

Hi All, new to Javascript and stuck on a small issue, its a little late and my head is not thinking straight. The scenerio is I have two textboxes and a submit button. All i want is the values to transfer to a function so i can change 2 global …

Member Avatar for Evil_genius82
0
127
Member Avatar for mikeybware

I have a database of customers (MS Access database) and I am trying to check out the demographics. I would like to list the top 5 cities and their count (how many times this city is found in my database), as well as the top 5 postal codes and their …

Member Avatar for TnTinMN
0
133
Member Avatar for sukhanya

I am very new to c#. How do I write a code for this scenario, There is one Button in my web form. If I click on it, It should retrieve all the names of customers from the database. Can someone please give guide me with code Did not find …

Member Avatar for sukhanya
0
151
Member Avatar for mrpython1

Im trying to create a booking system for a cinema, What i want to do is : open my csv with available seats, print it then ask the user what seat it wants, then the csv need to update taking away the seat, and then that seat gets added to …

Member Avatar for longtomjr
0
4K
Member Avatar for dshiells

Hi all, I've been looking into NoSQL (particularily MangoDB) and am liking what I see. I have one clarification though: If I'm gathering data about a particular "thing" on a daily basis, should I have one document per "thing" and add the new data to it every day? Or should …

Member Avatar for LastMitch
0
195
Member Avatar for J-P1988

Hello, When i compile i get theses undefiend reference to extern lobal variable. In my code, i try to do an file that define it and extern it on SystemeBataille.cpp call th definitor on main.cpp but same error. If i place my extern on an specific function exemple SystemeBataille::placeExternHere i …

Member Avatar for J-P1988
0
6K
Member Avatar for CreatorZeus

trying to search by the file name keep getting a "expects parameter 1 to be resource, boolean" error what am i missing? $pagename = basename($_SERVER['PHP_SELF'], ".php"); mysql_select_db("tagpoint", $con); $sql="SELECT * FROM tagpoint WHERE title = '".$pagename."'"; $result=@mysql_query($sql); $row = mysql_fetch_array($result);

Member Avatar for LastMitch
0
224
Member Avatar for vikarna
Member Avatar for rubberman
0
97
Member Avatar for sigit_p

Hi all,... i've created hyperlink from database to pdf file, my goals when i click the hyperlink then display the pdf file, but the problem is there is a transition page with broken image on the upper left corner and if i place the cursor around the icon the cursor …

Member Avatar for JorgeM
0
204
Member Avatar for ConfusedLearner

Show the hex addresses and variable values after the statements have been executed. (All pointers are 4 bytes!) The first byte of memory below is xFF2A. Not too sure if I am doing this right. Please help. Thanks. t s r q x d c b a 8 8 4 …

Member Avatar for raptr_dflo
0
220
Member Avatar for niario

I tried to create an hourglass with asterisk characters using 'for' loop... both decrement and increment works fine, but I got stucked with text alignment where those asterisks supposed to be printed in the center and justified to bring an hourglass look instead of being sticked to left or right …

Member Avatar for raptr_dflo
0
472
Member Avatar for richard.haines.39

Need some assistance with this program. Don't know what I need to do. import java.io.*; // Needed to open and modify binary data public class FileEncryptionFilter { public static void main(String [] args) throws IOException { // An array to write the file int[] numbers = { 2, 4, 6, …

Member Avatar for richard.haines.39
0
862
Member Avatar for devianleong

Hi, I've a form which allow a user to select the year and category. Year and category will pass the value to the query : "SELECT * FROM Shares WHERE Year = '"&yearr.txt&"' AND Category = '"&category.text&"'" After that I want the report print the report to excel base on …

Member Avatar for Reverend Jim
0
449
Member Avatar for habenero

I was here once before and I'm back; Here's my quandary: What I want to do is build a filename (and save it of course) using what the user puts into a txtbox. In that filename I have the user select one of three option buttons and a number of …

Member Avatar for Reverend Jim
0
164
Member Avatar for tricket_7

I am trying to figure out the best way to approach this..... I am creating a grocery line simulation using a queue, and I know that I will want to create a Customer class that has the information for serviceTime. I am weak on creating classes, what I want to …

Member Avatar for bguild
0
785
Member Avatar for CriticalError

I need some routing help, I am using asp.net web pages and I just want to make routing an automated processes. URLS like this will work http://localhost:24/tutorials/visualbasic/vb-select-case URLs like this will not work: http://localhost:24/sitemap http://localhost:24 In the _AppStart I have this code now: RouteTable.Routes.MapWebPageRoute("{rcPageName}", "~/Default.cshtml", new {rcPageName = "default" }); …

Member Avatar for LastMitch
0
133
Member Avatar for hatebin

Hello ! I'm developing a WebApp using [this example](http://www.primefaces.org/showcase/ui/datatableRowSelectionByColumn.jsf) where I: 1. Connect to MySQL and download data. 2. Populate dataTable with downloaded data using. 3. Fetch(view button) the record and display its details in a dialog. Problem begins when I download the records and click on the viewButton(no matter …

Member Avatar for LastMitch
0
215

The End.