132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DimaYasny

Hi Guys, I am self studying BASH, and will really appreciate it if you could share a list of typical assignments, especially if you can rate them from easy to hard. Just want to practice, and I have already scripted everything I needed to on my servers :) Thanks

Software Development shell-scripting
Member Avatar for eggi
0
131
Member Avatar for k2k

i used vi: %vi shellProgramming and then i typed the shell script in the vi and saved with :wq However, when i run the vi file ...... %shellProgramming my unix says "command not found" why is that? and how do i run the vi shell scripting file? thanks

Software Development shell-scripting unix
Member Avatar for eggi
0
161
Member Avatar for Sairobi

okay I need to write a program that will basically be pulling strings from a text file based on what the user inputs. I can make a program run that gets the text file to input to the screen but I am having trouble with jumping around the file. example: …

Software Development c++
Member Avatar for Sairobi
0
87
Member Avatar for nnobakht

Hey guys, if im trying to parse a xsd file using the schema class how can i get the simpletype restrictions for a select attribute which i have already found. so if its an enumeration type get the values, or if the patters in [a-zA-Z0-9] to get that. [Code=C#] public …

Software Development xml
0
148
Member Avatar for rams111

i want to refresh database(sql server 2005) instantly using c# if anyone does know about the code to solve it please reply me

Software Development
Member Avatar for majestic0110
0
66
Member Avatar for Cybulski

I'm starting writing class that should read configuration file and initialize some members with data from file. I decided to read this file in constructor. What should constructor do, if something goes wrong, and further construction of object have no sense? For now it displays message: [code] MultiReader::MultiReader(const char* m_sPath) …

Software Development c++
Member Avatar for Cybulski
0
98
Member Avatar for RickN

Hi all, Just a general question, if someone asks you to provide a) description of source code b) how to run the program how do you write this? I'm currently taking a C programming course as a beginner and these were ask of me to do. Any help would be …

Software Development c
Member Avatar for jephthah
0
127
Member Avatar for QuantNeeds

The following is my code. I am just getting started in C++ so there are few concepts I am still stuck on. This program works well except for one issue – the data type is integer but it is not catching decimal numbers. In my other programs this worked but …

Software Development c++
Member Avatar for n1337
0
81
Member Avatar for NycNessyness

Hello. I asked last week about how to allow the user to only enter in letters. I tried the mask formatter but that's too limited. How can I go about letting the user to enter in any kind of letters they want but restricted to only 25 letters for their …

Software Development java
Member Avatar for Ezzaral
0
119
Member Avatar for nanodano

Hi, I'm trying to write a program using named pipes, and I'm having trouble opening it. In another program I call this line: [code] mkfifo("./fife", 0777); [/code] So my named pipe exists and I see it in my list of files. Then I run the program I included below, but …

Software Development c++
Member Avatar for Salem
0
185
Member Avatar for mghmgh

I need to write a program that read of input a number N numbric & calculate N! that's number (should be simulator of multiply into program because us want number N ) & should be Number of character for e.g char s[20].

Software Development c++
Member Avatar for n1337
0
293
Member Avatar for Eulerito

Hi... I saw a simmilar problem in this forum, but now i have a new problem.... I want to read string from a txt file: "myfile.txt"..... inside the file: "i want to read this text". then I write: [code=c] LRESULT CALLBACK WindowProcedure(HWND hwnd.... HDC hDC; PAINTSTRUCT Ps; HANDLE hFile; DWORD …

Software Development api c
Member Avatar for Asat232
0
117
Member Avatar for peachslasher

Hey guys, I need to write a C++ program that use to compare sorting algorithm. I've tried to implement counter on each of <.>, = operations I've encounter in the function (currently i am working on selection sort), however the sum of the counter doesn't really match big O selection …

Software Development algorithm c++
Member Avatar for Radical Edward
0
281
Member Avatar for dan_e6

hey guys. ive been asked to do this: Write a recursive function which returns true if the linked list is sorted in ascending order. bool isSorted(nodeType *L) why would we use a recursive function to check if it's in ascending order? can anyone help me with this.

Software Development c++ linked-list
Member Avatar for n1337
0
466
Member Avatar for wellibedamned

i'm trying to get the last word of the sentence using strtok.. i tried this :[CODE]while (tok != NULL) { tok = strtok (NULL, " "); if((tok != NULL) && (strtok(NULL, " ")==NULL)) printf("%s", tok); }[/CODE] kinda doesn't work... anyone knows why? Yes, tok is a char * pointer..

Software Development c++
Member Avatar for Nick Evan
0
82
Member Avatar for harsh2327

Hey, I have just upgraded my C++ compiler from old [B]TurboC++[/B] to [B]CodeBlocks[/B] as per Salem's suggestion. [URL="http://www.daniweb.com/forums/post604085.html#post604085"](Check this post)[/URL] But I am finding difficult to work with this compiler for the basic reason of not knowing the in-built functions. Can you please help me with this by listing down …

Software Development c
Member Avatar for tesuji
0
207
Member Avatar for Prasadd

[B]I need a datagrid that has 4 columms & 2 rows. Each cell in that datagrid will represent one row from my database table.[/B] can someone plz giv me some sample code for that ? or any tips on how to achieve the same ??

Software Development
Member Avatar for jireh
0
136
Member Avatar for timdog345

[code] //test SAT /* void initialize (int& verbal, int& writing, int& math) { verbal=0; writing=0; math=0; } void userInitialize (int& verbal, int& writing, int& math) { cout<<"Please enter your verbal score (0-800) "; cin>>verbal; cout<<endl; cout<<"Please enter your writing score (0-800)"; cin>>writing; cout<<endl; cout<<"Please enter your math score (0-800)"; cin>>math; …

Software Development c++
Member Avatar for Nick Evan
0
146
Member Avatar for sjgriffiths

Hello I have the following in a variable called TEST echo $TEST result : STEPHEN LTD What i want to do is find out whether there are any spaces in my variable name, and if so do the following STEPHEN%42LTD bascially put a %42 where the space is....any ideas?

Software Development shell-scripting
Member Avatar for DimaYasny
0
86
Member Avatar for qt.alan

i am trying to load the morsecode.txt into my tree struct but when i compile it i keep getting this errors error C2440: '=' : cannot convert from 'decode *' to 'int *'| error C2664: 'bintree<dataType>::insert' : cannot convert parameter 1 from 'int' to 'const decode &'| error C2676: binary …

Software Development c++
Member Avatar for mitrmkar
0
157
Member Avatar for e_pech

Hey! I need to write a compiler for a microcontroller I'm designing... I want to use MFC to check the Syntax. I created a project in wich the View is derived from the RichEditView, Can anyone help me get info on how I can accomplish this?? I need to check …

Software Development c++
Member Avatar for e_pech
0
102
Member Avatar for FTProtocol

Im just beginning to learn c++ and this is about the second day. Just wondering what you guys think and ways of improvement, efficiency and such. Thanks guys! [CODE] /* Super Simple Calculator - Created By FTProtocol */ #include <iostream> #include <math.h> #include <stdio.h> #include <windows.h> #define nl '\n' int …

Software Development c++
Member Avatar for Nick Evan
0
148
Member Avatar for prakasnisha

hello everyone, can anyone help in writing a perl script which automatically replaces the commands in a file(command file), with the new values. i have written a code but its not working properly. if anyone could help me plz. i am new to this scripting language. thanks in advance. Thanks …

Software Development perl
Member Avatar for prakasnisha
0
102
Member Avatar for ymf

Hi, I am writing a cgi script for a web database query "results" page and I need to display the results in an html table. My question: 'Is there a way to print out a list of words without the commas and the square brackets?' e.g if this is the …

Software Development python
Member Avatar for Freaky_Chris
0
104
Member Avatar for FTProtocol

Do you guys have any idea where I've gone wrong? [CODE] /* Super Simple Calculator V3.0 - Created By FTProtocol */ #include <iostream> #include <math.h> #include <stdio.h> #include <windows.h> #include <conio.h> #define nl '\n' #define PI 3.14159265 const double a=5; const double b=3; const double c=8; int x,y,choice; int ans=0; …

Software Development c++
Member Avatar for Nick Evan
0
113
Member Avatar for shaddybOi

Hello everybody, I need to implement a circular buffer and im clue less . . .HELP me:'(

Software Development c
Member Avatar for John A
0
118
Member Avatar for MAD_DOG

Let me ask you guys something what is the toughest type of Programming Language on techtalk?

Software Development c++
Member Avatar for azwiz
0
336
Member Avatar for allwiyn

[B]Hi, How to write a function that checks if the circle passes through given four points.. please answer this with code or just give me the logic and concept of writing this...[/B]

Software Development c++
Member Avatar for VernonDozier
0
110
Member Avatar for Jessica_C

Does anyone how hot to do this: [img]http://i32.tinypic.com/35l9avq.jpg[/img]

Software Development
Member Avatar for Jx_Man
0
92
Member Avatar for moshw

Hi, I'm learning C++ programming and have to write a program that shows how to calculate tax rates for a business tha th as shops in 3 different cities with three different tax rates, using the printf function. Anyhelp I can get is appreciated. Keep in mind I am just …

Software Development c
Member Avatar for Ancient Dragon
0
676
Member Avatar for gabanxx

i create a code to delete a data in sql server..but nothing works anyone outhere help me spot the problem.. ] [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim varAdapter As SqlDataAdapter MsgBox("are you sure want to delete?, important information will be erase. ") 'varConnection …

Software Development vb.net
Member Avatar for gabanxx
0
88
Member Avatar for Shank89

Hey guys, I am creating a new mini battle tanks game in python. Not gui based as of now. What it does so far is show a tank moving around a grid size of -10 to 10 Currently i have set it up as this far, just defined the coordinates …

Software Development gui python
Member Avatar for Shank89
0
136
Member Avatar for redprawn_89

Hi guys i'm currently working on a project and i was thinking if there's any way i can import the rows and columns the user needs on the next page to make it clearer, on page1, the user would be asked for the numbers of rows and/or columns they need. …

Software Development
Member Avatar for redprawn_89
0
122
Member Avatar for savinki

Hi, I want to assign a char pointer value to enmerated value, to use in a switch statement. Given below is the code segment. I dont hv an idea how to convert and assign char pointer value to a enumerated value. Pls can someone help me to resolve this [code=cplusplus] …

Software Development c++
Member Avatar for Duoas
0
156
Member Avatar for fusi0n423

I'm working on a lineEditor class (doubly linked list) and I'm switching it from using std::string to a template but I keep getting: lineeditor.cpp(33) : error C2143: syntax error : missing ';' before '*' when compiling. The code is: [code=c++] template <class T> int lineEditor<T>::getSize() { return maxLineCount; } template …

Software Development c++ linked-list
Member Avatar for Duoas
0
110
Member Avatar for tondeuse34

Hey guys, i got another question. say if you want to only write a few lines of code that can be called on at any time the while the script is running, i'm assuming its the pickle function or something similar to batch like the goto function? Thanks

Software Development python
Member Avatar for tondeuse34
0
131
Member Avatar for Nemoticchigga

Is there a way to make a visual studio 2005 form repaint itself every 'x' number of milliseconds? Thanks.

Software Development c++ gui visual-studio
Member Avatar for Nemoticchigga
0
55
Member Avatar for Jennifer84

I am doing a loop that will run all the time and when a change is done to the File(Source), then this file will be Copied/OverWrite file(Dest). One problem that I have is that the if-statement that says: [B]if( CurrentSourceTime != LastSourceTime ) {}[/B] is running each loop ? I …

Software Development c++
Member Avatar for Jennifer84
0
109
Member Avatar for mandar2886

Please mail me the procedure for Java Oracle Connectivity. <snipped email>

Software Development java oracle
Member Avatar for jwenting
0
240
Member Avatar for lahom

[B]hi i have this function:[/B]Public Function GetFile(Filename As String) [CODE]Dim path As String Dim Fnum As Integer '---read file in one pass! Fnum = FreeFile Open Filename For Input As #Fnum GetFile = Input(LOF(Fnum), Fnum) Close Fnum Exit Function ErrorHandler: Err.Description = "GetFile: " &amp; Err.Description &amp; " -&gt; " …

Software Development c++
Member Avatar for mitrmkar
0
275
Member Avatar for Mackjan

Hi I have got the TypeError. I use lists at the same way in my other programs it works excellent, but just in this program I have got problem don’t know how to solve it? [COLOR="Red"]Traceback (most recent call last): File "E:\extra_b.py", line 42, in <module> ordna(pile) File "E:\extra_b.py", line …

Software Development python
Member Avatar for woooee
0
157
Member Avatar for cookiedianne760

[code=c] #include<stdio.h> #include<conio.h> #include<string.h> struct book{ char title[30]; int book_isbn[13]; };book library int x, found,count,y; char title[20][30]; void setup() { strcpy(title[0], "Wind In The Willows"); strcpy(title[1], "Fright Night"); strcpy(title[2], "Women From Venus, Men are from Mars"); strcpy(title[3], "Happy Days"); strcpy(title[4], "Gone Fishing"); strcpy(title[5], "My Sql"); strcpy(title[6], "About Nothing"); strcpy(title[7], "Beowulf"); …

Software Development c
Member Avatar for jephthah
0
120
Member Avatar for xyinyangx

I am in a c++ programming class in my High School, and I am having some trouble with the final I was assigned. We were assigned to make a video game, so I decided to make a text adventure. My code is basically a bunch of if statements telling the …

Software Development c++ session video visual-basic
Member Avatar for xyinyangx
0
764
Member Avatar for 9107you

[code] public class IamCanadian { public static void main (String[] args) { // create an object, and IamCanadian canEng = new IamCanadian (); // while the user does not enter "quit" as a sentence: // get a string from the user System.out.println ("enter a American English"); String ameEng = ReadLib.readString …

Software Development java
Member Avatar for Ezzaral
0
160
Member Avatar for scarface3288

This is the file I will be calling from, basically it stores something into a file called "temp.txt, so let's assume that it works and the problem is not here. This is the "file.h" file. [CODE]#include <iostream.h> #include <fstream.h> #include <string.h> #include <stdlib.h> ofstream output_file("temp.txt", ios::out); class NUM_STUD: { public: …

Software Development c c# c++ ios
Member Avatar for scarface3288
0
102
Member Avatar for Kob0724

I"ll preface this with the fact I'm pretty new to C++ (my background is in Java, so having to deal with these pointers is proving to be a little confusing). I'm trying to iterate through a vector that I passed to a function. I can't get this code to work …

Software Development c++
Member Avatar for Kob0724
0
271
Member Avatar for daviddoria

This doesn't seem to behave as I would expect (as it does in matlab, for example). I want to execute a command, but give some readable output instead of the often very messy auto-generated error (index out of range or something). [code] try { MyFunction(1,2); } catch(char* str) { cout …

Software Development c++
Member Avatar for daviddoria
0
93
Member Avatar for sash007

A programme in C++ that if date is input it tells day? For example Enter Date : 1-01-1985 The day is 'Monday' Enter Date : 2-01-1985 The day is 'Tuesday' Restriictions are using If-else, switch,operators(/,%,*,+,-) while loop.logical operations(&& || ) Please write the programme or Explain the logic It starts …

Software Development c++
Member Avatar for sash007
0
134
Member Avatar for dbdork

Okay here is my code: If optName.Value = True Then Dim strSQL As String strSQL = "SELECT * FROM Usages WHERE UsageID = " & List2.Text & "" Adodc1.RecordSource = strSQL Adodc1.Refresh Refresh is causing an error in from clause?? I tried setting my adodc1 to an adcmdunknown recordsource, with …

Software Development visual-basic
Member Avatar for dbdork
0
256
Member Avatar for Lukezzz

I am using VC++ 2008 and wonder, that if I have made a project. "Windows Forms Application" that only consist of an Emty Form. I wonder how it is possible to Compile this so this will be an application. I have searched around in the properties and found something called …

Software Development c++ visual-studio
Member Avatar for Lukezzz
0
122

The End.