199,124 Archived Topics
Remove Filter ![]() | |
Hey all, I have just updated to MS VS 2008 Pro. I am having some cross over problems from MS VC 6. Below is a simple example: [CODE]#include<afx.h> #include<iostream> using namespace std; int main() { CString s; CString sa("Strings "); CString sb = CString("are easy "); CString sc = "in … | |
could someone please point me to a link on how to convert my char* temp = new char[3]; to a char test[3]? | |
Hi guys, My employer has given me a mission to find a robust and scalable API for C++ that allows for easy programming of client / server systems. In this case the application they intend to build involves thousands of clients sending data continuously to a central server (the data … | |
there are blanks in the question as the pro gramme need some codes and definitions to get completed. Please help me in completing this problem. than x in advance. [code=cplusplus] #include <iostream.h> #include <conio.h> #include <fstream.h> //---------------function prototypes----------------------------------------- int menu(); void screenHold(); void enter(); void report(); void save(); void load(); … | |
Hi everybody, I want to join 3 tables and gain same data from these tables. 1.table: usr - user information usr_id 2.table: res- results res_usr_id res_exc_id res_result 3.table: exc- excercises exc_id exc_excercise_name Now I want print all results from one user and all excercises from one user.Can somebody help me?I … | |
Hey everyone, I'm trying to create a string inside a class, but for some reason, my compiler is not recognizing: [CODE] class ob { string name("Name"); public: //code } [/CODE] error C2059: syntax error : 'string' This class is being written in a header file, which has #include <string>. Now, … | |
Hi all. I am new to Python and have a problem regarding data structures. In my application I will be having several messages and my own type of IDs (Lamport clocks) to go with these messages. I will need to frequently ask for specific messages based on the ID. Hence … | |
This is my CS101 final project i have to make a whole programe by myself. its a programe for a flight agency its still incomplete, i knwo it still needs alot of work but i keep getting 4 errors when compailing i want to solve them so i can move … | |
[code] void deleteNegative(queue <int> &q) { queue <int> temp; if (!q.empty()) { int x = q.front(); if (x >= 0) { temp.push(x); q.pop(); } else { q.pop(); } } while(!temp.empty()) { q.push(temp.front()); temp.pop(); } } [/code] just afunction that returns a queue without the negatives in the same order. unsure … | |
Hi All, Can't insert data into SQL database... Keep getting error i dont know how to solve... Plz help Grtz Tiello [B]CODE:[/B] -------------------------------------------------------------------------------------- [code] Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connetionString As String Dim connection As SqlConnection Dim adapter As New SqlDataAdapter Dim … | |
Hi everyone, im fairly new to programming and i'm having problems solving my homework. My assignment is: Define a class Quadratic that stores the coefficients of a quadratic polynomial in a dynamically allocated array of doubles. Supply the "big three" memory management functions. Use this class to demonstrate (a) the … | |
I am stuck with a unique problem. We have to find the sum of digits in 2^1000. The code below is giving correct output. However when I change the value of digit from 1000 to anything <=604, It shows wrong output. The number of digit in 2^1000 is 302 and … | |
Hi guys. I'm pretty new here. I was recently playing around with templates and found them to be really useful. I was wondering how I could check the data type of the variable that was passed into the function, and I heard about RTTI from my friends. I've looked around … | |
plz let me know how to store the respond and take some logical actions upon it in visual STUDIO windows form application wht's the code for it; note that msdn suggest that it should be MessageBox::Show(" text here ", ,MessageBoxButtons::YesNo )==DialogResult::Yes but it's not working; DialogResult only has get() and … | |
[CODE]<script type="text/javascript"> var ... ;... Book_Image_Sources=new Array(...); function carousel() {...} </script>[/CODE] I want to (i hope it`s possible) call the script above in a css class like [TEX]#carouse { ... somehow call the script above }[/TEX] then in my html code [CODE]<img src="./images/placeholder.gif" class="carouse" />[/CODE] I am using a WYSIWYG … | |
hi, i'm using vc++ 2008 express edition to build my small exercises projects, building solution ok, no errors no warns, my problem started after i tried build my project, , the problem is the path of .exe project application, vc++ create it in path " D:\", although my folder "release" … | |
Please any one help me... I want to insert data automatically to the table while installing an application. how can i do this? Can I generate sql script for this??? Regards Jineesh | |
on postback neither the ajax slider extender not its bound asp textbox retains the selected value. please help | |
![]() | Can anyone teach me how to create a function which when called shuts down the computer, or opens an image or video and so on? |
hi i am truly just a student at this time soon to be the worlds best programmer there is just this one hickup with my studies i am trying to learn the c++ visual studio 2008 as part of my current course i am taking and every thing went well … | |
hi i have written a small chat application.. gui created using frames.. both can send text to one other using socket programing over the localhost.. is it possible to send files too along with just text?? Pls help Regards, Bharat Shivram | |
I have a text file that (partial snippet) looks like the following: Bugs Bunny Jr. 1234 1001.01 Porky Pig 2345 1002.02 Its format is a name (including spaces) is 20 characters, then 4 digit number, a space, and a number thats not a set number of characters. I have to … | |
yet another ridiculously simple question, yet i feel compelled to ask because i've been stuck here for like an hour without it working ok so say you have one list, a, and you need the user of the program to input a list of several more numbers, call that list … | |
I am trying to write a program that generates a list and a random number on 3 seperate occations, then checks the list to see if the number is in the list, all the while, timing the procedure( Python code) 1st list is 1-100, 2nd list is 1-1000, third list … | |
hello we use the class io.*; in our college we use in a unix platform which is import io*.; i am trying to code a code so taht i can get a string input i tried ConsoleInput.readString, and also ConsoleInput.readLine() but still i get an error it says that readString … | |
quick question i have come across, i can't find a definition for it perhaps i'll have to make a couple lines to define it? anyways for list a, which has only integers, i need to define the average, x... so i'm looking for something quick to do this: [code=python] >>>a … | |
I'm currently working on a project which acts in a similar fasion to the "Build Your Car Online" programs, only on one page. I want the program to access a sub procedure which adds values based on which set of option buttons were clicked (Each set (Color, Car, Two/Four Door) … | |
Hello, I have a simple HTML document that has a several DIVs... [code=html] <div id="17">Some content</div> <div id="2">Other content</div> <div id="23">And so on.</div>[/code] As you can see the IDs are not sequentially numbered because they're used by a JavaScript function that reads them and takes an appropriate action. That part … | |
hi We are creating a program for class which will take keyboard input and then get the instructions from that basically there could be as many as 4 instructions currently I am doing the following [code=java] System.out.println("Enter Input: "); humanInput = br.readLine(); StringTokenizer humanInputBrokenUp = new StringTokenizer(humanInput, " "); if(humanInputBrokenUp.nextToken().toString().equals("exit")){ … | |
I have array of 10 JFrames instanced and I want to kill 3 or 5 or n if them,but not all!!! how should I do it? and where? in constructor or in main...? [CODE]public class KlasaMrdanje extends JFrame { public int kontrola1; public KlasaMrdanje(int kontrola) throws Exception //KAKO DOBRO SA … | |
I have corrected a few errors,the code compiles and excutes for sure. how do one convert a truth table to boolean equation,I can convert the other way round like below; //Suppose Z = (A.B + C)' public class Boolean { public static void main(String[] args) { int a,b,c,z; System.out.println("A B … | |
Hello, I want do somthing in python equal this code in bash For example the file.txt in it "dani_web_the_best" and want print "web" cat file.txt | cut -d"_" -f2 What equal cut -d"_" -f2 in python ? | |
I doing my University assignment. I need help for accessing html option button values using Java Servlet. Any help in this regard. [CODE] <html> <head> <title>Result</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <h3> Select one option for each MCQ</h3> <form method="get" action="http://localhost:8084/MCQs/Webapplication1/src/java/serverlet"> <table width="730" border="0"> <tr> <td> <strong>1. Java is … | |
i want this to be happen user can not go directly to the page i have step by step booking i dont want this to be happen user can enter direct page on address bar if a user do this it gives error how can i do this.... these are … | |
| |
[code=python] class Item: def __init__(self, id, content, userid, duedate, collapsed, inhistory, priority, itemorder, faded, projectid, checked, datestring): self.id = id self.content = content self.userid = userid self.duedate = duedate self.collapsed = collapsed self.inhistory = inhistory self.priority = priority self.itemorder = itemorder self.faded = faded self.projectid = projectid self.checked = checked … | |
Hello friends, i have some doubt and hope i will get an satisfactory answer from here. 1) Can memory addresses be negative........i have initialized an array and check the address of element and found it negative...so i want to know can it be negative and if yes then how addresses … | |
Hii Will anyone help me how to read website data in php. Please Help me i have been doing this for long time. Thanks for help ![]() | |
I have a VB6 app that uses the Environ("userprofile") command to determine the location of the My Documents folder for the currently logged in user. This has been working fine for ages with no problems. One particular client has had the user directory redirected to a network location so that … | |
I have a website using MySQL database. When I retrieve any user's email address from my user table and show (echo) it to the webpage it always appears as a link. How can I show user's email address as plain text? Thanks Nigel | |
hi all, I have done one work in using multiple select box in which i am fetching value of select boxes from database. This all work i have done using ajax. Like when we select country form first select box then it will show state comes under country. But now … | |
Hi I've been think about this for a while but the answer eludes me. I know its a pretty simple program but here's the snippet: [code] int main(void){ printf("Enter the operation of your choice\n"); int a; int b; int ch; while((ch = getChoice()) != 'q'){ printf("enter a value: "); if(scanf("%d", … | |
the first time my program runs it gets the character from the keyboard the second time it gets a 10 and I have not pressed any keys on the keyboard [code=c] #include <stdio.h> #include <stdlib.h> void showone(); void showtwo(); void showthree(); void showfour(); void showfive(); void showsix(); int randx(); char … | |
write a program that read in an array of integers-- ideally from a text file. and then displays a histogram of those numbers, divided into the ranges 0-9, 10-19 ,20-29, and so forth, up to the range of containing only the valye 100. Please help me to write a efficient … | |
hey Ive been given a task which im suppose to create a chained container which recieves only 1 string, and continues chaining untill there is a repeat in the input, I was thinking that maps would be more appropriate but im not sure if I would be able to chain … | |
Hi... I've been trying to make a program where the input is txt file, and the output will be saved in txt file. But, I keep getting error Message. My code looks like this: [code] #include <stdlib.h> #include <stdio.h> int main (){ int i,j; float H [100][100]; FILE*in; in=fopen("0.txt","rt"); FILE*out; … | |
Hi, can any one tell me that how can i add two different statment constant and show it one answer for example , cout<<"cost of letter ,0.40"; cout<<"GST:0.05"; i want to add values between these two statment o.40+0.05=0.45 i want to perform this function in programme so can anyone please … | |
String swapping Output: Input name:Kitty yittk Thanks | |
Im am using serialization and deserialisation to read and store settings in a xml file. I have het created a generic class because I want to store different kind of settings in different kind of xml files. Is it possible to instantiate the type of the generic class within that … | |
I am learning php and reading Kevin Yanks book. I got to the first part of php - loaded up my page and immediately got: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource blah blah I have checked the case in everything and they are all correct... … ![]() |
The End.