64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Curtisq

So my problem is writing a program that asks the user to input a number wich is stored with scanf then print the binary representation of that number in 32 bits, as in if the number is 1 i would need 31 0's and a 1. [CODE]#include <stdio.h> void dec_bin(long …

0
108
Member Avatar for schoolboy2010

Hi, could someone tell me what's wrong. The code works for the data set, answers but doesn't for data set answers2... the program crashes after displaying the data set2 and never gets data set 3, I will appreciate any help. Thanks. [CODE] import java.io.*; import java.util.Scanner; import java.util.*; import java.lang.*; …

Member Avatar for schoolboy2010
0
207
Member Avatar for atalkingfish

I have a page full of user-submitted updates and stuff. Basically the basic stuff. I am taking it out of a database. I have this so far: [CODE]$getnews = mysql_query("SELECT * FROM news ORDER BY $order LIMIT 50"); [/CODE] and $order is determined by a drop down menu on the …

Member Avatar for atalkingfish
0
1K
Member Avatar for Labdabeta

What does it mean if my opengl objects are opaque from one side and translucent from another?

Member Avatar for Labdabeta
0
88
Member Avatar for mohamed moamen

how i can convert my java code I do to a setup program work in other computer with example and please don't tell me use java launcher

Member Avatar for mohamed moamen
0
130
Member Avatar for atalkingfish

I have a website where you can log in with a session or with cookies (remember me) and I can't seem to get the logout to work. I have a code that goes on top of most pages (all pages that require one to be logged in) and it goes …

Member Avatar for atalkingfish
0
82
Member Avatar for Zssffssz

Ok the thing I searched into google brought up a ton of nonsense. I want to use variables from a function in main and (more important) variables from main in a function. I am already using file I/o as a loophole but I want an easier way. PS How do …

Member Avatar for gerard4143
0
170
Member Avatar for Labdabeta

here is the question, what does str(X) become [CODE]#define str_(X) #X #define str(X) str_(X)[/CODE] when X is a string? is it ""string"" or "\"string\""?

Member Avatar for Labdabeta
0
113
Member Avatar for Sunshine2011

Hello, I wrote a little program (Create a vector and give it back via pointer.) for a better understanding of pointers. First it works but when I would like get access to the vector alloacated with "new", problems occur. For example saving a element is not possible. [ICODE] #include <iostream> …

Member Avatar for Fbody
0
237
Member Avatar for davy_yg

banner.php [CODE] <link href="../style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> </style> <div id="banner"> <div class="headerStyle"> <div style="padding:4px 0px;">&nbsp;Banner</div> </div> <?php include('koneksi.php'); $result = mysql_query("SELECT gambar FROM banner"); while ($data = mysql_fetch_array($result)){ echo "<img src="$data['gambar']">".'<br>'; } ?> </div> [/CODE] Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\htdocs\php_template2\includes\banner.php on …

Member Avatar for cereal
0
4K
Member Avatar for sunn shine

can any 1 tel me the site , from where i can install this? recently some thing went wrong with my computer and i lost my evry thng... :(

Member Avatar for Narue
0
202
Member Avatar for mohamed moamen

I did a program that connecting to database then show data and user can ( add or remove or update ) data but my problem that program take a little time to be ready how i can know that time and make notification for user to use program now or …

Member Avatar for mohamed moamen
0
444
Member Avatar for cgull

Hello, I know this question was answered many times, and I looked at the answers but still can't find a solution. I have an index file that includes a contact form. The contact form action is itself, and if the form succeeds it should redirect to index.php?content=thankyou Althought the form …

Member Avatar for cgull
0
197
Member Avatar for dinilkarun

I am encountering the error attached "UnicodeEncodeError: ASCII codec can't encode character u'\0152' in position 124: ordinal not in range(128)" Please help me solve this.....

Member Avatar for JoshuaBurleson
0
167
Member Avatar for ntrncx

I do an exercise and i wrote this code to test templates [CODE]#include <iostream> #include "Date.h" #include "Time.h" using namespace std; template <typename T> bool compare(T first,T second){ if (first==second) return true; else return false; } template <class T,class X> bool compare(T first,X second){ if (first==second) return true; else return …

Member Avatar for ntrncx
0
223
Member Avatar for jbvincennes

Hi, I find classes sources on the web that import import org.dyno.visual.swing.layouts.Constraints; import org.dyno.visual.swing.layouts.GroupLayout; import org.dyno.visual.swing.layouts.Leading; But I cannot find this package with google searches. Where is it? Many thanks for your help.

Member Avatar for jbvincennes
0
527
Member Avatar for andimiami

Hello! I am a student (obviously, haha), and I am confused about how I need to do something in my driver class. I have a text file that I am reading in, then I decided to use a string tokenizer to parse the data. Now, I need to store the …

Member Avatar for andimiami
0
198
Member Avatar for lAmoebal

I need to create a basic program for work that utilizes the snmpget command. It needs to be usable in both windows and solaris as our clients use both. What's the best snmp library to use? I tried to download a number of them but I can't even get the …

Member Avatar for vijayan121
0
4K
Member Avatar for pepyrs

Hello guyz, First of all, sorry for starting new thread with similar topic but I read each and still can't figure out how to do it. I'm having a database, using GridView I retrieve the data into my WEB application. Then I set the rows to editable (not sure if …

Member Avatar for jbisono
0
126
Member Avatar for guidely

Hi, I have problem passing array from main to another function Here is my code [CODE] #include <stdio.h> #include <string.h> # define Line_size 200 int processing(int lineCount, char harbour[Line_size][Line_size]) { int i; for(i=0;i<lineCount;i++) { printf("%s", harbour[i]); } } int main ( void ) { static const char filename[] = "data.txt"; …

Member Avatar for guidely
0
289
Member Avatar for akemi3

Hello, I'm currently taking AP Computer Science with no prior experience with programming and I am facing a bit of a problem with the last problem on my programming assignment. You see, what I have to do is write a program that displays a name four times either horizontally or …

Member Avatar for akemi3
0
99
Member Avatar for knight fyre

I'm trying to learn Java Servlets on my own but I'm having some very basic problems. The code [CODE]"import javax.servlet.ServletException;"[/CODE] produces a compiler error, "the import javax.servlet cannot be resolved". I'm using version 3.2.2. Why am I having this problem?

Member Avatar for varun.x.anand
0
625
Member Avatar for virendra_sharma

Hi frnz , i need a code for 2^n and suppose user enter n = 4 , so the output will be 16 . Now whatever output we will get i need sum of numbers in that output e.g here we have 16 i.e 1 + 6 = 7 . …

Member Avatar for Mouche
0
136
Member Avatar for romz

Good Day to all, Can anyone give me an idea on how I can select an item in ListView using Right Click mouse button? Any insight would be great. Thanks

Member Avatar for romz
0
179
Member Avatar for vedro-compota

Hi there) Guys , as I understand - this is c++ code = [CODE]int WINAPI WinMain(HINSTANCE hInst,HINSTANCE,LPSTR,int ss) { /* создаем и регистрируем класс главного окна */ WNDCLASS wc; wc.style=0; wc.lpfnWndProc=MainWinProc; wc.cbClsExtra=wc.cbWndExtra=0; wc.hInstance=hInst; wc.hIcon=NULL; wc.hCursor=NULL; wc.hbrBackground=(HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName=NULL; wc.lpszClassName="Example 4 MainWnd Class"; if (!RegisterClass(&wc)) return FALSE;[/CODE] but tell me please - …

Member Avatar for vedro-compota
0
338
Member Avatar for cyberdaemon
Member Avatar for Labdabeta

I am extremely confused about libraries and have been having trouble understanding them with google. Basically I want to create a library so that I can use a bunch of functions from another file without all of the libraries' contents being seen. EG: library code: [CODE]class test { private: int …

Member Avatar for Labdabeta
0
217
Member Avatar for James19142

i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …

Member Avatar for James19142
0
881
Member Avatar for thenewbiecoder

[url]https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3GcG6SeWKK_YzE1NDNmY2MtNTY0Ny00NTVhLTg1M2EtNDc5YzRmOGEzMjA0&hl=en_US[/url] I am completely stuck on this assignment I'm not sure what I should be getting. Can anybody take a look at my code and please help me. I need to complete this assignment asap. thanks Direction: Design, implement, and test a class that represents a phone number. The number …

Member Avatar for vijayan121
0
220
Member Avatar for altXerror

ok. so i'm having trouble with the Windows API. i'm just learing how to use it, so i don't know much about it. anyways, i just wanted to create a window and have it displayed then catch the exit message and close, but VC Compiler is throwing errors. 1>c:\users\furrix\documents\visual studio …

Member Avatar for altXerror
0
342
Member Avatar for mrbungle

I have a listview that pulls data from a MySQL and I can now [URL="http://www.daniweb.com/software-development/vbnet/threads/386126"]finally sort queries by date range [/URL] (thanks Unhnd Exception!!). Also in that query, I have it sorted by ID number. This brings me to another question. The ReportViewer pulls up a really nice report for …

Member Avatar for mrbungle
0
473
Member Avatar for adot76

I am having a problem and hopefully you guys can help me out.. I need to count the frequency of a character in a string(option 5 in the program. I can do this part however i cannot get my program to count anything that is in uppercase. It only does …

Member Avatar for Narue
0
212
Member Avatar for toms ace

Hello everyone, First of all I would like to introduce myself, I'm tom and I spend hours developing websites. Right, down to the serious stuff... I have made a nice little AJAX based commenting system, it shows the 5 latest posts, so, when a user posts a comment the list …

Member Avatar for Airshow
0
240
Member Avatar for Blink383

I had to reconstruct my program from the last time I had posted for help. My instructor enlightened me that I needed to follow her example to the tea, even though I had the same output that was required, I did not have all concepts required meet. So, after spending …

Member Avatar for Taywin
0
231
Member Avatar for julylee06

Ok, so I need some guidance. Am trying to implement a linked list in java. I can't get it. I have been on here - dreaminncode, wikipedia, and some other colleges sites - I still don't/can't get it. I did look at the previous threads on this but they didn't …

Member Avatar for julylee06
0
227
Member Avatar for sibymary

hi,i want to insert date into mysql table..but the date must not be current date.for example if i am giving 12-3-2003.then ,this date should be insert into the database...... thanks advance

Member Avatar for pritaeas
0
76
Member Avatar for daianahoney

Hello. I am wondering how to split a string lets say char *a="raining apples training away" using a delimiter like "g a" and the result will be: rainin pples trainin way I tried using strstr but I got stuck. Any hints will be greatly appreciated. Thank you in advance!

Member Avatar for daianahoney
0
3K
Member Avatar for JOSheaIV

Okay so alittle while ago I decided I wanted to write a program that would read in data from a website (the HTML data) and then use it from there (long story short I was to read in a list of urls, then access each of those and gather data …

Member Avatar for JOSheaIV
0
229
Member Avatar for Slyvr

I'm completely new to JSP but not Java [CODE]<div> <%@ page import="java.util.*" %> <%= Date date = new Date(); out.println(date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()); %> </div>[/CODE] All I need is [CODE]Hour:Minute:Second[/CODE]. (Edit: stupid emoticons) I'm getting this error on Date [CODE]Multiple annotations found at this line: - Syntax error, insert ")" to complete MethodInvocation …

Member Avatar for Slyvr
0
231
Member Avatar for sirlink99

I am making hearts, and I cannot seem to add all the cards to the deck. here is my code [CODE] import java.lang.reflect.Array; import java.util.Vector; public class Hearts { String cards[][] = {{"Spade ", "Heart ", "Club ", "Diamond "}, {"A","2","3","4","5","6","7","8","9","10","J","Q","K"}}; Vector <String> deck = new Vector<String> (); String player1[] …

Member Avatar for sirlink99
0
123
Member Avatar for Süspeñce

[CODE]//I make program of infix to post fix xpression plz tell me waht wrong with my code //some it true result for arthematic opertaors b,w two oprend but with more then it does //not provide valid output plxxxxxxxxxxxx help me #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<string.h> int presidence( ); void infixToPostfix(char *); …

Member Avatar for Süspeñce
0
386
Member Avatar for Rox Vi

Hi, I am using ASP.NET to develop a system. Would you mind to share with me whether the code can be encrypted or convert to DLL to prevent coding exposure to other?

Member Avatar for NetJunkie
0
310
Member Avatar for Forte1292

Okay so we are doing a BankAccount program in my CS class. One method is supposed to return the information like this - Account Name: <name here> Account Number: <number here> Account Balance: <balance here> The instructions say to return it on multiple lines using the \n command. How do …

Member Avatar for Forte1292
0
128
Member Avatar for zack_falcon

See, I have a board game with a 2D array acting as the board. There are number in the 2D array, and should a number be placed (by the player) in a spot in the 2D array where a number already resides, the following can happen: > If the residing …

Member Avatar for Ketsuekiame
0
163
Member Avatar for SyncMaster170

Does anyone know how to create a custom report for the data that is in a datagridview? My app is nearly complete but would like to spice it up a bit and be able to create a report button,that, once clicked, creates a simple report. I only need one specific …

Member Avatar for Mitja Bonca
0
104
Member Avatar for mohamed moamen

[CODE] float i = 55 ; float y = 23 ; float u = i / y ; System.out.println(u); [/CODE] i want to print u Round to five decimal places how i can do this approximation ?

Member Avatar for mohamed moamen
0
123
Member Avatar for techyworld

Can someone dry run and explain me this code? having problem to understand recursion program. [CODE] public class Multiplication { public static void main(String[] args) { System.out.println("Answer:"+Mult(2,3)); } public static int Mult(int x,int y) { if (y==1) return x; else return x + Mult(x,y-1); } }[/CODE]

Member Avatar for techyworld
0
88
Member Avatar for johnt68

Hello:) Previously I have made a temperature convertor web app with code behind the button click. I have now been asked to do one using methods/functions and am getting stuck on vaiables to pass and how I do it. Could someone explain variable naming and passing to me in a …

Member Avatar for arunkumars
0
156
Member Avatar for JoshuaBurleson

I'm trying to utilize partial in order to bind an image to it's associated name in a list "you'll see what I mean" but I'm getting a TypeError thrown on it, this is my first time trying to work with partials so I'm just not quite sure what's going on: …

Member Avatar for JoshuaBurleson
0
192
Member Avatar for NoviceCoder37

Hello, Savior(s)! I have been given a task to do the following: [I]"Assume that you have a database with a table named "trainer" with fields (trainerID, userName, fullName, email): - create this DB and table then insert some random data manually - create sql query to check if there any …

Member Avatar for diafol
0
101

The End.