199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stage

Hellow I'm just started whit C. I'm usig gcc and get this error: [CODE]test.c: In function 'main': test.c:8: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast ..... [/CODE] This is my code: [CODE]#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ int arg = atoi(argv[argc-1]); …

Member Avatar for stage
0
10K
Member Avatar for Phreak

Hi All, Before i start asking for advice on this just a quick mention to comatose to say thank you for all your previous help. Cheers.. Also just to say i believe my problem i pm'd you about has been resolved.. (i need to be a little more carful, i …

Member Avatar for Comatose
0
585
Member Avatar for student113

hay i need to build a simple program in C# or C++ about robot that need to find the short and optimal way from one point to other on ground that have just 3 obstacle that look like rectangle or 2 rectangles connected . how can i insert in AI …

Member Avatar for Dani
0
168
Member Avatar for maherddd

this is an example of what is happening consider the program: #include<iostream.h> void main(void) { double x=2.3767553235; cout<<x<<endl; } when i compile it the output is only giving 2.37676 Why? I dont want only 5 decimal places,plz someone tell me why is this happening. i want it to be say …

Member Avatar for Dogtree
0
463
Member Avatar for amt_muk

Hi All, I am facing a problem with new line character (\n). When I am initializing a string variable with a string having a new line character, e.g., [code] char str[20] = “Programming is \nfun

Member Avatar for Dave Sinkula
0
101
Member Avatar for floyd

Hi everyone, i am a student of IT and i am trying to read a text file and load it into a records of nested structs. I understand the logic how to do it, but i had a few problems. the txt. file contains : [code]John Smith 125 2004 Daily …

Member Avatar for Dave Sinkula
0
123
Member Avatar for Greenthumb

Hi everyone, i was hoping i could find some help here. I am trying to get settings i have written into a textfile to be put in an array. Here is what is in the txt file: 8 44100 1 2 1 I read the textfile with: pStream = new …

Member Avatar for Greenthumb
0
125
Member Avatar for anthony05

I have very little experience that’s why I need some help to get started I have been given a task to write a shell script in Linux and I don’t know from where to begin. Can anyone help me out with this please. 1. Move files from Windows 98 machine …

Member Avatar for Comatose
0
68
Member Avatar for jasworld
Member Avatar for Comatose
0
113
Member Avatar for Surfline

Hey I'm trying to write a program to make a simple Tic-Tac-Toe Program. I just started coding it, so this is my rough draft version, i haven't worked on lots of checks i know i need to do later. However I have a big problem I cant seem to figure …

Member Avatar for server_crash
0
240
Member Avatar for nike123

I have copied this program from this site, and simply copied as a new C++ file but when run I got a number of error. so I included Myheader file which amongs other includes, the iostream.h, and stlib.h, that is why they have been commented out below. Any way doing …

Member Avatar for nike123
0
209
Member Avatar for classifieds100

Hi, Can someone please help? I want to be able when I receive an email from my site's form in the same time to add the visitor in my autoresponder software. I think I must have one more form (script) to get the data from my php form and send …

Member Avatar for classifieds100
0
271
Member Avatar for vismund

I am absolutely 100% new to php programming, so go easy on me. I have looked at php tutorials on how to create a simple form on a html page and then using a php script, have the contents of the form emailed to me, then it redirect to a …

Member Avatar for zippee
0
155
Member Avatar for dasd

Hi All! I came here looking for some good direction and advice. I am a Corporate Trainer/ Systems Engineer who has now been put into the role of webmaster. I really don't care for HTML and some of it's drawbacks, hence my interest in PHP. I don't know squat about …

Member Avatar for zippee
0
181
Member Avatar for jndale

I need a better JSP Discussion Board. The site that I have came from a pre-built software. I had to do a lot of extra coding to change things up but I am having a hard time with the Discussion Board. Everything is in .html and .jsp pages. The Discussion …

Member Avatar for jwenting
0
114
Member Avatar for cetinertas

Hi, I seperated the layout with struts tiles. Now my question is how can I add scrollable feature to the left panel. Although it is inside the table as: <td valign="top" height="100%" width="100%"> <table cellpadding="0" cellspacing="0" height="100%" class="st08"> <tr> <td height="100%" valign="top" style="border-right: 3px solid ;" > <tiles:insert attribute="left.panel"/> </td> …

Member Avatar for jwenting
0
137
Member Avatar for higherGround574

I want to start studying for the scjp exam but I'm not too sure where to start... Does anyone have some good book or link suggestions?

Member Avatar for jwenting
0
103
Member Avatar for rkarimi

Hello, I need to allocate memory dynamically for arrays in FUNCTIONs (Here for R), but I can not use that memory in my main function Thank you so much [code]typedef float MYFLOAT; // or Called Standalone #define MYPRINT printf #define MYMAIN main #include <string> #include <cstdio> #include <cctype> #include <stdio.h> …

Member Avatar for amt_muk
0
128
Member Avatar for numerouno543

Hello... Can someone please tell me how to send a DNS query through a C/C++ program ?? Regards.

Member Avatar for numerouno543
0
164
Member Avatar for aiden

Hey all, I'm getting ready to (possibly) pitch a project here in town for a local bookseller. She wants to develop an inventorying system for her site backend that lets her add inventory records based on an ISBN number only. Obviously I'm going to need some sort of hefty database …

Member Avatar for aiden
0
158
Member Avatar for 4BoredomDotCom

This has an error way down at the $result=mysql_query($query) line. Anyone knows whats up? Or could it be my login info? Is localhost bad? [PHP] <?php /* grabs the POST variables and puts them into variables that we can use */ $email=$_POST['email']; $city=$_POST['city']; $state=$_POST['state']; //---------VALIDATION--------> if($email){//----> CHECK input } else{ …

Member Avatar for PoA
0
174
Member Avatar for somer2412

Can someone please help me on how to do the conversion of char to int using either a c-style cast or function-style cast. I have include my code. [code]#include <iostream> using namespace std; int main() { char state; cout << "Please select one of the following state abbreviations:\n"; cout << …

Member Avatar for Dave Sinkula
0
200
Member Avatar for luisator

THIS IS MY CODE, at the end is the nullpointer error i get....hope you can help me.... public class CuartaApp { // These fields are read in from the application.properties file. This file // must be populated with a valid IP address for Avaya Communication // Manager, as well as …

Member Avatar for archern
0
150
Member Avatar for winbatch

I may not be asking this question right... Basically, I have a wrapper around an stl map. I would like to use either a map or a hash_map based on whether the user wants the items sorted or not. To achieve this, I wanted to have a pointer to the …

Member Avatar for Dogtree
0
234
Member Avatar for cscotty

Are they the same? If so, which one is preferred by the more advance programmer and why? Thanks, Scott

Member Avatar for Dogtree
0
105
Member Avatar for missdiva
Member Avatar for barnamos
0
111
Member Avatar for nasaiya

i'm trying to use getline to read from a file into a std::string and when i give it the normal 2 parameters (my ifstream and the string) the compiler says it wants 3 arguments , but when i give it 3 it says it wants 2 arguments. this makes absolutly …

Member Avatar for nasaiya
0
634
Member Avatar for server_crash

Does anyone have a few good sites that give you some practice java questions? I'm not tallking about java certification questions, just regular old java questions about the language. I need a lot of them, so please post as many sites as you can.

Member Avatar for server_crash
0
190
Member Avatar for Zackery

Ok hey, I have this program and i dont understand how Its not wiorking. Thx for your time. :o [CODE]#include <allegro.h> #include <stdio.h> #include <stdlib.h> #include <time.h> void main() { int x,y,bx,by,af,al,ar,ab; allegro_init(); install_keyboard(); install_timer(); set_color_depth(16); set_gfx_mode(GFX_AUTODETECT,800,600,0,0); BITMAP *buffer, *back, *a, *b, *c, *d, *e, *f, *g, *h; back=load_bitmap("back.bmp",0); a=load_bitmap("gob-front-1.bmp",0); …

Member Avatar for Dogtree
0
322
Member Avatar for laynie21

Hello, I need help. I have a login page that works fine. I did not use a web config file though. I just had the users login to my access database and that signs them in ok. My question is how do I setup an Admin side so that only …

Member Avatar for Paladine
0
217
Member Avatar for purplegerbil

I have a list box containing a list of field names. The user would select/hi-light a number of these so they can find out quantities. The file the fields are from is in csv format ie: List box contains- Title Initial Surname Address1 Address2 Media Code Ref Number If the …

Member Avatar for Comatose
0
109
Member Avatar for gimmy

hi there is someone that can say me what kind of character from the COM1 when i connect eb600&eb500 to my laptop are them? i receive this kind of character ××××××××××Ö××××××××××ÖÖ××Ö××××××××××Ö×××Ö×ÖÖ××ÖÖÖÖÖÖÖÖÖÖÖÖÕÖÖÖÕÖÖÖÖÖÖÖÖÖÕÖÖÖÖÖÖÖÕÕÕÕÕÕÕÔÕÕÕÓÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÓÓÓÓÓÓÓÓÓÓÓÒÒÓÓÒÒÓÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÑÒÒÑÑÑÑÑÑÑ

Member Avatar for gimmy
0
115
Member Avatar for w00dy

Hi All, I wrote a guitar-related program, one of the options is a guitar tuner which works fine, each note is in a separate 3second wav file. However, when I tried to write an option to play a full chord i.e. play 6 files, one after the other, only the …

Member Avatar for Comatose
0
214
Member Avatar for letmec

Hello everybody, This one for those who like graphics programming with C. Can any one of you tell me how to make stand alone graphics exe through C. i have read a paragraph on this topic but its not happenning. It will very nice of you if you code simple …

Member Avatar for Asif_NSU
0
123
Member Avatar for Marack

Any ideas on ways to improve it? I am new to C++, well programming in general. Thanks in advance. BJ [CODE]#include <cstdlib> #include <iostream> using namespace std; int c = 0; char p; int g =0; int n = 0; void D4(int A, int B); int main() { cout<<"Dice emulator …

Member Avatar for andor
0
128
Member Avatar for rgot

Hey all, I am fairly new at php and I could use your help. I was wondering if there is a way to find out where the user is from so that you could customize a page for them. IE if they are from the US I would like the …

Member Avatar for rgot
0
124
Member Avatar for classifieds100

I need to modify this script to have also an external txt file with urls instead of having only one url from the form that is created by the script. Just like the proxy.txt and agents.txt. Please help me... :confused: #!/usr/bin/perl use LWP::UserAgent; use HTTP::Request::Common; ####Proxy addresses##### $proxy="proxy.txt"; ####How many …

Member Avatar for classifieds100
0
187
Member Avatar for tucker

I have been trying to make a simple php mail script, but it won't work! Here is the source below...why wont this work? <?php mail("tucker401@mailbolt.com", "This is the message subject", "This is the message body"); echo "message has been sent."; ?> -tucker-

Member Avatar for tucker
0
149
Member Avatar for JoBe

Hello ladies and gents, Wanted to make this part of an exercise in wich I enter each time two integers into an array for wich I have to use STL container vector. Ive got this sofar, but getting an error message when I entered two numbers and the exe shuts …

Member Avatar for JoBe
0
594
Member Avatar for reezin14
Member Avatar for vegaseat
0
316
Member Avatar for markymarkb1000

Hi folks...I have a Class called Model which I am using to iterate through a string, tokenize it, and then access a method in my GUI class which is supposed to change the color of the borderLayout panel. I am getting this error. I have tried to make me Model …

Member Avatar for server_crash
0
517
Member Avatar for Ghost

Hi, I wrote this program and I was wondering if there was a way to save the picture I'm creating using the graphics class. Here's my code: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class paint extends JFrame implements ActionListener { private int pointCount = 0; private Point …

Member Avatar for server_crash
0
156
Member Avatar for mohsin

hello guyz i wana implement ftp server using linux .. c based code is required plz help me out ..

Member Avatar for mohsin
0
179
Member Avatar for DeLoreanz1

I hope yall can help me here, I may have posted in the wrong forum, but here goes: I want a forum that to sign up, you need a disc. To be able to view them on the internet, you need a screen name, and you can't get a screen …

Member Avatar for DeLoreanz1
0
349
Member Avatar for populate

Hi Guys, After devloping couple of years and months........many projects in .NET framework.....using C# , VB.NET, and ASP.NET.........My personal vote goes to C#. No doubt I love to code in this languages. And I know many of you like so... So then whether VB.NET Programmer getting downward.....I can't say so,, …

Member Avatar for server_crash
0
157
Member Avatar for freesoft_2000

Hi everyone, I am doing a custom document in which i am always getting an error at the point when i want to use the java HTMLReader class. The compiler says something about an enclosing instance and i really have no idea what the compiler means. Here is the code …

Member Avatar for server_crash
0
138
Member Avatar for amura97

Hello everyone, I recently wrote a very large program in Borland C++ (version 4) that implements a lot of linked lists. For many reasons I am now obliged to migrate to Dev C++, but when I run my software I get a "Access violation (segmentation fault)" error. This happens whenever …

Member Avatar for typek
0
155
Member Avatar for ultimate_fusion

gl\glaux.h: No such file or directory. i get the error above when trying to compile any code with #include <gl\glaux.h> in it???

Member Avatar for typek
0
286
Member Avatar for vex

How can I generate a random boolean? Is there a method for this? Thanks in advance

Member Avatar for vex
0
126
Member Avatar for evil_dude_01

Hi all, I'm completly useless at C++ and was wondering if anyone can tell me how to tell a program that when I have pressed Enter, if the string is empty do nothing. Its for updating details. I'm using an Input header file that my lecturer wrote. This works fine …

Member Avatar for evil_dude_01
0
189

The End.