199,114 Archived Topics
Remove Filter ![]() | |
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]); … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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? | |
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> … | |
Hello... Can someone please tell me how to send a DNS query through a C/C++ program ?? Regards. | |
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 … | |
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{ … | |
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 << … | |
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 … | |
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 … | |
Are they the same? If so, which one is preferred by the more advance programmer and why? Thanks, Scott | |
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 … | |
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. | |
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); … | |
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 … | |
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 … | |
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 ××××××××××Ö××××××××××ÖÖ××Ö××××××××××Ö×××Ö×ÖÖ××ÖÖÖÖÖÖÖÖÖÖÖÖÕÖÖÖÕÖÖÖÖÖÖÖÖÖÕÖÖÖÖÖÖÖÕÕÕÕÕÕÕÔÕÕÕÓÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÓÓÓÓÓÓÓÓÓÓÓÒÒÓÓÒÒÓÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÑÒÒÑÑÑÑÑÑÑ | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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- | |
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 … | |
I was wondering if anyone knew of a good text editor for python ? | |
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 … | |
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 … | |
hello guyz i wana implement ftp server using linux .. c based code is required plz help me out .. | |
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 … | |
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,, … | |
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 … | |
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 … | |
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??? | |
How can I generate a random boolean? Is there a method for this? Thanks in advance | |
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 … |
The End.