199,113 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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? | |
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 … | |
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 … | |
Is the best quantum time determined by whichever produces the shortest average waiting time? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 | |
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 … | |
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[]); … | |
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 … | |
[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, … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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. … | |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
Hai everyone ... Can you please mention the ways to generate PDF contents using php...and the components which can be used for it ? | |
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 … | |
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, … | |
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 … | |
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 | |
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 |
The End.