199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for itsraghu

Hi, I'm trying a very simple code as below. #include <fstream> #include <iostream> int main() { ofstream myfile; myfile.open ("example.txt"); myfile << "Writing this to a file.n"; myfile.close(); return 0; } But getting following error on myfile.open statement... Debug Assertion Failed! Program: ... File f:spvctoolsicrt_bldself_x86crtsrcopen.c Line 308 Expression: ("Invalid sharing …

Member Avatar for itsraghu
0
1K
Member Avatar for servis

i want to populate drop down box values on the basis of other drop down box value dynamically(without refreshing the page) using java script. i tried to search on google, but could not find anything. please can anybody help me in this regards. Thanks

Member Avatar for servis
0
202
Member Avatar for dadahetal

I have created Database. table and procedure inside that. I want to generate sql script for this. How can I do that in .Net 2005? also after generating script, how can i run that to create tables in another computer?

Member Avatar for greeny_1984
0
93
Member Avatar for thirumca

Hi, I have three dropdownlist. I need help for how to bind the three dropdownlist in single query.I.e. Now i write the code was every time the datas coming from DB. But i need only one time the datas are come from Db, then we bind the dropdownlists at the …

Member Avatar for mail2saion
0
83
Member Avatar for claydo

So, I have to write a program that calculates the five number summary of a .txt file with 2 columns and n rows. A snippet of the file would be 23 7.8 27 17.8 39 26.5 41 27.2 From this I am trying to input the numbers into a vector …

Member Avatar for claydo
0
258
Member Avatar for CMRemaly

Is the best quantum time determined by whichever produces the shortest average waiting time?

Member Avatar for CMRemaly
0
64
Member Avatar for Lsmjudoka

I need to have my program use a function to read in numbers from a file to an array, and pass the array back to my main program to be outputted/used by another function; however, I am getting an error(cannot convert from 'int' to 'int [100]'): Here is the relevant …

Member Avatar for Lsmjudoka
0
174
Member Avatar for Ghost

Hi, I was wondering if there's a tutorial on making a website that offers free hosting. I know how to upload files with PHP, so I posted this topic here. Thanx.

Member Avatar for foryounow
0
500
Member Avatar for sowmyask7

I am trying to call the Oracle stored procedure in java. I have given below,stored procedure and java method which calls the stored procedure and returns the result set. I am getting the error Invalid column type :1111 or invalid column index. Can anyone tell me whats wrong in the …

Member Avatar for sincerelibran
0
5K
Member Avatar for Zcool31

Hello everyone! I am looking for a simple free c/c++ IDE which does not need to create projects in order to build applications. If possible, I would like something that has code completion on par with MSVC Intellisense, or NetBeans code completion. However, the most important feature I am looking …

Member Avatar for MosaicFuneral
0
475
Member Avatar for dor88keys

hi, im looking for a good PHP script to install a forum in my website. i came across phorum,and chipmonk. i also need it to have a PM (private messeges) option. can anyone recommend a good script ? could anyone tell me where can i find instructions regarding installing chipmonk …

Member Avatar for foryounow
0
1K
Member Avatar for radhasb

I have a .dat file with many lines. I need to overwrite a certain line. Let's just say I have to overwrite the 5th line of the dat file. How would I set the RandomAccessFile to overwrite at line 5 (or any line in general)? (P.S.: each line has 10 …

Member Avatar for DotA
0
495
Member Avatar for serkan sendur

i am creating a small cpu simulator and i need to parse the assembly instruction which is like "add $s1 $s2 $s3", i need to get these four individual words ignoring the white spaces, if i use string.split(' '), it wont work if user enters more than one space between …

Member Avatar for serkan sendur
0
181
Member Avatar for Undermine

hi, im trying to learn python and this is giving me [ICODE]>>> x=input("Enter a value: ") if x % 2 ==0: print ("even") else: print ("odd")[/ICODE] then when i execute: Enter a number: then i enter a number but it does not print even or odd. why?

Member Avatar for Undermine
0
79
Member Avatar for newbiecoder

Hi I want to write a program which reads a hexadecimal number and returns an decimal number. I wrote that code(inspired by some code pieces from web): [CODE]#include <stdio.h> int main() { int hexa; scanf("%x", &hexa); printf("%d", hexa); return 0; } [/CODE] but it does't give the answer I want …

Member Avatar for WaltP
0
106
Member Avatar for BruenorBH

I am getting the above error when trying to compile.. main.cpp [code=cplusplus] #include <windows.h> #include <string> #include "resource.h" #define GETITEM(item) GetDlgItem(hWndDlg, item) static bool keeprunning = true; static bool keeprunning1 = true; static bool keeprunning2 = true; static void run(); static void breakrun(); static void lunchrun(); static void end(); static …

Member Avatar for BruenorBH
0
251
Member Avatar for payamrastogi

Hi, I'm using C#.net 3.0,I want to divide a videofile into its constituent frames and save these frames in image format so that I can use these frames for the purpose of watermarking. Please tell me how to do this thanks

Member Avatar for Ramy Mahrous
0
81
Member Avatar for ELewis08

Hey everyone. I'm new to the forums and to C++, and I was working on a program used to call data from a file containing various information about cars when I ran across the error: undefined reference to (and then it proceeds to list all of my declared functions). Here's …

Member Avatar for ELewis08
0
178
Member Avatar for kaseem724

i am trying to get my program to cout only certain arrays but i keep getting 0's and bus errors and segmentation faults. i think i have the general idea but i cant find a way to fix this problem. [code] #include<iostream> #include<fstream> #include<cstring> #include<iomanip> using namespace std; void findvin(int[],string[],string[],int[],int[],double[]); …

Member Avatar for nucleon
0
142
Member Avatar for AnujSuper9

Hello everyone, I'm working on a small assignment where I am supposed to write the code for the itoa function [icode]char* itoa(int Value, int Base);[/icode] without using any built-in functions, and where the returned value is allocated on behalf of the caller. Value being the integer to convert, and base …

Member Avatar for AnujSuper9
0
3K
Member Avatar for EMUGOD

[code=c]printf("reading input image ... \n"); /*unidata.image = (image_ptr*)read_pnm(argv[1], &(unidata.rows), &(unidata.cols), &type); */ printf("hello.jpg"); printf("image read successfully \n"); printf("rows=%d, cols=%d, type=%d \n", unidata.rows, unidata.cols, type); /* error here*/ printf("well"); [/code] the errors are coming between the two final printf statements. when the read_pnm() is left uncommented it is a segmentation fault, …

Member Avatar for EMUGOD
0
174
Member Avatar for Vihaio2012

Hello, I want to total up a variable that changes every time a function is run. [code]import random def flip(): h,t = 0,1 cheads, ctails, = 0,0 cflips = random.choice((0,1)) if cflips == 0: cheads += 1 return 'h' else: ctails += 1 return 't' def repeat(f,n): for i in …

Member Avatar for vegaseat
0
112
Member Avatar for lorayyne

Hello, I am trying to write a program that flips a coin until it gets the sequence "heads tails heads" and then stops and says how many flips it took to get that sequence. This is what I have so far: [code]import random import time import string def coinflip(): heads …

Member Avatar for lorayyne
0
151
Member Avatar for Freezeskier

Ok so hers the deal im in a programming class and i am attempting to solve this problem but i have no idea how to go at it really. Its due tomorrow and i had no Idea where else to go. Thanks in advance. Write analysis program to read the …

Member Avatar for VernonDozier
0
180
Member Avatar for Lib Auth

Hello There, I recently stumbled across this website: <Link snipped; Website doesn’t exist> You input your information and it automatically gives you a folder on his website as well as a phpbb forum. Is there a publically available script for this? Regards, Grant

Member Avatar for Lib Auth
0
195
Member Avatar for wedunnit

I have hit a stone wall this week. I have tried numeous methods to get a functioning array into this code, and get the code to call for a total value. Now I have changed code around untik I no longer have compile errors, but now all of my values …

Member Avatar for wedunnit
0
95
Member Avatar for hurbano

hi i need help writing a program that will read in input file containing c++ code and then checks for grouping matching symbols like { } ,[ ] ,and ( ). if there is a mismatch symbol in the input file the the program will read and recognize the error. …

Member Avatar for nucleon
0
146
Member Avatar for anointedballa

Howdy, I've been having problems letting the computer figure out my answer to my math riddle. Im given a multiplication problem to find the answer to the following problem: 7xx x 4x _____ xxxx0 In this problem, every number from 0-9 is used only once. I found the answer the …

Member Avatar for VernonDozier
0
106
Member Avatar for jesseb07

hey, I got a question regarding functions returning a linked list. Here's the data structure of my linked list (just in case it deviates from the standard way of doing it) [CODE] template <class T> class Link { private: unsigned int size; Link<T> *nextRow; Cell<T> *firstCell; public: Link(); ~Link(); //functions …

Member Avatar for jesseb07
0
105
Member Avatar for mbabaali

am doing a classroom project but am stuck with the registering users script it does send the data to the mysql database ppliz help me out thanks here are both the html and php codes . [code=html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" …

Member Avatar for somedude3488
0
199
Member Avatar for paolomontero

Provided the following template: [code=cplusplus] template <class T> class MyTemplate { private: T myData; public: MyTemplate(const T &data) : myData(data) {} bool Contains(const T &); }; [/code] Is there a way to ensure at compile time that the argument T derives from another class? I want T to derive from …

Member Avatar for paolomontero
0
191
Member Avatar for dzoch89

Hello, I am currently working on a program which will take a set of strings from a data file and store them into an array called word. So far my code has compiled correctly however I just added in malloc and it just doesn't like me. I need to malloc …

Member Avatar for Ancient Dragon
0
121
Member Avatar for wedunnit

I am an infant attempting to learn to crawl through Java. I have been learning for just over four weeks now, and have been doing relatively well. However, I am now on arrays, and find myself not only floundering, but drowning! My text seems extremely difficult to understand, and I …

Member Avatar for BestJewSinceJC
0
103
Member Avatar for rajeesh_rsn

Hi i had php form in a page and I make the submit function using a javascript function ( some thing like protypes.js ). It is working fine in IE , Opera ... Nut doesn't in Firefox. Here is the code. Please any one help me to work in Firefox …

Member Avatar for essential
0
151
Member Avatar for ahoest

Hey all, My program creates panels with textfields. The actual goal is to draw lines between the textfields. But i'm stuck way before that stage. I can draw lines with the button connection lines and you click on two points and it draws a line. The 2 problems I have …

Member Avatar for ahoest
0
524
Member Avatar for ald4057

I'm a first semester CINT student and I'd like to add some "bling" to my final project. I want to add blinking text to my final forms clearform button. My code so far: [code]Private Sub orderForm_Load(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles MyBase.Load 'disabling the animation on …

Member Avatar for ald4057
0
111
Member Avatar for Rastabot

Hey , for my class I have to create an Infinite Integer class which holds can hold a really, really large integer using a doubly linked list. It holds 3 integers per node, so 5,697,343 would be held like [5] [697] [343]. I implemented my constructor and toString method fine, …

Member Avatar for ~s.o.s~
0
332
Member Avatar for nonang

How do I have the algorithm below to sort my list in opposite direction (right to left) instead of left to right. Also, how do I make it sort simultaneously or alternatively in both directions? Thanks. [code=python] def bubblesort(l): for passes in range(len(l)-1, 0, -1): for index in range(passes): if …

Member Avatar for vegaseat
0
163
Member Avatar for Adeel Zafar
Member Avatar for digirandi
0
73
Member Avatar for bahr_alhalak

How r u every body. I have some qoustions: 1)What is the difference between an instance data field and a static data field?? 2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of …

Member Avatar for digirandi
0
102
Member Avatar for Pavan_

Hello ppl, m computer science student and have learnt c&c++ and want to learn a new language in which i can create gui application with gud performance...i found that java and c# can be 2 option..so which will be best and useful...c# or java???? i found that java is a …

Member Avatar for Ramy Mahrous
0
143
Member Avatar for whitestream6

I'm looking for an offline browser to make a backup copy of my site with. I tried WinHTTrack but it created an index.html file with a directory listing, and didn't always render some pages properly. I had a look on Google for "offline browser" but a lot of them are …

Member Avatar for foryounow
0
98
Member Avatar for xVent

Hi guys , after finishing my text based game , when i send the executable file to my friend he cannot open it .. he get an error that smth is wrong in configs file .. he also has framework installed

Member Avatar for Ancient Dragon
0
125
Member Avatar for ssDimensionss

Hi i have a program that outputs a bunch of hexadecimal numbers. Here is a example: 18 3048 ffff8007 The thing is i want all the outputs to be 8 digits long, so i want the out put to be something like: 00000018 00003048 ffff8007 so yea basically i just …

Member Avatar for Narue
0
211
Member Avatar for piusbabbun

Hai everyone ... Can you please mention the ways to generate PDF contents using php...and the components which can be used for it ?

Member Avatar for foryounow
0
108
Member Avatar for mhariharasudan

hi everyone i want to insert and retrieve images from the mysql using php(in wamp server).actually i searched the net and tried with many codes but cudnt find a solution.in the last one tht i tried,i created a table tht includes a blob datatype for one of its attribute and …

Member Avatar for mhariharasudan
0
130
Member Avatar for tintincute

hi I'm doing an exercise from a book, where I created a project called "Example.cs". When I wrote the code, here are the steps involve: 1. Select New Item. This causes the Add New Item dialog to be displayed. Select Code File and then change the name to Example.cs, 2.Next, …

Member Avatar for Ramy Mahrous
0
116
Member Avatar for kinger29

I want a box/frame/applet on my html webpage that will display an image and depending on where the user clicks i want text to popup/disappear somewhere else in the image. Does anyone know how to do this in javascript. Sorry Im new to web development and couldn't figure out how …

Member Avatar for almostbob
0
125
Member Avatar for tintincute

Hi I have a code here: [CODE]public static StringBuilder sb; private static bool isRecording = false; private static bool isWritingDocument = false;[/CODE] I would like to know what is the role of IsRecording here? I know it's a variable. I would like to understand the meaning here Thanks

Member Avatar for tintincute
0
176
Member Avatar for ukbasak

Please anyone provides code with examle to disable the Close (X) button in title bar. If user wants to click automatically a dialog box must appear with message 'This is disbale'... Thanks

Member Avatar for almostbob
0
282

The End.