199,114 Archived Topics
Remove Filter ![]() | |
I need help. I need help on reading input file using .READ and normal streams. I also need help on sorting input file and passing data to the structure rec and output it without showing any null characters..... here's my confusing code... #include <iostream.h> #include <iomanip.h> #include <fstream.h> #include <string.h> … | |
Hello all, I haven't used c++ for years and now I need it for school. I am running a fortran 77 code and I wanted to know if it is possible to write a program in c++ (That's the only language I know) that generates random numbers with decimals and … | |
what does the printf function do? it looks something like this... printf("kdjfkldjd"); and you can put anything in the quotes, but then i don't know where it shows up. where is the text supposed to show up? can someone help me out? | |
This sql command is for PHP but this is what happen to it after php had made chenges: [CODE]UPDATE Catalog SET Table='Harrow_VH' WHERE Name='Variable Action Harrow'[/CODE] I get this error both places php and mysql client it self: MySQL said: You have an error in your SQL syntax near 'TABLE … | |
hi all im trying to add one more row to my table...... this row will have select button,text fields that would also be generated..... the Select list have to take values from variable in jsp page.......... please can anyone tell me how to do that......... i have also attached a … | |
Hello, this is my first posting to this site and i was just wondering if anyone out there could help me figure out some code for an assignment that i have to do. I've just started learning Assembler and this assignment has stumped me. I have attached a copy of … ![]() | |
Hi, I have developed the attached JAVA programs (*.java) and encountered compilation error (*.txt), it would be very much appreciated if you can help. Thanks, Victor | |
This is currently something in design phase, but I'd like to have the idea checked over. The situation is roughly as follows: I've got a display that can show some amount of structs with varying byte counts per struct. I've got a big binary file, over a gigabyte in size, … | |
Please shed some light on the procedure one must take to pull values (i.e. from database or variables with default values to a dialog. I am trying to pull values to a dialog using "strcopy(tempvariable, "Value");" but it is not working. Please help me. Nis | |
As far as programming Java and Javascript can be confusing... How do you do a java-based chat, any ideas? | |
I see Dave Sinkula understands C++ very well.How can one be assisted by Dave Sinkula | |
why does the output file look completely different than the input file... what am i doing wrong here? [CODE]#include <iostream> #include <cstdlib> #include <fstream> using namespace std; int main () { char maze[10, 10]; int x, y; ifstream file; ofstream output; file.open ("maze.txt"); for (y = 0; y < 10; … | |
Is there any place where you can find a complete list of python commands? I have googled and skimed through the tutorial and I can't find any place where I can find a complete list of python commands and examples on how to use them? If there isn't one I … | |
Hi, Has anyone had the following problem? When I run the following code (just using Notepad and my DOS prompt): public class MathFunctionsApp2 { public static void main(String[] args) { int b = -50; double x = 25.0; double y = 3.0; double z = 4.0; System.out.println("cbrt(x) = "+ Math.cbrt(x)); … | |
I need a program that will need to do the following for me in order to keep track of grades or at least how to get started using an Array: Ask the user for the # of Math homework assignments Ask the user for the total points possible for Math … | |
Here's what I'm trying to do... I want to connect to a command line application and send it instructions from inside a script. I need to do a loop as there are multiple things I want to do. I was able to accomplish this by connecting and disconnecting inside the … | |
| |
I'm confused as to why my program is turning out errors when I try to compile the code. Please help. [code] #include<conio.h> #include<stdio.h> #include<iostream.h> #include<string.h> class link_stack { struct node { int id; char name[10]; node *next; }; node *top,*x,*ptr; public: link_stack() { top=x=ptr=NULL; } void push() { x=new node; … | |
Hi, I need to create a stack with a key and for each key one or more instances of a data structure associated. A multi map seems to be best suited for this. However, I don't know how I could extract an element with the maximum key value whithout knowing … | |
ok, new to regular expressions so can someone please explain something to me. In trying to create an expression to check if an entry is between 1 and 15, I first came up with: [1-9]|1[0-5] this didn't work however 1[0-5]?|[2-9] did work. I understand why the second one works, but … | |
I'm seeking for java2 certification. I downloaded ucertify product. Question are on right quality. Approx. 500 questions with study notes is quite enough for prepration. Challenging practice questions have been included to closely model the format, tone, topics, and difficulty of the real exam. Now they are giving 50% discount … | |
hi, how can i do it: int array[20]={3,431,4,123,4,52,52}; using vectors?? | |
I have a C++ program (Console Application), I want to be able to access it from the Web, My problem: I don't want the program to load every time a user connects to the page (it takes toooo much time), the program should load once and forever on the server … | |
Hello, all! I'm working with a project to search a Microsoft Access database, show the results in a datagrid, create text boxes to edit the entries found, and then update them. So far, the search works great, and I have a typical datagrid with an "edit" button on the end, … | |
Hey guys, I was just wondering if there is a way in C++ to stop a program from crashing if the user enters a char instead of an int by mistake? Thanks in advance. | |
Hi, By the way, I used JAVA to run this simulator.However, my question is, I have to deliver this part of the assignment by 7th of August, but I am not sure if whatever I tried to explain on the [B]Explanation for the Summary Result File for TWO processes in … | |
I've been thinking for awhile now that I should code a nice news system, and I have the structure all figured out, but what stumped me was: How do you display the articles with the latest first? I would set up a MySQL table with columns Title, Date&Time, Body, ID, … | |
Im not sure what is going here. I stared and stared, but nothing. I would appreciate any help in advance. Im working on lukemeaux.com. If you click on sports, or one of the other links, wait for the page to load, then mouse over wild thigns...you will see the error … | |
Hey all, Heres the code of an ASP I'm working on... ------------------------------------begin ASP------------------------------------- <%@ Language=VBScript%> <% artist=Request("artist") album=Request("album") Set con1 = server.CreateObject ("ADODB.Connection") Set rs1 = server.CreateObject ("ADODB.Recordset") con1.Provider="Microsoft.Jet.OLEDB.4.0" con1.Open (server.MapPath ("\databasecore\mediaguide.mdb")) sql = "UPDATE artistinfo SET UserAlbumReview='"&TRIM(Request.Form("AlbumReview"))&"' where artist ='"&artist&"' and album = '"&album&"'" rs1.Open sql,con1 %> <html> <head> … | |
Is there a way to validate an email by checking it's existence? | |
Ok here we go: I have to send data over TCP to a listening port, the other end has a server running expecting a login. I need to send 3 bytes 6b "k" , 16 , and 31. the equilvaltes to ku. When I send the data it is sending … | |
Hi, I'm having a problem creating a java program to generate odd numbers and then perform calculations on them. Some ideas and help are much appreciated. thx in advance | |
I am using BloodshedDev-CPP GNU. Assembly codes are written in this format : int Variable=45; /*a random value*/ __asm(mov %ax,_Degisken); The crap compiler uses 'AT&T Assembly Syntax'. The problem is I don't know that AT&T stuff and I want to call some interrupts in my program. In the [I]normal[/I] assambly … | |
Hello everyone, I was wondering how to get a program to run in the background without having it up and have an icon in the tray saying that it is running. I am guessing that it might be included with either system.windows.forms or System.Design or in Microsoft.Win32? if anyone can … | |
I've figured out im using the wrong loop for the task at hand but im still wondering why it repeats this exactly 3 times: for(ch = (char) System.in.read(); ch != ('k' | 'K') ; ch = (char) System.in.read()) { System.out.println("sorry, you're incorrect!\n Guess again: "); } It prints this in … | |
Hello people, I first wount to say that this site is GOOD for all the people who don't know mutch about VB. I'm very happy with you all :o I've search with google to a help me with my problem and found this site/forum. :D So here comes my problem … | |
Hello everyone, I want to write an own CVS client in Java. And I am looking for the following materials, - CVS protocol specification - Education materials about CVS protocol - A simple open source CVS client in Java Could anyone help? thanks in advance, George | |
Hi all, I'm facing this problem in my running app. It is a real-time app and writes to the database whenever data is received. However, there is rare occasions that causes the ExecuteSQL to fail. However, the failure did not throw any exception, so my CDBException did not detect anything(it … | |
Hello everyone, I am new to mySQL. I want to know how to use mySQL with c#, and if there is any difference between MS SQL and mySQL. Also any links to tutorials would be great. Thanks | |
Greetings To all! To whomever, an advanced thank you if you help me. I am a Java programmer initially, but I have begun learning C++ and am doing something with a Double Linked List (Error occurs whether it's double or single, I teste it). Filling the contents of the list … | |
I have learned php this summer so i am pritty new and need some help. what i am trying to do is that i have an item with an item# and a lot of other info from my db and would like to transfer that info in the array in … | |
How would i display the table names in my db using php as i only want to display the name of the table and dont want to select any info in the tables. :cheesy: | |
Hi everyone, i am havinh problems linking OBJ files that uses the following: #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32") I am working on MEX matlab files. When i link them, i get the following errors: >> mex timestwomex.c C:\MATLAB6p5\sys\lcc\lib\ws2_32.lib timestwomex.obj .text: undefined reference to '_gethostbyname@4' timestwomex.obj .text: undefined reference … | |
I got this error: "PHP Parse error: parse error, unexpected T_STRING on line 137" from the following code and I am not sure what is wrong iwth it. Any suggestions? <html><head><title>RealProphet.com </title> </head> <body> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <td width="100%"><!--webbot bot="Include" U-Include="../include_head.htm" TAG="BODY" --> </td> </tr> </table> <table … | |
Hi, I'm trying to write a program that accepts a string (a line, sentence, or phrase) and then the program has to display the contents of that string backward. for example, if I entered "starting out" the program has to convert it to "tuo gnitrats". This is my code. But … | |
hello, i am creating a web form and i would like to use some kind of counter to create a 'form number' or something similar. what i did so far was using php to read a txt file on the server, insert that value into a hidden field. (i made … | |
Hello, My first post, a little nervous I am. I am starting with learning Java on the server side in servlets. I use Flash on the client side. What I would like to do is the following: [INDENT]client side: send xml file / receive xml file server: accept xml file … | |
hi guys, iam just started with VB.NET and i really like to be a programmer please advice. it will be fine to learn about connecting with database i already had a good experience with VFoxPro(but not the sql connection). and i like to to make reports inside a web page … | |
Im reading about logical operators (yes noob here) and Im sort of confused as to what some of them actually mean. Example: if b1 is true and b2 is false !(b1 & b2) is true b1 | b2 is true b1 & b2 is false b1 ^ b2 is true … | |
plz send me the name of method to convert the string to individual char and Tell me wheather Character.parseChar() exit or not in JAVA. with thanks Ghanshayam Sharma (MCA Student) |
The End.