199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for truxpinoyxrl17

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> …

Member Avatar for truxpinoyxrl17
0
521
Member Avatar for altheastronut

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 …

Member Avatar for Rashakil Fol
0
228
Member Avatar for bballmitch

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?

Member Avatar for Narue
0
313
Member Avatar for ashneet

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 …

Member Avatar for ashneet
0
153
Member Avatar for ankur_md

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 …

Member Avatar for alpha_foobar
0
471
Member Avatar for Goldfish691

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 …

Member Avatar for mikemark
0
217
Member Avatar for victoryn

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

Member Avatar for freesoft_2000
0
357
Member Avatar for Drowzee

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, …

Member Avatar for Drowzee
0
483
Member Avatar for webempress

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

Member Avatar for webempress
0
121
Member Avatar for md16185

As far as programming Java and Javascript can be confusing... How do you do a java-based chat, any ideas?

Member Avatar for freesoft_2000
0
491
Member Avatar for mozira

I see Dave Sinkula understands C++ very well.How can one be assisted by Dave Sinkula

Member Avatar for Dave Sinkula
0
363
Member Avatar for jhdobbins

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; …

Member Avatar for jhdobbins
0
167
Member Avatar for fanfan1313

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 …

Member Avatar for fanfan1313
0
195
Member Avatar for rpratt

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)); …

Member Avatar for server_crash
0
337
Member Avatar for zoltzer

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 …

Member Avatar for sam1
0
176
Member Avatar for winbatch

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 …

Member Avatar for winbatch
0
135
Member Avatar for fba
Member Avatar for Narue
0
116
Member Avatar for yaan

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; …

Member Avatar for Narue
0
183
Member Avatar for ferrant

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 …

Member Avatar for Narue
0
328
Member Avatar for campkev

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 …

Member Avatar for campkev
0
232
Member Avatar for Kennedy_f

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 …

Member Avatar for jwenting
0
179
Member Avatar for beetle

hi, how can i do it: int array[20]={3,431,4,123,4,52,52}; using vectors??

Member Avatar for Narue
0
172
Member Avatar for Hady

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 …

0
107
Member Avatar for npasma

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, …

Member Avatar for npasma
0
319
Member Avatar for Jon182

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.

Member Avatar for Jon182
0
445
Member Avatar for mu42774

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 …

Member Avatar for Sauce
0
122
Member Avatar for Sp!ke

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, …

Member Avatar for Sp!ke
0
183
Member Avatar for cnl83

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 …

Member Avatar for senexom
0
270
Member Avatar for goldeagle2005

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> …

Member Avatar for senexom
0
175
Member Avatar for server_crash
Member Avatar for raddad555

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 …

Member Avatar for raddad555
0
184
Member Avatar for barrabomber

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

Member Avatar for server_crash
0
99
Member Avatar for AhmedHan

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 …

Member Avatar for fluidDelusions
0
1K
Member Avatar for Dark_Omen

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 …

Member Avatar for Kapatsos
0
604
Member Avatar for asatrujesus

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 …

Member Avatar for cheenu78
0
225
Member Avatar for Burndailer

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 …

Member Avatar for Burndailer
0
262
Member Avatar for George2

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

Member Avatar for George2
0
362
Member Avatar for chiwawa10

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 …

Member Avatar for chiwawa10
0
277
Member Avatar for Dark_Omen

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

Member Avatar for Dark_Omen
0
262
Member Avatar for kharri5

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 …

Member Avatar for Drowzee
0
780
Member Avatar for ashneet

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 …

Member Avatar for ashneet
0
191
Member Avatar for ashneet

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:

Member Avatar for ashneet
0
165
Member Avatar for ramow

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 …

Member Avatar for ramow
0
134
Member Avatar for Edward655

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 …

Member Avatar for Edward655
0
245
Member Avatar for karen_CSE

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 …

Member Avatar for karen_CSE
0
1K
Member Avatar for onemanarmy

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 …

Member Avatar for Troy
0
215
Member Avatar for Pete_R

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 …

Member Avatar for Pete_R
0
235
Member Avatar for noordhia

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 …

Member Avatar for Letscode
0
140
Member Avatar for asatrujesus

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 …

Member Avatar for freesoft_2000
0
421
Member Avatar for gssharma16

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)

Member Avatar for jwenting
0
126

The End.