199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for adobea

i need help with the code below. it doesn't give out the right output. the output is supposed to appear in a symbol table form #include<stdio.h> #include<stdlib.h> #include<string.h> #include<conio.h> struct instruction { char iden[10]; char name[10]; }in; void main() { FILE *fin,*fesym; int v1,v2,val,*cslth,val1,val2,c,d; char *id1,*id2,name2[10],v[10]; int csaddr=0,progaddr,temp1; clrscr(); fin=fopen("pass1.c","r"); …

Member Avatar for MrNoob
0
126
Member Avatar for niche1

I need to import TEST.TXT (located in the same directory as my script It has 1 Record: "6","Lunch","234" Iget this error message: Warning: mysqli_close() expects exactly 1 parameter, 0 given in C:\wamp\www\test\import.php on line 19 Why? Heres my script: [code=php]<?php // Connect to the MySQL server and select the corporate …

Member Avatar for niche1
0
115
Member Avatar for noi80

Hello. I am currently working on a school project. I need to implement 4x4 matrix multiplication with multi-threads (pthread) doing each multiplication. By studying the assignment description and other codes found online, I was able to get a general idea of what I need to do. However, I am having …

Member Avatar for noi80
0
150
Member Avatar for Hoey33

If a person has a number between 1 and 100 in mind, you can always figure out what this number is by asking no more than 7 questions “Is your number the same, smaller than or equal to x?” where x is to be determined. The trick is to a …

Member Avatar for MrNoob
0
126
Member Avatar for fumnimda

my problem is with using $_SERVER['HTTP_REFERER'] in IE.it doen't work. what can i do instead ?

Member Avatar for Atli
0
83
Member Avatar for MrNoob

hey i was reading some stuff about windows i was wondering if file is loaded at virtual memory and let's say we load many files at once wouldn't that cause thrashing ? or exucatables are loaded into RAM then copied to virtual memory of hdd ?

Member Avatar for MrNoob
0
158
Member Avatar for hiprakhar

Hi this is the code for life, universe and everything problem, where the program stops only when the user inputs the number "42" I tried to understand the problem, but could not make it that how the program stops at exactly 42. Any help would be extremely appreciated. [CODE]#include <iostream> …

Member Avatar for hiprakhar
0
131
Member Avatar for cjjack88

Hi, i am new in c++. I am doing an assignment where I need a menu for user to select the operation. My menu coding is as below. [CODE] int main() { myCarSystem b; char ch; string temp1, temp2; double temp3, temp4; while(1) { cout<<endl<<endl; cout<<" My Car System Operations …

Member Avatar for cjjack88
0
165
Member Avatar for sparksterz

I've used IComparer before but I seem to be getting an odd issue where I'm not getting the second argument to my Comparer function. [CODE] internal class FreePtrCompare : IComparer<File> { int IComparer<File>.Compare(File x, File y) { int a = x.fsPos; //Free space pointer of file 1 int b = …

Member Avatar for sparksterz
0
143
Member Avatar for enzo420

Hi all, so I'm looking to make a social network style site, just to help me understand php so please don't say anything about reinventing the wheel. I'm looking for a way that when a user clicks on a name in the member list that it sends them to profile.php?id= …

Member Avatar for ShawnCplus
0
223
Member Avatar for Web_Sailor

Hi.. How do I skip the first line of a text file. I am not using getline() so I think I cannot use ignore() function. Is there any other way to ignore first line ? [CODE] ................. FILE *in; char line[1000]; char *token; in = fopen(argv[1],"rt+"); if( in == NULL) …

Member Avatar for Web_Sailor
0
8K
Member Avatar for largedimples

Will someone please check this and tell me if I did this problem correctly. The question is presented bold; I also need help with push. I couldn't figure out how to complete the definition or routine for it. I am not very good at big o notation to determine if …

Member Avatar for Tom Gunn
0
784
Member Avatar for Leod58

In VB.Net 2008 express: I am looking for a way to setup a screen that contains a picture and some information. Hold in place for 10 seconds, change the picture and information and re-display the screen. The information comes from a SQL Server database. I there a way to setup …

0
94
Member Avatar for OldQBasicer

In the mid-'90s I wrote in Quick Basic some lab simulations for science classes I was teaching. I want to rewrite them in VB and thought that I could just paste old QB code into VB... not so, of course. I want to know how to read data from within …

Member Avatar for OldQBasicer
0
983
Member Avatar for meddlepal

I'm writing a program that transfers files around a network using UDP. One of the things I am trying to do is break down files into small byte arrays that can be put on packets and transferred. But it doesn't work... It doesn't seem to be reading the bytes correctly, …

Member Avatar for quuba
0
615
Member Avatar for peacerosetx

Greetings all, Peace. I have a problem. I need to download visual c++ 2005 express edition (long story why this one). I cannot find out where to get the correct download. I found this [URL="http://www.microsoft.com/downloads/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en"]here[/URL] this is for the Microsoft® Visual Studio® 2005 Express Editions Service Pack 1. However, when …

Member Avatar for peacerosetx
0
207
Member Avatar for klackey19

hey, for a class project I have to write a parser for a grammar that my professor is giving us. I have broken it down into a very small part and want to get that working before parsing an entire string. In this bit of code, the string to be …

Member Avatar for klackey19
0
116
Member Avatar for lewashby

I more than half way through the book "Python programming for the absolute beginner" 2nd Ed. and things are really starting to get hairy. The book has me to write some code just before or after explaining each part. But I have to really concentrate on the paragraph I'M reading …

Member Avatar for vegaseat
0
120
Member Avatar for kustrle

OK, I made two Windows Forms Applications (Look images below) Step 1: [url]http://img245.imageshack.us/img245/8227/78636770.jpg[/url] Step 2: [url]http://img408.imageshack.us/img408/808/48168956.jpg[/url] Well, as you see at "step 1" there is some text (blured) and the Next button in bottom left corner. I would like to know how to make that when I click Next button …

Member Avatar for evilguyme
0
134
Member Avatar for topest1

Hello all, I am developing chat application(not applet) in java, I want it to be able to run over internet I have tried it in LAN with Socket programming I found something [URL="http://javaeye.wordpress.com/2008/05/04/clientserver-communication-using-tcp-sockets/"]here[/URL] It is working fine But how can i run it over internet:?: :confused: If i [COLOR="Red"]tcpserver.java[/COLOR](or tcpserver.class) …

Member Avatar for topest1
0
184
Member Avatar for radskate360

Hey newer programmer here need a bit of help. The direction are bascially to read in from a file some words in the form of a paragraph with no punctuations and no commas etc. The file will look similar to When promulgating your esoteric cogitations and articulating your Let your …

Member Avatar for phanirampally
0
165
Member Avatar for Dazaa

Hi, I am writing a reverse function, to reverse a string, but when I am compiling I am getting an error, and I know its from the malloc line of code. This is the first time i have used malloc, but I want the function to work for any length …

Member Avatar for Dave Sinkula
0
148
Member Avatar for imano5

I having hard time understanding how to read the expression in scheme. Need HELP!! Can anyone help. PLEASE

Member Avatar for Rashakil Fol
0
148
Member Avatar for mayanktalwar

hey i am trying a code...ad in that i am using arayrs to store a sequence of data..i have writen this in he code x[100000] and it say too large arrays as a error......now how o deal with this..and how to store such a large sequence of data..without file handling...... …

Member Avatar for mrnutty
0
115
Member Avatar for neithan

I want a vector<string> with some values by default. I wanted to do something like char **strings = {"bla", "blo"} How to do it with vector<> without using repeated push_backs?

Member Avatar for Dave Sinkula
0
611
Member Avatar for Kruptein

Is there a built-in function to give the value of a letter? what I mean is a=1 b=2 c=3 d=4 e=5 f=6 ... something like letval(a) would give me 1

Member Avatar for Kruptein
0
9K
Member Avatar for cfuilip

our lecturer want us to find a topic which we need to present next week... the program must include file handling... any idea for the topic ... and kindly show the example

Member Avatar for Shillz
0
82
Member Avatar for jmark13

So the Goal is: given a Nested list that contains 3 elements in each element in the nest, i.e. L1=[[1,2,3],[4,5,6],[7,8,9],[10,11,12]] how can I take a flat list, i.e. L2=[1,2,3,4,11] where if the elements within the nested list, i.e. L1[0], L1[1], etc. intersect with any single element in L2, the element …

Member Avatar for lukerobi
0
193
Member Avatar for majestic0110

Hi all, I hope you are well. I am trying to compile a java file using terminal in Ubuntu, but I am getting the following error message: [QUOTE]1. ERROR in StringComparisons.java (at line 20) System.out.printf("String a = %s String b = %s \n", a,b); [/QUOTE] As you can see, I …

Member Avatar for quuba
0
241
Member Avatar for StaticX

Hi, I am trying to write a simple program that stores a user input in a c-string,and will then print out each character (I)diaganolly across screen and (II) each character on a new line. The problem im having with this,and with c strings entirely,is that it keeps printing out random …

Member Avatar for StaticX
0
113
Member Avatar for altarek

hello i want to secure my data ,i have link to pdf file when click it give all path to pdf like this [B][url]http://192.167.1.13/data/0000/000/000/0000-000-000-000.pdf[/url][/B] i want to change it to be like this [B][url]http://192.167.1.13/xxxxxx[/url][/B] or any other i want to change it start from /data any help

Member Avatar for almostbob
0
84
Member Avatar for manoj_582033

Hi friends I am working in vb.net ,there is i have a form in which i have a datagridview,& a column of checkbox in tat datagridview,when this datagridview becomes load, that checkes theb employee is present or absent if present so the check box of that perticular row must be …

Member Avatar for TomW
0
192
Member Avatar for tux4life

A small function which reverses a c-string by just swapping the elements :) ... Usage:: [CODE=C++] char[] str = "hello"; reverse(str); // str now contains "olleh" [/CODE]

Member Avatar for Nick Evan
0
1K
Member Avatar for karpaklu

hai dani, i have a problem with listing the contents of file in another directory. my default path is in /home/pallu where my file called DirProg script exists , now i want to find any file which starts with a or A in a dir and store the content in …

Member Avatar for cfajohnson
0
86
Member Avatar for zmwg

I'm writing a program that takes input for an an array. It then uses a loop to replace the values in another array that has preset values with the values from the array that received input. When I try to move the values though...well let's say arrayA is the one …

Member Avatar for zmwg
0
130
Member Avatar for revski

Hi, i am trying to add Label captions and Combobox text values to a memo when the button is clicked, and keep recieving the error 'Incompatible Types TString and TCaption' when i try to add values from labels and comboboxes Im using the code like this: [code]Memo1.Lines.AddStrings(Memo2.Lines); Memo1.Lines.AddStrings(Memo3.Lines); Memo1.Lines.AddStrings(Edit1.Text); Memo1.Lines.AddStrings(Label1.Caption);[/code] …

Member Avatar for pritaeas
0
416
Member Avatar for mcek

I'm writing a program that will download pfd files and collate them. However the urls I get are a bit weird. They look like this: [code]http://links.ealert.nature.com/ctt?kn=105&m=34136651&r=MjA1NzczMzM4NgS2&b=0&j=NTkwOTY5NjQS1&mt=1&rt=0 [/code] I'm using URLConnection and BufferedInputStream, but no data is read from the stream (read() returns -1 at the first try). If they are …

Member Avatar for mcek
0
549
Member Avatar for revski

Hi, i am trying to get my application to check, which radiobutton is selected, and then perform instructions based on the selection. but i cant seem to use a IF and ELSE procedure to do this, can somebody help me out as to what procedure i should use.

Member Avatar for revski
0
260
Member Avatar for sanjanaa

Hi, I have a dataset which is having 5 tables. I want to get only two tables from that dataset and assign into a single datagrid. How can i do this? Thanks in advance...

Member Avatar for reach_yousuf
0
144
Member Avatar for Madzts

Hi. . can any one help me in converting infix to postfix. . i do not know what is wrong in my code. . help!!!plz [code] #include<iostream> #include<string> #include<conio.h> #include<stdio.h> using namespace std; void main() { char stack[10]; char input[10]; char output[10]; char plusminus,multdiv; int a; cout<<"\tInput an infix expression:"; …

Member Avatar for Afaq Haider
0
411
Member Avatar for wilen

i just want to ask how can i add a another value in this code this is for educational purpose and im not familiar with asm i know java programming but this is far different mov eax,[000003E8+100] crash my system honestly i dont know how to add in asm any …

Member Avatar for wilen
0
181
Member Avatar for bords

Hello....Im making a vc# proj...I just want to know what is code on opening a new form while closing my current form....tanx

Member Avatar for ddanbe
0
110
Member Avatar for nicklau

Html-structure [code] <html><head></head><body> <!-- START XOXO --> "lots of html and jsp stuff" <!-- STOP XOXO --> "file reading" </body> </html> [/code] The file reading code [code] <%@ page import="java.io.*" %> <% String line = ""; String file = request.getRequestURL().toString(); int print = 0; BufferedReader input = new BufferedReader(new FileReader(file)); …

Member Avatar for ejosiah
0
188
Member Avatar for just_me

hi there.. I using for loop to increment the column in my page. through this increment, I want it to insert to the database. But what I'm getting is the last value only. can someone help me? this is my supplier_quo.php which when we click submit button, it will go …

Member Avatar for just_me
0
117
Member Avatar for nkk

Hey guys, I'd like to create an access database for a vaccine clinic I am managing in a large slum here in South Asia. So basically I want to create a form that auto-populates. Say a baby comes in: I open a new form, assign a unique id (probably the …

Member Avatar for timothybard
0
122
Member Avatar for arasucute

give me the perfect program like that output.[code]#include<stdio.h> #include<conio.h> void main() { int i,j; int a=15; int b=30; clrscr(); for(i=0;i<=a;i++) { for(j=0;j<=b;j++) { if(i==0||i==2||i==a) { if(i==0||i==2) if(j==0||j==b-4||j==b) printf("+"); else printf("-"); if(i==a) if(j==0||j==b) printf("+"); else printf("-"); { if(i==1||j==14) printf("mywindow"); if(i==1||j==28) printf("X"); } } if(j==0) if(i==1||i==3||i==4||i==5||i==6||i==7||i==8||i==9||i==10||i==11||i==12||i==13||i==14) printf("|"); else printf(" "); if(j==b) if(i==1||i==3||i==4||i==5||i==6||i==7||i==8||i==9||i==10||i==11||i==12||i==13||i==14) …

Member Avatar for yellowSnow
0
100
Member Avatar for goldy736

hi, am in learning phase of php , am struck here , i try to call method in a class from other class namely display.phtml and displaycall.phtml i was successfull in calling the method but problem is , i have a variable $_productCode with value equal to 'A1001'. The main …

Member Avatar for jomanlk
0
4K
Member Avatar for neithan

I'm new to C++, i'm learning with the help of Stroustrup Principles of C++ book, with this forum etc I'm doing console apps that treats and operates with numbers and so on, as i see you do the same, at least that's what i see people asks in the forum. …

Member Avatar for neithan
0
202
Member Avatar for jino

Dear all, I have a requirement that, when the user click on a radiobutton of a listed module, all its permissions should be toggled down. This section comprises in a div "msg_body". there are more than one module and so more than one msg_body divs. I used jQuery for this …

Member Avatar for jino
0
205
Member Avatar for bords

Hello, i am making a vc# project...can you give some tips on my prob... i want to open a new form while closing my current form...

Member Avatar for avirag
0
297

The End.