64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for hariza

Hi Guys, I'm trying to remove all the special characters within a file using the code below but I need to remove also the doble quotes " but what should I use to enclose the characters. I've been looking but can't find. Thanks. while (sep != 0) { sep = …

Member Avatar for hariza
0
549
Member Avatar for peterbyrne

I wanted to be able to interrogate an Excel spreadsheet and programmatically save all the worksheets as text files (.csv). I succesfully managed to do this using the .NET COM interop Excel collection of interfaces but even though this works beautifully I thought it would be nice if I could …

Member Avatar for peterbyrne
0
139
Member Avatar for lalalu

im trying to create a structure that contains an array of structures but i keep getting error when compiling the code (corrupt stack). just to make sure, is my struct code correct? [code] typedef struct status *StatusPointer; struct status { int item; }array[MAX_NUM]; typedef struct allStatus *AllStatusPointer; struct allStatus { …

Member Avatar for lalalu
0
989
Member Avatar for jordan2005

hello people am new to c++ i dont have much knowledge about it what is the best book for a new comer to C++

Member Avatar for Ancient Dragon
0
101
Member Avatar for vheart20

hi am in urgent need of a good vb 6.0 project with oracle.i will be very thankfull if u could help me as soon as possible

Member Avatar for WaltP
0
161
Member Avatar for stan yost

Has anyone ever had a form freeze up in vb 5.0? When I run by program the form is displayed in the smaller size and the 3 buttons at the top of the screen (the minus sign, the box and the X) are not functional.

Member Avatar for stan yost
0
80
Member Avatar for jan1024188

sory im complete newbie i have [code]include <stdio.h> int main() { int x; for(x=1; x < 10; x++) { printf("%d\n second ", a); } return 0; }[/code] [code]for.c:1: error: syntax error before ā€˜<’ token [/code]

Member Avatar for jan1024188
0
90
Member Avatar for jan1024188

ive got this [CODE]#include <stdio.h> #include <unistd.h> int main() { int a; int b; a = 3; b = 30; until (a == b) printf("%d\n second ", a); a++; usleep ( 990000 ); printf("\n\n hvala ker usate ta pgr \n\n"); return 0; } [/CODE] but i got this error when …

Member Avatar for jan1024188
0
79
Member Avatar for pfunix

Greetings All! I would like to get some feedback to all ya good python folks here at daniweb regarding some implementations that you guys doing with Python and using MySQL db. I'm looking for some mysql plugin for python. I've tried sourceforge 's mysql-python but with no luck(installing) .. maybe …

Member Avatar for ghostdog74
0
160
Member Avatar for Matt Tacular

I am taking grade 12 programing and in the course, you can make any program in any language for a final project, and I want to do one in python, but I dont know what to make, I need help to come up with an idea for a rather useful …

Member Avatar for Ene Uran
0
135
Member Avatar for Barefootsanders

Hey everyone. I dont know if anyone here can help me but I run a site powered by the Joomla CMS. I wanted to design a component for my site and I was wondering if i could use C++ to design it instead of PHP and just use the 'system' …

Member Avatar for Barefootsanders
0
106
Member Avatar for jan1024188

i have [CODE]#include <stdio.h> int main() { int a; int b; a = 3; b = 30; while (a < b) { printf("%d\n crap .....", a); a = a + 1; } return 0; } [/CODE] i got output [QUOTE]crap .....4 crap .....5 crap .....6 crap .....7 crap .....8 crap …

Member Avatar for ~s.o.s~
0
119
Member Avatar for Barefootsanders

Hey guys. Ive been trying to write this program for a while and I keep getting errors on line 78, "Circle undeclared." I think it has something to do with the constructors and templates. I dont think im calling it right. Can someone take a look at it for me …

Member Avatar for Barefootsanders
0
132
Member Avatar for doraemon

I just start learning C++. I thought I can access an integer array by using pointer arithmetic method. why does the first program work but the second one does not??? [code] #include<iostream> using namespace std; int main() { int array [5], i, *p; for (i = 0; i < 5; …

Member Avatar for rowly
0
148
Member Avatar for dunderhead

Hi, I am having a problem with function and class syntax. I have one class (MakePanel1) that creates a button and label. The button-click event of the button is linked to a function (daclick1) that changes the text of the label. This works well. I have another class (MakePanel2) that …

Member Avatar for dunderhead
0
2K
Member Avatar for rowly

Hi, can any one tell me what size_t_count does, i couldnt get it . thanks guyz ! [code] fwrite([COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]void[/COLOR]*_str,size_t_Size,size_t_count,file *_File); [/code]

Member Avatar for rowly
0
355
Member Avatar for jan1024188

ok im newbie... i have a question if i have [code] #include <stdio.h> int main() { printf("type something:"); char a; scanf("%c", &a); printf("%c\n" ,a ); return 0; }[/code] i will aways get one character in output.My question is: -how to get world "hello" as standart output from variable using printf?

Member Avatar for jan1024188
0
126
Member Avatar for hoosier23

If I were to overload the subscript operator, aka '[]', it would probably look something like this: [code] int &operator[](int); [/code] If I filled this array with 10 digits.. 1.2.3.4, etc... How could I return the largest digit, and then the next largest digit? etc... I'm not sure if a …

Member Avatar for iamthwee
0
191
Member Avatar for FireSBurnsmuP

Okay, I know that Python is a programming language (it comes with some Linux installs), but what are its stats? I mean, how efficient is its build? How much larger or smaller are the programs than C++? How much faster are the programs than those created by C++? What are …

Member Avatar for vegaseat
0
180
Member Avatar for TJW
Member Avatar for weezie

First of all i'm a newbie so bear with me... I have created a form in which people submit a phonebumebr to a database, curently if they put a space in there it throws up an error. I have been told that : Never insert unsanitized data into your database. …

Member Avatar for weezie
0
146
Member Avatar for JyotiC

Hi, i am using Pygtk to make GUI . I have a frame in which i have added a VBox.. I want to add scrollbar in that VBox.. but couldn't figure out how to add it. [code] vscrollbar = gtk.VSscrollbar(adjustment=None) AttributeError: 'module' object has no attribute 'VSscrollbar' [/code] it's giving …

Member Avatar for JyotiC
0
295
Member Avatar for saurabh_kanwar

Hi Guys, I just need a bit of help in VBA. What I'm trying to do is to open report from a form. The reports are based on Query. The form consists of a combo box and a command button. What I want to do is to select the condition …

Member Avatar for saurabh_kanwar
0
97
Member Avatar for aspsqlvb

Hey guys..... can someone tell me why when I pass a NULL value to this function, the logic comes back as NULL and not an empty string?...... Thanks, Ken [CODE]Public Function Field2Str(strValue As String) As String If IsNull(Trim(strValue)) Then Field2Str = " " Else Field2Str = Trim(strValue) End If End …

Member Avatar for aspsqlvb
0
165
Member Avatar for bumsfeld

I read in the news that Python in going from version 2.4 to version 2.5 fixed 450 bugs. That seems to be lots of bugs! I used Python a lot and never found a single one of those bugs. What is your experience?

Member Avatar for nytrokiss
0
269
Member Avatar for zac_haryy

I keep on getting the erro "error C2064: term does not evaluate to a function taking 1 arguments" I have three of these errors and they are all on the first line after the if statements. I really dont know what is going wrong. Been working on this error for …

Member Avatar for zac_haryy
0
102
Member Avatar for tlly

Hello...I need to write a program where i need to copy each word of a string into an array... Eg(string s="hello how are you" arr[0]=hello,arr[1]=how....). any help:?: ??

Member Avatar for WaltP
0
107
Member Avatar for shermaine

Hi, Anyone here can advise me correction of my c programming? It doesn't seem to be working. #include<stdio.h> float x[4] = {1.2,2.4,3.6,4.8}; float f[4] = {0.1,0.2,0.3,0.4}; float xave = 0.0; float ftotal = 0.0; main() { int i; for (i=0; 1<4;i++) ftotal + = f[i]; if(ftotal!=1.0) { printf("error\n"); exit(); } …

Member Avatar for vegaseat
0
173
Member Avatar for jrcagle

Hi, I've written a nifty projectile simulator using pygames with the livewires wrapper for physic class: rocket on launch pad has assignable speed and direction, launching causes rocket to move under influence of gravity. Currently, the user can use the mouse to change the initial direction of the rocket, but …

Member Avatar for vegaseat
0
146
Member Avatar for vann

Hi I have a problem at writing multiple files. I have this code where I write several XML files (the number of files it's dynamic). I use a loop and in Linux works fine but the problem is Windows. For example let's say that I want to write a long …

0
92
Member Avatar for Behzad Oskooi

I am working with Borland C++ Builder 5 . When trying to run Client program from another computer in a LAN it complains that "it can not find the Vclmid50.bpl library." Note: Smart Agent & Server Program are running

Member Avatar for Behzad Oskooi
0
126
Member Avatar for rowly

[COLOR=seagreen]hi, i didn't get any reply probably coz ya didn't understand what i mean ![/COLOR] [COLOR=seagreen]alright i'll make it simple.[/COLOR] [COLOR=seagreen]i have a file in excel and i have to read from this file [/COLOR] [COLOR=seagreen]here is the contents of this file[/COLOR] [TEX] [COLOR=seagreen]2,joined,2929828,429.6,2[/COLOR] [COLOR=seagreen]4,toytoy,2929299,122.8,19[/COLOR] [COLOR=seagreen]3,front shift,2299229,205,22[/COLOR] [COLOR=seagreen]3,shift,1111111,222,20[/COLOR] [COLOR=seagreen]...[/COLOR] [COLOR=seagreen]...[/COLOR] …

Member Avatar for rowly
0
103
Member Avatar for whitemoss

Hi all, I'd posted this problem previously but in the wrong place..:)..Hopefully, I can get the answer from this thread. I'm a newbie in C..Right now, I have to write a code to read a text file and then insert all the info inside that text file into database. Should …

Member Avatar for whitemoss
0
507
Member Avatar for LieAfterLie

How would you make the program pause for a certain amount of time? I can't just tell it to do some trivial task over and over for so many loops, because the compiler seems to know its trivial and cuts it out. There's gotta be a simpler way anyway.

Member Avatar for LieAfterLie
0
555
Member Avatar for LieAfterLie

Okay, Iv'e finished learning C++. What can I do with it? Specifically, I want to do some graphics stuff, anything beyond iostream and fstream. What comes after C++? I know it does more than this. If I could just have a function to set a pixel, I could make my …

Member Avatar for LieAfterLie
0
106
Member Avatar for ajinzo

I submitted a soda machine problem earlier that had 25 error, I have made some corrections, but I still have 6 errors. Can anyone help. [COLOR=blue]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=maroon] [/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cout;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cin;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::endl;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] getcoins ()[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#000000] [/COLOR][COLOR=blue]int[/COLOR][COLOR=#000000] total = 0, number;[/COLOR] [COLOR=#000000] …

Member Avatar for ajinzo
0
135
Member Avatar for gdlgplic

I am just learning how to write macros and I need some help linking two If..then:..else statements. I have two drop down boxes that I want to link together. I am trying to tell it that if one statement is true then filter row else filter for criteria cell (2, …

Member Avatar for gdlgplic
0
75
Member Avatar for etxulid

Hi, is there any built in function for converting an int to a byte? Thanks

Member Avatar for vegaseat
0
219
Member Avatar for Phaelax

How can I use this in Java? I don't need to run a server, just call some functions from an existing one. I haven't found much "useful" documentation on this.

Member Avatar for Phaelax
0
93
Member Avatar for saqib

hello guys i am new in this forum and in programing i want to write a program which could convert given temperature and its unit into oher scales please give me some sugestions and ideas bout that and i need to know how to declear chareters and how to take …

Member Avatar for saqib
0
285
Member Avatar for hoosier23

any idea what i am doing wrong? [quote] Error 3 error LNK2001: unresolved external symbol "private: static float SavingsAccount::annualInterestRate" (?annualInterestRate@SavingsAccount@@0MA) Savings.obj [/quote] SavingsAccount.h [code] #ifndef SAVINGSACCOUNT1_H #define SAVINGSACCOUNT1_H using namespace std; class SavingsAccount { private: static float annualInterestRate; float savingsBalance; public: SavingsAccount() { annualInterestRate = 0.03; savingsBalance= 2000; } float …

Member Avatar for Salem
1
189
Member Avatar for CurtisBridges

[COLOR=#000000]Need help creating this to these instructions, mainly with the part where I call an existing files that has already been created and saved in Notepad as attached.(File one and File two). Below are the directions and some code. I think you will be able to tell what I’m trying …

Member Avatar for CurtisBridges
0
99
Member Avatar for etxulid

Hi, got a hex string 3E 65 72 3D 65 which first needs to be reversed to C7 6A E4 CB 6A then I need to move the 4 LSB in each byte to the 4 LSB in the next byte, need also to include 4 new bits (x) in …

Member Avatar for ghostdog74
0
200
Member Avatar for hoosier23

This is a simple Rectangle calculator that uses classes. Ok, so I keep getting errors like. [quote] Error 1 error C2660: 'rectangle::getLength' : function does not take 0 arguments Error 2 error C2660: 'rectangle::getWidth' : function does not take 0 arguments Error 3 error C2660: 'rectangle::getLength' : function does not …

Member Avatar for hoosier23
0
367
Member Avatar for reRanger

Greetings: I have been working with code examples (from the good people on this site) and I have been learning quite a bit about Python and becoming more comfortable with. The program I am working on is being done in pieces, the GUI being really the primary area of problems …

Member Avatar for vegaseat
0
140
Member Avatar for swapnamishra

Hi, I have a function in Vc++ called Execute. I pass arguments to the function in hex and it returns the value in hex. >>> p.Execute(s1) The return value is handled in unicode format by python. u'\u1211\u2b08' I am supposed to convert the hex return value to BCD. Since python …

Member Avatar for Ene Uran
0
164
Member Avatar for jrcagle

Here is the code that burned me today. I'm re-writing my Sudoku solver to make it more "Pythonic" -- it was my first Python project, and the old code looks like translated C :lol: -- anyways, at one point, I need a dictionary to hold the possible locations in a …

Member Avatar for Ene Uran
1
136
Member Avatar for Ajay Raj

Hi can anny one help me out optimizing the follwing issue: [COLOR=navy][COLOR=navy]A C++ class has the following member:[/COLOR][/COLOR] [COLOR=navy][COLOR=navy] int status_[75];[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]During performance analysis it was found out[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]that the class (its object) was performing unsatisfactorily[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]making it a necessary candidate for optimization.[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]The following additional information was also found …

Member Avatar for andor
0
187
Member Avatar for Sashar400

[COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { [COLOR=#0000ff]char[/COLOR] choice; [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] arraysize=20; [COLOR=#0000ff]int[/COLOR] num[arraysize]; [COLOR=#0000ff]do [/COLOR]{ cout<<"I will give you the Sum,Mean,Var & the Std Dev of any series of numbers?Y/N:"<<endl; cin>>choice; [COLOR=#0000ff]if[/COLOR](choice =='Y'||choice =='y') { cout<<"How many numbers will you enter? (up to 20)?"; cin>>num[arraysize]; [COLOR=#0000ff]for[/COLOR] …

Member Avatar for rinoa04
1
193
Member Avatar for sameer.mastek

Hi I would like to know how could we communicate between VC++ and TCL. I've tried it using SWIG. that was call for C++ function by TCL. Can a C++ give a call to TCL module. What is the ICE? Is it related to C++ and TCL communication somehow?

Member Avatar for sameer.mastek
1
404

The End.