199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for colmcy1

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 …

Member Avatar for colmcy1
0
799
Member Avatar for Usura

could someone please point me to a link on how to convert my char* temp = new char[3]; to a char test[3]?

Member Avatar for Ancient Dragon
0
69
Member Avatar for shinkelwars

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 …

Member Avatar for Ancient Dragon
0
149
Member Avatar for kabeer62

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

Member Avatar for KuriYokan
0
120
Member Avatar for raul66

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 …

Member Avatar for djjjozsi
0
122
Member Avatar for clisen

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

Member Avatar for clisen
0
130
Member Avatar for akindo

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 …

Member Avatar for akindo
0
139
Member Avatar for fadia

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 …

Member Avatar for ithelp
0
129
Member Avatar for timb89

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

Member Avatar for Sky Diploma
0
76
Member Avatar for tiello

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 …

Member Avatar for tiello
0
156
Member Avatar for andonyan

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 …

Member Avatar for Sky Diploma
0
327
Member Avatar for Aseem_Pandey

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 …

Member Avatar for Aseem_Pandey
0
286
Member Avatar for KuriYokan

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 …

Member Avatar for KuriYokan
0
139
Member Avatar for nadith_cs

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 …

Member Avatar for Nicklorion
0
200
Member Avatar for asemakula

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

Member Avatar for asemakula
0
180
Member Avatar for iammfa

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

Member Avatar for iammfa
0
99
Member Avatar for jineesh

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

Member Avatar for VIeditorlover
0
618
Member Avatar for kavitha284633

on postback neither the ajax slider extender not its bound asp textbox retains the selected value. please help

Member Avatar for kavitha284633
0
64
Member Avatar for sravan953

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?

Member Avatar for dads
0
158
Member Avatar for protjaart

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 …

Member Avatar for protjaart
0
124
Member Avatar for bharatshivram

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

Member Avatar for JamesCherrill
0
96
Member Avatar for KickAss2k1

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 …

Member Avatar for ArkM
0
256
Member Avatar for max.yevs

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 …

Member Avatar for shadwickman
0
174
Member Avatar for jen638

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 …

Member Avatar for slate
0
161
Member Avatar for kaluxx

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 …

Member Avatar for masijade
0
103
Member Avatar for max.yevs

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 …

Member Avatar for max.yevs
0
164
Member Avatar for Mordecai17

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

Member Avatar for vb5prgrmr
0
171
Member Avatar for Mandler

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 …

Member Avatar for Baldy76
0
162
Member Avatar for java-utm-stg

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")){ …

Member Avatar for VernonDozier
0
79
Member Avatar for suncica2222

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 …

Member Avatar for Xhamolk_
0
92
Member Avatar for daxxin2002

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 …

Member Avatar for sammynove
0
659
Member Avatar for zoro007

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 ?

Member Avatar for zoro007
0
110
Member Avatar for farooq82

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 …

Member Avatar for peter_budo
0
114
Member Avatar for m-hrt

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 …

Member Avatar for m-hrt
0
306
Member Avatar for seemant_sun
Member Avatar for ArkM
0
77
Member Avatar for Wraithan

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

Member Avatar for slate
0
1K
Member Avatar for Pavan_

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 …

Member Avatar for ArkM
0
148
Member Avatar for coolest_987

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

Member Avatar for diafol
0
124
Member Avatar for JohnKelly

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 …

Member Avatar for 1RealTruth
0
805
Member Avatar for nigelburrell

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

Member Avatar for Josh Connerty
0
287
Member Avatar for gagan22

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 …

Member Avatar for Josh Connerty
0
2K
Member Avatar for jcollins85

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

Member Avatar for jcollins85
0
142
Member Avatar for mbartos

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 …

Member Avatar for ArkM
0
325
Member Avatar for yun

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 …

Member Avatar for vmanes
0
2K
Member Avatar for Usura

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 …

Member Avatar for StuXYZ
0
110
Member Avatar for mingke

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

Member Avatar for mingke
0
202
Member Avatar for Mudi

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 …

Member Avatar for siddhant3s
0
118
Member Avatar for happypig112
Member Avatar for lqdo

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 …

Member Avatar for lqdo
0
99
Member Avatar for townders

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

Member Avatar for diafol
0
85

The End.