132,729 Archived Topics
Remove Filter ![]() | |
How do i use the function isspace to take sentences read into an array and make multiple spaces only one space between words? Use an if statement? if (isspace([I]aChar[/I]) ) cout << aChar; else ( Not sure what I need here. Software Development c++ | |
[COLOR=#008000]:rolleyes: my program is not running right I,m not sure what is wrong with it the output is always true can someone help me[/COLOR] [COLOR=#008000]/// Robert H Ramzy IV[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <stdio.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <stdlib.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <conio.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <string>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <ctype.h>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] number;[/COLOR] [COLOR=#0000ff]bool[/COLOR][COLOR=#000000] results ;[/COLOR] … Software Development c++ | |
Write a C program with 4 functions in main 1 int intSum(intx, int y) accept 2 ints as parameters adds the 2 # up returns the sum 2. int intdiff(intx, inty) accepts 2 # as param. subtracts them returns with diff. 3 int intProd(intx, int y) accepts 2 # muiltplies … Software Development c | |
can anybody having touch screen coding. i have to invoke touch screen through vb and fetch and display the corresponding details from database based on user touch. so please help me regarding. thanks in advance Software Development visual-basic | |
Hi, Got another question concerning an array of strings: I did it this way: [code] int main() { const std::string myArray[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; for (size_t i = 0; i < 12; i++) std::cout << myArray[i] << '\n'; std::cout … Software Development c++ | |
Hello, I am having a problem showing a popup menu in my wxpython script on fedora 5 (fc5); this problem does not occur on xp. I am using wxPython-2.6.3.2-1.fc5, unicode version. I need to add an item to a popup menu after the user selects a file using wx.FileDialog, and … Software Development python | |
If I want to exit to Dos in a C program from a Switch statement, how do I do it? Thanks Software Development c++ | |
:) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship … Software Development java | |
pls i hve a source code for a digital alarm clock bt its for pic16c54a and i want to desiogn a digital alarm clock using pic 16f84a so here is my source code, i need an assembly language guru to help me do this pls. below is the source code … | |
I got a book and some software together ( VB2003 Standard Edition on cdroms and VB2003 Step by step by Microsoft Press). there excellent for beginner. It started me off in VB. Book is 300 big pages and its also included on the CDrom in HTML format. The whole lot … | |
:) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship … Software Development vb.net | |
:) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship … Software Development visual-basic | |
<<Forked off from [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=5516&page=1&highlight=tic+tac+toe"]this thread[/URL]>> I need a ticTacToe game code ..is there any body who wrote it before:( . Software Development c++ | |
Hi! anyone who could help me fix this code for it to work? i need your help very badly. :) i'm having a hard time debugging my program for it to work... i dont know how to use the function rand() properly.. :rolleyes: tried everything i can but it just … Software Development c | |
whats wrong with this code it compiles well but gives wrong results code is to arrange the 5 numbers in ascending order [code=c] for (a=0;a<=4;a++) { for (b=a+1;b<=4;b++) { if (num[a]>num[b]) { temp=num[a]; num[a]=num[b]; num[b]=temp; } } } [/code]can anyone tell whats wrong?? Software Development c | |
I wana make so many lines appear randomly (like heat beat rate) depend on the base line ..while I run the program . How can i make that works . pls give me some hints or code ,, Software Development c | |
![]() | Can anyone help me get started on converting a float to a fraction? Software Development c++ |
I've been recently reading the forums a lot, seeing people throw around the phrase "pass-by-reference" in normal C. As far as I've been taught, C only provides pass-by-value. Now.....the developers of C came up with this genious idea of passing an address (which is still a value) through the parameters … | |
Hi everyone: I'm reading a file (line by line) but what I wanna do is to jump some lines, but I can't really figure out how to do that. I hope someone can help me out. Software Development c++ | |
I'm still really green at this, but I've been working at this for 2 hours now and I'm stuck. Can someone help me? I'll post the code first, then the error underneath. thanks everyone! [code] #include <iostream> #include <vector> #include <string> #include <fstream> using namespace std; class Resource { public: … Software Development c++ first-post | |
Hello ladies and gents, Was wondering if any of you could check this exercise out, I finished it, but, I'm not sure whether Ive got it exactly right, especially the last two definitions. The exercise is as follows: - Use typedef to define the types unsigned char, const unsigned char, … Software Development c++ | |
Hi Guys I am new to C# programming and I wandered whether anyone could help me regarding this error message below: C:\MyFirstCOMTemplate\COM\PushTemplateC\PushTemplateC.cs(86): 'PushTemplateC.PushTemplateC.PblReadFile()': not all code paths return a value I am simply trying to get the text below: My name is Neil Rastogi I am aged 25 to be … Software Development file-system | |
I have successfully got the data reader connected but i cannot figure out how to write the values to an array or variables on a windows form created in Visual C# Express edition all examples use the console. Can someone show me an example of how to write these values … Software Development sql | |
I have a main application running on VB6. This has mutiple RS232 inputs which it processes and displays graphically and numerically to the user. I need to create slave display(s) showing limited information on other PC(s) located on the network. What is the best way to communicate between the computers. … Software Development visual-basic | |
ive created this currency interest preogram which should calculate the interest depending on the currency amount entered. if 100 but less than 1000 then 1%, otherwise 3% for all other amounts. can someone give me any ideas as how to start the interest part of the program off, and which … Software Development c++ | |
Hai All, This is Mahesh, I want to create an application in Visual Basic 6.0 that runs in Background and is invoked when system is going to shut down. Can anyone tell me what is the event that is activated in Visual Basic6.0 when system shuts down. Thanks in Advance … Software Development visual-basic | |
Hi there, developing an online shop as a final project I need some help. I'll be happy if anyone could help me with it's programming in VB.NET. Software Development vb.net | |
ok i have made this blackjack game in VB.NET 2005: Can anyone spot any obvious bugs/superflous code in it? I have to convert it to VB6 for college as its my homework does anyone know fo any potential pitfalls there? [code] [COLOR=#0000ff]Public[/COLOR][COLOR=#0000ff]Class[/COLOR][COLOR=#000000] Form1 [/COLOR] [COLOR=#0000ff]Public[/COLOR] playertotal [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Integer [/COLOR][COLOR=#0000ff]Public[/COLOR] dealertotal … Software Development vb.net visual-basic | |
Could Anyone help me with the codes . Perhaps i can give you the ones for hard drives and keyboards laters coz i have 'em Software Development assembly | |
hello, i just finish the hangman project in VB. It's working but i can't get the picture to show if a letter is incorrect. Can somebody help me. thank you (in the image property i put none):sad: Software Development vb.net ![]() | |
This is just a brief question how would i read the attributes from the tokeniser in the same order as declaration occurs in the class declaration, separated by full-colons. Tokeniser class [CODE][COLOR=#0000ff] #include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iostream> [/COLOR][COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]"Tokeniser.h" [/COLOR][COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] Tokeniser::THROW_EXCEPTION = 0;[/COLOR] [COLOR=#000000][/COLOR] Tokeniser::Tokeniser([COLOR=#0000ff]void[/COLOR]): _delim([COLOR=#800000]""[/COLOR]), _data([COLOR=#800000]""[/COLOR]), _currentPos(0), _throwException([COLOR=#0000ff]true[/COLOR]) … Software Development c++ ![]() | |
[COLOR="Navy"] Hello everyone, I have two classes Student and Courses. Class Students creates an object of class Courses since each Student will take some Courses. How can I call an object of class Courses in class Students such that each Student class will have an instance of class Courses which … Software Development java | |
Hi, Can someone tell me how i can implement a mouselistener interface on a frame. I have a program that loads an image on a canvas. now i want to get the screen coordinate where user clicks on the image. I can do this using an applet but i want … Software Development java user-interface | |
How can i create my own hardware and software interrupt, what are the codes sent to hardware to access information/data please help with the codes;) Software Development assembly | |
Hello everyone, I'm new to python, but I do have some c and c++ experience, although not extensive. I was looking through the challenges for new people that is stickied at the top of the forum, and was going to work on the * box challenge. I'm going to have … | |
Hi, Can someone tell me the code to calculate the distance between two pixel points. If i enter Point(x1,y1) and Point(x2,y2) then i get length of the line between them (in pixels). Thanks. Software Development java | |
I have done the following, and I just want to check if I've done them all correctly: [LIST] [*]Declare a pointer variable named fp that can point to a variable of type string. [*]Declare fish to be a 5-element array of strings. [*]Make the fp variable point to the last … Software Development c++ | |
Hi there, Im trying to create a simple program that creates an 2D array of numbers and prints them to the screen via a function. I think i have got most of the way however, I cant seem to get the print function to print correctly. It's been a while … Software Development c++ encryption | |
Hello All i have a program written in C, and i want to call a sharedobject, which i can do fine! The only problem i am having is passing parameters.. Here is my code [code] int main() { static int (*fp)(int); int *handle; int MatchFound; struct SharedObject_{ char name[10]; char … Software Development c | |
I have some old programs compiled in the aout format which I would like to recompile with ELF for Linux. I found this decompiler program (REC) which claims to be able to do the trick. Unfortunatly, the way he has the the download setup is not very good for a … Software Development c engineering | |
Hi, I'm relatively new to socket programming in C/C++ but i have read a few tutorials and had a good go at trying to do it. I have got to the point where i have created a kind server that will accept incoming connections and then when the data is … Software Development c++ client-server socket-programming windows-server | |
that's it what's the relation between constructor and creating an object? many thanks. Software Development c++ | |
import javax.swing.*; public class Pool { public static void main(String args[]) { int input1; int input2; int input3; int Volume; input1=JOptionPane.showInputDialog(null,"Enter the length of the swimming pool:"); input2=JOptionPane.showInputDialog(null,"Enter the width of the pool:"); input3=JOptionPane.showInputDialog(null,"Enter the average depth of the pool:"); Volume=input1*input2*input3; System.out.println("The volume for the pool is: "+ Volume); } … Software Development java java-swing | |
I have been trying to create an excutable jar file. When trying to added new data to the manifest file it give me an error say 'invalid header field name: |||Manifest-Version:'. Iam using the command line: jar -cfm App.jar META-INF\MANIFEST.MF mainui\*.class the mainfest file looks like this Manifest-Version: 1.0 Created-By: … Software Development file-system java | |
I found some old floppies with some of my early basic programs on them. I made them in vb3 (.bas .frm) but I'd like to open them in VB.NET is there a way to do this? I saved all my files in ASCII. p.s. please don't post [URL="http://www.daniweb.com/techtalkforums/www.advantageware.com/VBAD_free_tools.htm"]this[/URL] link, because … Software Development asp.net first-post google vb.net | |
Hi How do I can Change the Column width and Caption of a DataGrid in my Program and also how do I can change the Height of a Row of a DataGrid Software Development pascal | |
Hi all, I try to compile my program and got this kind of error: test6.c: In function `main': test6.c:46: too many arguments to function `mysql_query' Here is my code: [CODE] int main(int argc, char *argv[]) { char string1[1600], string2[1600], query[1600], mobileno[50]; int i, j, len; FILE *fp2; mysql_init(&conn); /* Connect … | |
Hi all. I am building an automated login program for my work scheduler (which is a website already existing online). I have created a form with a timer, that when the computers system time reaches a certain time, another form containing a web browser control launches and goes to the … Software Development vb.net web-browser | |
I am using Visual C# Express and I have a window that I would like to be able to enter 2 dates ( a 30 day period) and connect to the 2005 Sql Express database and return a range of data that I can eventually graph. I want to add … Software Development |
The End.