64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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.*; … | |
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 … | |
What does it mean if my opengl objects are opaque from one side and translucent from another? | |
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 | |
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 … | |
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 … | |
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\""? | |
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> … | |
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;"> 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 … | |
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... :( | |
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 … | |
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 … | |
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..... | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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"; … | |
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 … | |
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? | |
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 . … ![]() | |
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 | |
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 - … | |
Please help me how to create inputbox in visual C#? | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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! | |
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 … | |
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 … | |
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[] … | |
[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 *); … | |
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? | |
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 … | |
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 … | |
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 … | |
[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 ? | |
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] | |
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 … | |
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: … | |
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 … ![]() |
The End.