199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for baby_c

Hi all, FIrst I have to say my experiences with C++ are very low. But since we're given an assignment to develop a simple game in C++ now I have to try it out. But I have the basic idea on OOP and programming. So friends where should I start. …

Member Avatar for sternone
0
270
Member Avatar for vinnitro

This is my program import java.util.*; class Triangle { public static void main(String Vinod[]) { int i,j,n; Scanner sc=new Scanner(System.in); System.out.print("Enter a height of triangle : "); n=sc.nextInt(); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { System.out.print("*"); } System.out.println(); } for(j=n;j<=1;j--) { for(i=j;i<=1;i--) { System.out.print("*"); } System.out.println(); } } } I dont know what …

Member Avatar for vinnitro
0
160
Member Avatar for ishlux

Hi all, i have installed jdk1.7 , now i want to set the class path.. because i am compiling my program its giving an error.....javac is not recognized as an internal or external commond. please help me to set the class path.......and how to able to run my program.

Member Avatar for ramguru
0
96
Member Avatar for super123

I am using the following code for receiving information from users, **is it possible to get all the information as a PDF attachment ?** protected void Button1_Click(object sender, EventArgs e) { SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); message.To.Add("admin@domain.com"); if (CheckBox1.Checked == true) { emailadd.Text = employeenameDropDown.SelectedValue; …

Member Avatar for super123
0
297
Member Avatar for GeekTool

>> I googled the dinference between bitwise and logical operators, but i could not understand exactl what it is. Can you simply explain ?

Member Avatar for NormR1
0
561
Member Avatar for CPT

Heloo,this wil be my first post here, the reason for that is I can't figure this one out by myself public class Client extends Thread{ Socket socket = null; ServerResponse sr = null; private class serverResponse extends Thread{ InputStream in = null; public serverResponse(Socket socket) throws IOException{ if (socket == …

Member Avatar for NormR1
0
481
Member Avatar for coutnoob

Hi again and thanks in advance !Any help would be very appreciated cause i'm having a test tomorrow and i need some help! So i wanna have a class called Bag and a subclass Set.In bag we have 2 constructors, an insert function , getsize function , getsum (which adds …

Member Avatar for VernonDozier
0
224
Member Avatar for GeekTool

import java.util.Scanner; public class SwitchStatement { private String courseName; private int total; private int gradeCounter; private int aCount; private int bCount; private int cCount; private int dCount; private int fCount; public SwitchStatement(String name){ courseName = name; } public String getCourseName(){ return courseName; } public void displayMessage(){ System.out.println("Welcome to the grade …

Member Avatar for wen_cai
0
233
Member Avatar for XxDireShadowxX

Hi I am creating my first webpage using DreamWeaver CS5.5. I am trying to work on a contact me page and I want the submit button to automatically send me an email with the information provided in the form. I have found a lot of stuff on the internet on …

Member Avatar for XxDireShadowxX
0
268
Member Avatar for mcjiwe

main.c #include <stdio.h> #include <stdlib.h> #define MAX_USERS 100 typedef struct Utilizadores{ char *login; char *pwd; } USERS; void ReadUsers(USERS user[]); int u = 0; int main(){ USERS user[MAX_USERS]; ReadUsers(user); return 0; } void ReadUsers(USERS user[]){ FILE *fp; fp = fopen("/home/Jiwe/Desktop/users.txt", "r"); while(fscanf(fp, "%s[^=]=%s\n", user[u].login, user[u].pwd) != EOF){ u++; } fclose(fp); …

Member Avatar for mcjiwe
0
8K
Member Avatar for mitmehta22

i am using MySQL database. i have one field PurchaseDate. i want following result e.g. : PurchaseDate between May-2010 and Aug-2011 pls help me to solve this problem. its urgent. thanks in advance....

Member Avatar for mitmehta22
0
114
Member Avatar for MrXortex

G'day. I get this error when I go to some other page, or redirect to index.php Warning: Cannot modify header information - headers already sent by (output started at /hermes/web05/blubbz/register.php on line 33 CODE on register.php: <?php if (isset($_POST['register_email'], $_POST['register_name'], $_POST['register_password'])) { $register_email = $_POST['register_email']; $register_name = $_POST['register_name']; $register_password = …

Member Avatar for FaisalSarfraz
0
210
Member Avatar for VengefulToast

Hi forum, I was not really sure where to post this topic, but I need help in deciding what to do with my education. As of right now, I am finishing my associate's degree in computer science, and I decided that I wanted to transfer this degree into a game …

Member Avatar for Rashakil Fol
0
267
Member Avatar for reco21

Hello, I'm trying to get results from a mysql database based on values in an array. My tables look like this 1. id | articles | thumbs | etc 2. tag_id | tag_name | article_id I'd like to get related articles based on the tags for that particular article. So …

Member Avatar for diafol
0
1K
Member Avatar for GeekTool

can anybody explain with details how to calculate the factor of a number ? i m trying to do this with while statement. how can i do this ? please...

Member Avatar for TrustyTony
0
140
Member Avatar for sidra 100

hey how to clear the screen in c++ i m using dev c++. clrscr()doesnot work

Member Avatar for adityatandon
0
214
Member Avatar for amethystglow

Hi again, all--- I'm trying to write a function that will add two matrices and output the resulting matrix. I've got two matrices already and everything, now i just need to write the function that i can use to call in my switch loop (The program must read two matrices, …

Member Avatar for adityatandon
0
643
Member Avatar for rony.united7

How will I implement colors in a console application developed using C++? What are the color codes of different colors?

Member Avatar for adityatandon
0
145
Member Avatar for haven_u

Hi, I have a matrix of size of n x m, how can the file be read without any given size, thus making it possible to be read with any given size matrix?. Here is the scenario, I have a matrix of size 3 x 2 then someone wants to …

Member Avatar for adityatandon
0
135
Member Avatar for nathaniscool99

Hello, I am trying to create a Login system, so far it writes users correctly however it doesn't seem to be reading it correctly as it always claims the username/password is incorrect even though when I check the file it is. Could someone help, thanks! class TestLogin { public: char …

Member Avatar for adityatandon
0
171
Member Avatar for nathaniscool99

Hello I am looking to read a file into a 2d array to show which spaces have been taken/ haven't taken whiey will show a # if not taken and a T if taken, so far I just have a text file I created which shows like this: T # …

Member Avatar for adityatandon
0
8K
Member Avatar for jeav12
Member Avatar for cool_zephyr

hello everyone..i'm trying to create a simple window using Win API in visual studio 2010 using the code below #include <Windows.h> LPCTSTR g_lptstrClassName="myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0; } int WINAPI …

Member Avatar for adityatandon
0
584
Member Avatar for ampak

I have a command lline script that works perfectly. cat <some_filename> | awk '$9 == 200' | awk '$10 == 10623720' | awk -F\" '{print $6}' | sort | uniq -c | sort -r I want to put this in a shell script so that we do this for multiple …

Member Avatar for KenJackson
0
233
Member Avatar for TheGame1083

Hello everyone, I have 2 issues that I've been trying to solve for days now 1. I'm trying to display an error message if a user tries to purchase more quantities of an item than what are actually available 2. I can't figure out how to decrease the actual in …

Member Avatar for TheGame1083
0
153
Member Avatar for veledrom

Hi, I am using WAMP on Win7 and my root folder is obviously `c:\wamp\www\` On same computer I use `http://localhost/project/` to run my project. The question is how do I run same project on other machine which is on same network? Also I rather use a bit human friendly naming …

Member Avatar for veledrom
0
2K
Member Avatar for DarkMonarch

i posted earlier this week about getting around codes in large projects. someone told me to install phpDocumentor and it will give the architecture of the software. i though, i should give it a shot, because im wasting my time searching instead of doing. the thing is, phpDocumentor doesnt work. …

Member Avatar for veedeoo
0
106
Member Avatar for tomtetlaw

First of all I learnt how to do this from http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/ AVIStreamGetFrameOpen is always returning NULL. I checked to see if I could open the AVI file in windows media player and that worked, so that means it can't be a codec problem, right? I'm not too sure. All the …

Member Avatar for tomtetlaw
0
257
Member Avatar for johndohmen1963

Who can help me with the following. a part of my code doesn't work and i do not know wy. <?php //from here it is working $con = mysql_connect("localhost", "bla", "bla"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("wordpress", $con); $sql1 ="CREATE TABLE IF NOT EXISTS stamboom_landen …

Member Avatar for johndohmen1963
0
1K
Member Avatar for HTMLperson5

By opaque binary i mean so that people cannot see the source code if they open the file in their text editor, so instead of seeing: print "You cant see me!" it would be something like: "0101010001010101001001010" And yes, i am trying to do this with python.

Member Avatar for TrustyTony
0
215
Member Avatar for Mojtabarahimi

Hi guys Actually i have problem to convert my C++ program to C! Because C is too old and unusable, i tried to find and read so many sources, but finally i got some errors. Anyone can help me?! Thanks Regards C++ Files: Main.cpp #include <iostream> #include <cstring> #include <cstdlib> …

Member Avatar for Ancient Dragon
0
392
Member Avatar for jonnyboy12

Hello. I am working on a windows form right now. My form is very full and i am using many textures. I have double buffered my form and made exteded classes for anything with a texture that has double buffering. Before i had double buffered everything my form was very …

Member Avatar for triumphost
0
118
Member Avatar for Transcendent

I'm using Eclipse c++ and when I run a program it says: launch failed. Binary not found. how can i fix this?

Member Avatar for nanu707`
0
371
Member Avatar for bazzer14

I want to know how to create our own file, such as: (.Docx). If we opened the file in notepad the characters contained in the that's file could not understand, so i would like to know by what method of making the it's file? Is the file created and use …

Member Avatar for bazzer14
0
139
Member Avatar for raj874

HWND hwndt; hwndt = FindWindow(NULL,"Windows Task Manager"); here FindWindow funnction not work in c language its returns NULL yes i know i can use first perameter also but i wanna use second perameter titel in this function i use dev c++ compiler and also add to project user32.a lib tell …

Member Avatar for adityatandon
0
124
Member Avatar for sumanth.boss

When i Connect to Mysql using TURBO C++,im getting error unable to open include file mysql.h mysql_version.h mysql_con.h mysql_time.h i added the include files and set path . even then im getting error . help me :(

Member Avatar for adityatandon
0
375
Member Avatar for mariaceline_21
Member Avatar for mariaceline_21
0
66
Member Avatar for shahbaz13

Hi there, I am making a spell checker program with php with words stored in mysql. I use it to check unicode languages. But I do not get good suggestions with similar_text with percentage above 82. But if I decrease this percentage, I get many useless words. How can I …

Member Avatar for shahbaz13
0
518
Member Avatar for MasterHacker110

I have this C++ network client program but it has an error. Here is the error: error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [128]' to 'LPWSTR' Here is the code: // Client program example #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define DEFAULT_PORT 2007 …

Member Avatar for mitrmkar
0
318
Member Avatar for ocw91

I was trying to reduce my jtextfield height, since it is for user to enter first name. somehow when i run the code, the box is just too big, is there anyway to change the textfield height? i tried with setPrefferedSize but somehow it showing error, mayb i put it …

Member Avatar for Majestics
0
2K
Member Avatar for tonyprotop

I am new in Perl and generally in programming. I face some real problems here. I need a Perl script that can open a text file, read a series of URLs, get the content of the pages and save it to another file. Thanks deeply for any guidance.

Member Avatar for tonyprotop
0
179
Member Avatar for mariaceline_21

error Please select an imageError: Duplicate entry '' for key 'img' ` //file properties $file = $_FILES['image']['tmp_name']; if(!isset($file)) echo "Please select an image"; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['img']); $image_size = getimagesize($_FILES['image']['tmp_name']); if($image_size==FALSE) echo "That's not an image."; else { { if(!$insert = msql_query("INSERT INTO shop (id, img, …

Member Avatar for vibhaJ
0
159
Member Avatar for hekri

Hi, I've just finished my c++ class (mechanical engineering) and as the final exam we have to create a simple program with graphical user interface and I need some help from you guys. T**he task is this**: we have to make a simple GUI that can take the diameters of …

Member Avatar for hekri
0
200
Member Avatar for satlok777

<?php session_start(); error_reporting(0); ?> <?php ob_start(); ?> <?php include("connect.php"); $u_name = $_POST['email']; $u_pass = $_POST['pwd']; if ($_POST['Submit']=='Login') { $sql = "SELECT * FROM user WHERE username = '$u_name' AND password = '$u_pass'"; $result = mysql_query($sql) or die (mysql_error()); $cmd=mysql_fetch_array($result); $num = mysql_num_rows($result); if ($num) { $_SESSION['username'] = $u_name; echo '<META …

Member Avatar for vibhaJ
0
106
Member Avatar for BryantFury

Hi ive made a code where a user makes a list and then displays it. he may also delete objects one by one. suppose i wished to clear all in one go. How would i go about doing this? thank you in advance. my code is below. all works except …

Member Avatar for BryantFury
0
123
Member Avatar for hwoarang69

for some reason iam not getting the right map. i think the problem is x += 130; y += 130; #include "DarkGDK.h" const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1} }; void DarkGDK(void) { …

0
114
Member Avatar for dwdata

I have a starting query that displays appointments and I am trying to expand to get different statistics: SELECT apt.user_id, apt.appt_id, apt.client_id, apt.time_start AS stime, FROM_UNIXTIME(apt.time_start,'%Y-%m-%d') AS ftime FROM tl_appt apt LEFT JOIN tl_rooms r on r.room_id = apt.room_id WHERE apt.appt_id IS NOT NULL AND apt.appt_status_id = '3' AND FROM_UNIXTIME(apt.time_start,'%Y-%m-%d') …

Member Avatar for adam_k
0
117
Member Avatar for blueyan

[Click Here](http://img196.imageshack.us/img196/3873/captureiv.jpg) for the snapshot of my problem. string operand; string opCode; struct MacroNameTable{ string macroName; int start; int end; int invocation; string operandCounter; }; struct MacroNameTable NAMTAB[NAMSize]; void addNAMTab(){ NAMcounter++; cout <<"check NAMcounter: ["<<NAMcounter<<"]"<<endl;//debug cout <<"check this operand: ["<<operand<<"]"<<endl;//debug cout <<"check this opCode: ["<<opCode<<"]"<<endl;//debug NAMTAB[NAMcounter].macroName=opCode; NAMTAB[NAMcounter].start=DEFcounter; NAMTAB[NAMcounter].operandCounter="AA"; } operand …

Member Avatar for blueyan
0
134
Member Avatar for HTMLperson5

How can you get an `if` statement in another `if`, for instance: $line = <STDIN>; if $line eq "\n") { print "You did not type anything } else { print "You said: $line"; } Could you put another` if `next to the place where it says: You said: blah like …

Member Avatar for HTMLperson5
0
157
Member Avatar for trektrak

I've created a web application page with login and session login basically a <?php session_start() ?> do I really need to put this code on every page of my php ? because session login only active on the first page after I do login.. Anyone.. Help me on this.. Thanks

Member Avatar for vibhaJ
0
200

The End.